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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 19:30, alangonsales6232
2. fluorine and chlorine molecules are blamed fora trapping the sun's energyob forming acid rainoc producing smogod destroying ozone molecules
Answers: 2
image
Computers and Technology, 24.06.2019 17:40, michaelandtammytrice
Create a file called favorite_foods, and list your favorite foods, entering five or six or more. press enter after each favorite food so it appears on its own line (make certain you also press enter after the final food item). after the file is created, add two more foods you like that are not on the list (press enter after the final food item). view the list of foods to make certain the two items you added appear at the end of the list
Answers: 2
image
Computers and Technology, 24.06.2019 21:30, zlyzoh
Write an algorithm to check if a number is even or odd and show with flow chart step by step
Answers: 2
image
Computers and Technology, 25.06.2019 00:30, marziel24
Which type of cell references are locked and not automatically updated when it’s copied a)formula b)relative c)absolute d)worksheet
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 in other subjects:

Konu
Physics, 19.11.2020 07:00
Konu
Biology, 19.11.2020 07:00
Konu
History, 19.11.2020 07:00
Konu
Social Studies, 19.11.2020 07:00