Question: Implement a C + + code that calculates the price of doing car maintenance. The program should take any needed input and the calculation is

Implement a C++ code that calculates the price of doing car maintenance. The program should take any needed input and the calculation is done as follows:
a) A fixed value of 1000 is needed for any car
b) If the km are between 0-30,2.5 extra are payed for every km
c) Il the km are between 30-50,3.5 extra are payed for every km
d) If the km are between 50-70,4.5 extra are payed for every km
e) If the km are between 70-90,5.5 extra are payed for every km
f) If the km are between 90-120,7.5 extra are payed for every km
g) If the km are more than, 9.5 extra are payed for every km
In addition, in case there is a problem with the wheels, the customer pays 1000 extra for every wheel (Hint: the user needs to enter the number of defected wheels)

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!