Question: Create a program called gas _ calc.py , which asks the user 1 ) the number of miles they drove on a trip, 2 )

Create a program called gas_calc.py, which asks the user 1) the number of miles they drove on a trip, 2) the number of gallons of gas they used, and 3) the price of gas per gallon. The program uses their input to figure out and display the cost of the trip & the miles per gallon (MPG) for the trip. See output format below.
Ongoing challenges: what goes into the .py file comments, and what goes into your PDP document? Double check all standard requirements for the PDP & .py file.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!