Share your repls and programming experiences

← Back to all posts
check cars current price and when to change wheels
h
Harsimran08 (2)

Write a program that provides the current price of the car. Get 3 inputs from the user – year of purchase and purchasing price of the car and how many kilometers has it run .
Every year car's value reduces by 5%. It cannot go below 100$.
For every 70,000 km wheels must be changed. Print a message for the user that says in how many kilometers wheels must be changed.
Write 2 functions to calculate cost and to check in how many kilometers wheels must be changed