Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Program 1.3 (out of 12 points) Create a program called fuelSavings.py I want to know how much I would save on fuel if I bought

image text in transcribed

Program 1.3 (out of 12 points) Create a program called fuelSavings.py I want to know how much I would save on fuel if I bought something more fuel efficient, e.g., a hybrid car. I think the numbers I need are miles driven per year, MPG in my current car, MPG of the new car, and the cost of gasoline. Report the fuel cost for each car and the savings (or loss--a negative number) with the new hybrid car. . Here is an example: Please enter the miles you drive per year: 30000 Please enter your current car's MPG: 25 Please enter the MPG of the new car: 40 Please enter the current cost of gas per gallon: 2.75 Fuel cost for your current car is $3300.0 Fuel cost for the new car is $2062.5 Savings (or loss) is $1237.5 >>>

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

what is a peer Group? Importance?

Answered: 1 week ago

Question

5. Benchmark current training practices.

Answered: 1 week ago