COSC 1336 Final Exam: Coding Section Air Pollution and Photochemical Oxidant Concentration Photochemical oxidants are one of the components of air pollution for which the federal government has...

Can you write this program? I have attached the file with instructions, and an input file needed for the code


COSC 1336 Final Exam: Coding Section Air Pollution and Photochemical Oxidant Concentration Photochemical oxidants are one of the components of air pollution for which the federal government has established a clean-air standard. Your program should input (from a file) photochemical oxidant concentrations for each day of one month. You should have the following functions in your program. getInput This function should read in photochemical concentrations from an input file and store them into a one dimensional array. The function should also ask the user to input to enter (from the keyboard) the level of the federal standard which will be stored into a variable. Remember to pass your input parameters by reference into the function. determineHigh This function should accept as parameters, the concentrations array and determine the highest value in the array. Store the high value in a variable that is sent in as a reference parameter. countDaysAboveLimit This function should have the following parameters: concentrations array, federalStandard, daysAboveStandard. The daysAboveStandard should be passed by reference. The function should determine the number of days during the month that the photochemical oxidant concentration was higher than the federal standard. determineAverage This function should calculate the average daily photochemical oxidant concentration for the month. You will send in the concentrations array and average (sent by reference). outputResults This function will output the results of your program in the following format. Summary of Results --------------------------- The average photochemical oxidant concentration during the month was xxx. The highest level of photochemical oxidant concentration during the month was xxx. There were xx many days during the month in which the photochemical oxidant concentration was higher than the federal standard of xxx. 80 83 79 180 190 200 220 220 200 198 225 199 183 200 160 119 162 180 122 121 121 119 80 83 79 119 121 121 122 119
May 13, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions ยป

Submit New Assignment

Copy and Paste Your Assignment Here