Download presentation
Presentation is loading. Please wait.
2
1 Lab Session-1 CSIT221 Spring 2003 b Group Programming Challenge b Individual Lab Exercise (Demo Required)
3
2 Group Programming Challenge (Worksheet-1, Section-II) b Write a program to manage the security codes of an apartment complex with 50 apartments. Declare an array for holding the 4-digit numerical security codes for all the residents plus that of the Building Manager. For example, apartment 18’s security code will be stored in array location [18]. Write a function that checks if the new security code being allocated is in conflict with an existing code. Your program will accept a new proposed code from the user and call this function to check if the code is already stored in the array. If yes, it will issue a warning and either terminate or allow the user to select a different code
4
3 Individual Programming Problem (Demo Required 2/4 Sec-1, 2/6 Sec-2) b A TV studio hires you to write a program for generating weekly weather report. This report shows minimum and maximum temperatures and rain/snowfall amounts recorded for one week. The program should produce a display showing temperatures during last 7 days, total rain/snowfall amounts and average maximum and minimum temperatures for the whole week. The program must open a file and read the data from the file into temperature, rain and snow arrays. Use the following data for demo.
5
4 Test Data Stored in a Disk File
Similar presentations
© 2024 SlidePlayer.com Inc.
All rights reserved.