Question: 1 . Create variables to store the following information ( you need to specify the numbers and your numbers are not expected to be the
Create variables to store the following information you need to specify the numbers and your numbers are not expected to be the same as others:
o The number of gallons of gas currently in the car's tank.
o The car's fuel efficiency in miles per gallon
o The price of gas per gallon
The program should then:
o Calculate and print the cost to drive miles.
o Calculate and print the maximum distance the car can travel with the gas currently in the tank.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
