Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started