Create a Python program to calculate the average miles per gallon obtained on a trip. Given/inputs car
Fantastic news! We've Found the answer you've been seeking!
Question:
Create a Python program to calculate the average miles per gallon obtained on a trip. Given/inputs car name, the amount of gas used and the number of miles driven. (The formula to calculate miles per gallon is miles per gallon = number of miles driven / amount of gas used. ) Display/outputs car name, gas used, miles driven, and MPG. Use your own values to test the. You can hard code the values or you can use the input() function.
Related Book For
An Introduction to Management Science Quantitative Approach to Decision Making
ISBN: 978-1337406529
15th edition
Authors: David R. Anderson, Dennis J. Sweeney, Thomas A. Williams, Jeffrey D. Camm, James J. Cochran
Posted Date: