Reference no: EM132353670
Assignment - CO2 Viewer
The CO2 levels of a particular day in different classrooms in school are recorded in Table 1. Such daily CO2 data will be fed from external sources (external data file) as arrays.
The following CO2 data (parts per million - ppm) of different classrooms for 10th Nov 2018 is extracted from school data.
Table 1:
Classroom
|
7am
|
8am
|
9am
|
10am
|
11am
|
12pm
|
1pm
|
2pm
|
3pm
|
4pm
|
5pm
|
6pm
|
EN10-6-48
|
560
|
750
|
1800
|
1650
|
2000
|
850
|
800
|
1300
|
1850
|
1600
|
840
|
750
|
EN14-5-68
|
850
|
1560
|
1600
|
1780
|
1980
|
700
|
850
|
2200
|
780
|
830
|
750
|
550
|
EN14-5-69
|
650
|
790
|
2000
|
1850
|
2000
|
1600
|
850
|
700
|
1200
|
850
|
800
|
800
|
EN21-6-110
|
900
|
600
|
1950
|
1300
|
1800
|
950
|
1200
|
960
|
1900
|
1890
|
890
|
850
|
EN23-7-130
|
550
|
1670
|
850
|
1560
|
1600
|
1500
|
850
|
700
|
1200
|
820
|
750
|
650
|
In your project, declare initialized arrays with the above data values.
CO2 health advisory descriptors:
CO2 range
|
0 - 800
|
801 - 1200
|
1201 - 1500
|
1501 - 2500
|
More than 2500
|
Descriptor
|
Superior
|
Very Good
|
Average
|
Marginal
|
Dysfunctional
|
Write a program to show menu options that allow the user to display:
1. CO2 reading of classroom EN23-7-130 for a selected time.
2. Average CO2 reading of a selected classroom from 1pm - 5pm.
3. Maximum CO2 readings among classes for a selected time.
4. The unhealthiest CO2 reading (1501 and above) and the corresponding classroom(s) from 7am to 12pm.
5. The highest to the lowest CO2 reading and their corresponding times for a selected classroom.