Question: Lecture 2 Project - Miles Per Gallon 12 Print Screen SSR Directions: Insert Create a program that calculates the miles per gallon by dividing miles

Lecture 2 Project - Miles Per Gallon 12 Print Screen SSR Directions: Insert Create a program that calculates the miles per gallon by dividing miles driven by gallons used. Use the following variables: miles_driven, gallons_used and mpg. Make sure to round the miles gallon value to two decimal places. Use input() and print() functions when needed. Use the escape sequence \t to tab your information and use the print() function to create blank lines. Make sure to type cast input information that is needed in a mathematical calculation or printing out information. Use comments to document the different parts of your program. Delete Create an IPO chart Use Spyder to create the program. Name the program FirstNameLastName MilesPerGallon1. Use your first name and last name in the file name. Output: The Miles Per Gallon program Enter miles driven: Enter gallons of gas used: 150 35.875 4.18 Miles Per Gallon: Bye
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
