Answered step by step
Verified Expert Solution
Question
1 Approved Answer
To determine air quality, a set of 6 sensors are used to measure different air pollutants. The following table records the sensor readings (R) from
To determine air quality, a set of 6 sensors are used to measure different air pollutants. The following table records the sensor readings (R) from sensors located in different locations described by a 3-digit code given in the 1st column Location Code: 405 107 250 340 190 Sensor: 1 2 3 10.5 10.0 9.7 11.8 10.1 11.6 10.2 9.3 11.2 10.7 9.2 21.9 10.4 10.8 9.5 12.5 11.4 10.9 12.1 9.9 6.9 5.7 7.1 6.6 5.9 9.1 9.4 9.5 10.4 11.2 Each sensor is measuring a different air pollutant's concentration. The calculation of the air quality index (AQl) for a given sensor is given by the equation: Z(Rn *c) where R is the sensor reading and c is the sensor conversion factor given in the following table Sensor: 1 2 5 6 Conversion factor c: 3.5 2.75 4.5 Asks the user to enter the location code that they would like to view a report for. Determine if the location code they entered was valid (that is matches one of the location codes in the matrix). If the user does not enter a valid location code display a message indicating their input is not valid and end the program, otherwise calculate and display the AQI for the location
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started