Question: 1 Write a program to determine if vehicles tested for identical miles meet a carbon monoxide emission standard for g / mi . Your program
Write a program to determine if vehicles tested for identical miles meet a carbon monoxide emission
standard for gmi Your program should first input the standard to be used, the number of vehicles
that were tested, and the number of miles in the test. Then it should loop and ask for the emissions
level for each vehicle in the test and output a message indicating if it meets the standard.
Input : prompt for and input this data before the loop see the sample run below:
the amount of allowable carbon monoxide in grams per mile
the number of vehicles in the test
the number of miles all vehicles were driven
Input : prompt for and input this data for each vehiclesee the sample run below:
The total amount of carbon monoxide emitted for the next vehicle in the test note that the
vehicle number is output in the prompt
Output: see the sample run below:
Vehicle emission in gmi during the test
An indication of whether or not the vehicle emissions met the standard
Include all pertinent information as shown in the sample
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
