Question: Using python, w rite a program that helps a person decide whether to buy a hybrid car. Ask the user to input the following items

Using python, write a program that helps a person decide whether to buy a hybrid car. Ask the user to input the following items: the cost of a new car, the estimated miles driven per year, the miles per gallon, and the estimated resale value after 5 years. Compute the total cost of owning the car for 5 years (NUM_YEARS)

Total Cost = car_cost resale + ((NUM_YEARS * miles_per_year)/(efficiency * gas_price))

Code with comments and screenshot results

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!