Write a C++ program for an automobile workshop to check a vehicle’sengine condition.The program asks a workshop user to enter the following details.1- Vehicle make and model e.g. Ford, Focus2- Vehicle horsepower e.g. from (1.0 CC to 5.0 CC), workshop does not inchecking cars with horsepower more than 5.0 CC.3- Vehicle milage per liter fuel e.g. 10KM/L4- Vehicle temperature gauge reading 0 to 1805- 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/L2- 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 and2- Vehicle engine check light indicator is on
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here