Question: Write a python program that asks the user for the gallons of gasoline used and the miles driven. The program should display the number of
Write a python program that asks the user for the gallons of gasoline used and the miles driven. The program should display the number of miles per gallon. Use the formula below: 26 CHAPTER 3. DESIGNING PROGRAMS WITH FUNCTIONS MPG = MD/GG where MD = Miles driven and GG = Gallons of gas used. Your program should include an input function, a processing function and an output function in addition to a main function
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
