Write a C++ program for an automobile workshop to check a vehicle’s engine condition. The program asks a workshop user to enter the following details. 1- Vehicle make and model e.g. Ford, Focus 2-...


Write a C++ program for an automobile workshop to check a vehicle’s
engine condition.
The program asks a workshop user to enter the following details.
1- Vehicle make and model e.g. Ford, Focus
2- Vehicle horsepower e.g. from (1.0 CC to 5.0 CC), workshop does not in
checking cars with horsepower more than 5.0 CC.
3- Vehicle milage per liter fuel e.g. 10KM/L
4- Vehicle temperature gauge reading 0 to 180
5- Vehicle check engine light indication (on/off)
You are required to validate the user input and display a proper message if a user enters a wrong input.
The program checks and displays make and model of vehicle and engine condition of vehicle based on the following criteria:
Engine is in Good condition if:
1- Vehicle horsepower 1.0 CC to 1.4 CC and car’s milage per liter is 12 KM/L or above, or car’s horsepower is 1.5 CC to 2.5 CC and car’s milage per liter is 10 KM/L or above, or car’s horsepower is over 2.5 to 5.0 and car’s milage per liter 8 KM/L.
2- Vehicle temperature gauge reading is between 60 to 90.
3- Vehicle engine check light indicator is off.
Engine needs tuning if:
1- Vehicle horsepower 1.0 CC to 1.4 CC and Car’s milage per liter is less than 10 KM/L or car’s horsepower is 1.5 CC to 2.5 CC and car’s milage per liter is less than 6 KM/L or above, or car’s horsepower is over 2.5 to 5.0 and car’s milage per liter is less than 4 KM/L
2- Vehicle temperature gauge reading is between 60 to 120.
3- Vehicle engine check light indicator is off Engine Needs overhaul if:
1- Vehicle temperature gauge reading is above 120 and
2- Vehicle engine check light indicator is on

Jun 11, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here