Question: program in python. thanks i will leave a like 2) Ownership Cost.py (20) A more holistic way of looking at what a product actually costs
program in python. thanks i will leave a like 2) Ownership Cost.py (20) A more holistic way of looking at what a product actually costs to you is to see what the total cost of ownership would be. Total cost of ownership of an asset is its purchase price plus its costs of operation (Investopedia). When you have to decide among multiple things, a vehicle for example, you look into not just the immediate cost (price of the car), but also the long-term cost (the cost to operate the vehicle). The asset with lower total cost of ownership is typically the one with better value. Write a program called Ownership Cost.py that helps a person decide whether to a hybrid car. Your program's inputs are: The cost of a new car The estimated miles driven per year The estimated gas price The efficiency in miles per gallon The estimated resale value after five years Compute the total cost of owning the car for five years. For simplicity, do not take cost of financing into account. Obtain realistic prices for new and used hybrid cars from the Internet Additional Information a) Use input function to receive user input b) Display formatted output Expected output Enter the cost of the car: 40000 How many miles will you drive each year? 15000 Enter the price of gas per gallon: 4 Enter the fuel efficiency in mpg: 50 How much can you sell the car for after 5 years? 18000 The total cost of ownership is 28000.00
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
