Question: Computer ProgrammingPROBLEM 1 In this problem, you are given a completed program that has logic errors. You need to fix the errors. This flawed program

Computer ProgrammingPROBLEM 1
In this problem, you are given a completed program that has logic errors. You need to fix the errors.
This flawed program is an Air Quality Classifier. The user enters an AQI value, and the program outputs a specific health impact. Here are the classifications:
AQI Value Classification
0-50 Good
51-100 Moderate
101-150 Unhealthy for Sensitive Groups
151-200 Unhealthy
201-300 Very Unhealthy
301 or more Hazardous
The instructor has provided a file called Lab02P1-FixTheErrors.py. Download that file and rename it Lab02P1.py.
Copy that file into your PyCharm project.
Change the program header to include your name and the date.
Run the program AS IS and see if you can determine what is wrong with the program.
Take a screenshot of the program running that demonstrates an error and name the screenshot Lab02P1-error.jpg.
HINT: Try using the AQI value of 100 or 200 and see how those are incorrectly classified. To make sure you have the program completely correct, test all BOUNDARY CONDITIONS.
Review the code and correct all the errors. You should eventually be able to run the program that accurately classifies the ages with no errors.
NOTE: PyCharm may give you a hint to "Simplify chained comparison" with a yellow underline. That suggestion can be safely ignored.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!