Write a program to show menu options

Assignment Help C/C++ Programming
Reference no: EM132355047

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.

Reference no: EM132355047

Questions Cloud

Employer wants you to convince : An employer wants you to convince him that it would be worthwhile for the company to continue paying for your education, what will you say?
Looming social security insolvency issue : What do you think is the best approach to deal with the looming Social Security insolvency issue? What are its pros and cons?
Better expansionary fiscal approach : Which do you think is a better expansionary fiscal approach for our current situation: cutting taxes or increase spending? Give the pros and cons of your stance
How does this contribute to ccc equipment problems : Collin County Community College (CCC) has an ongoing problem that the electronic equipment in their classrooms and computer labs keeps malfunctioning
Write a program to show menu options : Write a program to show menu options that allow the user to display - The highest to the lowest CO2 reading and their corresponding times for a selected
How does this affect the amount you could capture : In Argentina, if you do not reach an agreement with the government distributors, you can set up a less efficient Internet-based distribution system
What are the major challenge experience iranian : What are the major challenge experience Iranian to adopt Australian culture?
Various fees and charges of mutual fund investing : How can we find the right one for us? How can we evaluate mutual funds? What are the various fees and charges of Mutual Fund Investing?
Shrinking and the upper-lower classes growing : Is the Middle -class shrinking and the upper & lower classes growing? Is this a cause for our increasing polarization in the country?

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Write program in c++ for cosx and sinx expansion

Write program in c++ for cosx and sinx expansion( for personal inputs are x,number of terms

  Detailed proposal of the hardware and types

Write a detailed proposal of the hardware and types of NICs you recommend they must purchase to make this project a success.

  Firm after-tax cost of debt on the? bond

The company is in a 30 percent tax bracket. What will be the? firm's after-tax cost of debt on the? bond?

  Extension of a filename

Modify your earlier program that found the extension of a filename. This time your program will identify a file name that is no longer that 12 characters and has one of five extensions that you specify (eg: .doc. .py, .html, .txt, .ps).

  Write a program about a book order

Write a C++ program that asks for the following information about a book order from the console: Title and Author

  Determine an appropriate functional decomposition

Create structure charts for a problem and determine an appropriate functional decomposition or top-down design from a structure chart

  Write program which inputs sequence of digits from data file

Write a program which inputs sequences of digits (one sequence per line with no spaces between the digits) from the data file DigitSeq.txt.

  Difference between connectionless and connection-oriented

How does SSH differ from Telnet? How does HTTPS differ from HTTP?

  Write a program that declares three one dimensional

Write a program that declares three one dimensional arrays named miles, gallons, and mpg . Each array should be declared in main( ) and should be capable of holding ten double

  Write program that allows a student to practice subtraction

Write a program that allows a student to practice subtraction. Tell the student when answer is correct but allow them to try again if the answer is incorrect

  Conditional statementsquestion 1 write a program that

conditional statementsquestion 1 write a program that computes the cost of a long distance call. the cost of the call

  Advantages and disadvantages of programming

What are the advantages and disadvantages of programming in a way that only you can understand versus a way that can be understood by others?

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd