Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Seven NoSQL Databases In A Week Get Up And Running With The Fundamentals And Functionalities Of Seven Of The Most Popular NoSQL Databases

Authors: Aaron Ploetz ,Devram Kandhare ,Sudarshan Kadambi ,Xun Wu

1st Edition

1787288862, 978-1787288867

More Books

Students also viewed these Databases questions

Question

Define referred pain, and provide an example.

Answered: 1 week ago