subject

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 estimated gas price
The efficiency in miles per gallon
The estimated resale value after 5 years
Compute the total cost of owning the car for five years (NUM_YEARS).

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

For fun, obtain realistic prices for a new and used hybrid and a comparable car from the Web.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 12:00
What type of slide show is a dynamic and eye-catching way to familiarize potential customers with what your company has to offer? a. ole b. photo album c. brochure d. office clipboard
Answers: 2
question
Computers and Technology, 23.06.2019 15:10
What role did women fill during world war ii?
Answers: 1
question
Computers and Technology, 23.06.2019 20:40
On nba 2k 19, every time i try to join a my park game, it leads ro a website telling my dad that he needs ps plus. i already have ps plus though. how do i fix this?
Answers: 2
question
Computers and Technology, 24.06.2019 01:00
How can the temperature of a room be raised by 5degreesf?
Answers: 1
You know the right answer?
Write a program that helps a person decide whether to buy a hybrid car. Ask the user to input the fo...
Questions
question
Geography, 18.12.2020 17:40
question
Mathematics, 18.12.2020 17:40
question
Social Studies, 18.12.2020 17:40
Questions on the website: 13722366