Computers and Technology

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.

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 18:30, RoxanneDuartee
Which statement best explains how plant cells use photosynthesis to maintain homeostasis? they use glucose and water to make energy. they break down glucose into fat. they combine oxygen and water to make glucose. they make glucose from carbon dioxide and water.
Answers: 1
image
Computers and Technology, 22.06.2019 06:30, iamquintix
Exchanging which type of data uses the least bandwidth? music photographs video voice bandwidth- the amount of data that can be moved between two points in a set time period
Answers: 1
image
Computers and Technology, 22.06.2019 13:30, ReaLily
1. technician a says horsepower information can be used by consumers to compare the power of different automobile engines. technician b says that manufacturers will often list the horsepower output of their engines in the online service information. who is right?
Answers: 2
image
Computers and Technology, 22.06.2019 21:00, jarrettashlyn
Write a method so that the main() code below can be replaced by the simpler code that calls method original main(): public class calcmiles { public static void main(string [] args) { double milesperhour; double minutestraveled; double hourstraveled; double milestraveled; milesprhour = scnr. nextdouble(); minutestraveled = scnr. nextdouble(); hourstraveled = minutestraveled / 60.0; milestraveled = hourstraveled * milesperhour; system. out. println("miles: " + milestraveled); } }
Answers: 2
Do you know the correct 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
Mathematics, 11.01.2021 22:40
Konu
Geography, 11.01.2021 22:40
Konu
Mathematics, 11.01.2021 22:40
Konu
Mathematics, 11.01.2021 22:40
Konu
Mathematics, 11.01.2021 22:40