Question:

3:08 A inst-fs-pdx-prod.inscloudgate.net Programming Project 1 Write a program that calculates potential savings when you switch

3:08
A inst-fs-pdx-prod.inscloudgate.net
Programming Project 1
Write a program that calculates potential savings when you switch driving
from a gasoline-powered car to an electric vehicle (EV). The program takes
the following inputs from the user
Local fuel price/gallon,
Estimated MPG of gas vehicle,
Estimated kWh per mile for EV,
Utility kWh rate,
Total miles are driven per year,
and displays the potential total $ savings per year.
Here is the example program output:
-- Welcome to EV savings estimator --
Please enter the following information:
Local fuel price/gallon: $ 3.50
Estimated MPG of gas vehicle: 23
Estimated kWh per mile for EV: 0.251
Utility kwh rate: $ 0.1137
Total miles are driven per year: 12140
Calculating ...
Based on the data provided, you can save $ 1500 per year by
driving an EV.
Please submit your program source code (.java) file to
https://classroom.github.com/a/ib5sNxEA
<
B

3:08 A inst-fs-pdx-prod.inscloudgate.net Programming Project 1 Write a program that calculates potential savings when you switch driving from a gasoline-powered car to an electric vehicle (EV). The program takes the following inputs from the user Local fuel price/gallon, Estimated MPG of gas vehicle, Estimated kWh per mile for EV, Utility kWh rate, Total miles are driven per year, and displays the potential total $ savings per year. Here is the example program output: -- Welcome to EV savings estimator -- Please enter the following information: Local fuel price/gallon: $ 3.50 Estimated MPG of gas vehicle: 23 Estimated kWh per mile for EV: 0.251 Utility kwh rate: $ 0.1137 Total miles are driven per year: 12140 Calculating ... Based on the data provided, you can save $ 1500 per year by driving an EV. Please submit your program source code (.java) file to https://classroom.github.com/a/ib5sNxEA < B