Question: Use Thonny create a new program and save the program as C H 2 _ Prg 2 then write the following program: The U Auto
Use Thonny create a new program and save the program as Prg then write the
following program:
The U Auto Know company would like you to create an application that will calculate the
miles per gallon for a vehicle.
Store the following data:
beginning odometer reading
ending odometer reading
miles driven
gallons of gas used
miles per gallon
Collect the following data from the user:
prompt the user for the data to enterstore the keyboard input
beginning odometer reading
ending odometer reading
gallons of gas
Then calculate the following for the user's vehicle:
Miles driven ending odometer beginning odometer
MPG miles driven gallons of gas used
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
