Question: using IN C Construct a program which determines if new vehicles meet the carbon monoxide (CO) emissions standard, using the following details: a) The program

using IN C

using IN C Construct a program which determines if new vehicles meet

the carbon monoxide (CO) emissions standard, using the following details: a) The

Construct a program which determines if new vehicles meet the carbon monoxide (CO) emissions standard, using the following details: a) The program should first prompt the user for the number of vehicles tested and continue to run for the given number. b) For each vehicle, the user will enter the CO emitted with the number of miles driven. c) The CO emission rate is calculated by dividing the amount of CO emitted with the number of miles driven. d) The maximum CO emission rate (in gram/miles) allowed is 3.4. e) If the calculated CO emission rate exceeds the maximum rate, the program should display the message "Warning: This vehicle exceeds the permitted CO emission standard. Otherwise it should display "This vehicle meets the CO emission standard" f) Your output MUST resemble the Sample of Execution. Sample of Execution: Number of vehicle tested: 3 VEHICLE NO. 1 Enter amount of co emitted (g): 34.6 Enter miles driven: 10 Carbon Monoxide Emission rate is 3.5 Warning: This vehicle exceeds the permitted CO emission standard VEHICLE NO. 2 Enter amount of co emitted (g): 25 Enter miles driven: 12 Carbon Monoxide Emission rate is 2.1 This vehicle meets the co emission standard VEHICLE NO. 3 Enter amount of co emitted (g): 55 Enter miles driven: ? Carbon Monoxide Emission rate is 7.9 Warning: This vehicle exceeds the permitted co emission standard Note: Values underlined indicate the user's responses

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!