ch 04 pp 07
ID: 3632811 • Letter: C
Question
Write a program that interacts with the user like this:
(1) Carbon monoxide (2) Hydrocarbons (3) Nitrogen oxides (4) Nonmethane hydrocarbons Enter pollutant number>> 2 Enter number of grams emitted per mile>> 0.35 Enter odometer reading>> 40112 Emissions exceed permitted level of 0.31 grams/mile.
Use the table of emissions limits below to determine the appropriate message.
First Five Years or Second Five Years of 50,000 Miles Second 50,000 Miles carbon monoxide 3.4 grams/mile 4.2 grams/mile hydrocarbons 0.31 grams/mile 0.39 grams/mile nitrogen oxides 0.4 grams/mile 0.5 grams/mile nonmethane hydrocarbons 0.25 grams/mile 0.31 grams/mileSelect pollutant: Carbon monoxide Hydrocarbons Nitrogen oxides Nonmethane hydrocarbons
Enter number of grams emitted per mile>>
Enter odometer reading>>
Calculate
Explanation / Answer
feddbca1a99989145ba5959385b987d09cc401fee2d7dba2025b40070a034c38
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.