Skip to content

Instantly share code, notes, and snippets.

@sean-clayton
Created February 9, 2015 00:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sean-clayton/c4bdc82f3dd3afa622b5 to your computer and use it in GitHub Desktop.
Save sean-clayton/c4bdc82f3dd3afa622b5 to your computer and use it in GitHub Desktop.
Project 1 - Calculating Gas Mileage
from support import * # Imports your helper functions from support.py
def main():
# Call all of your functions from support.py in here
# and return the output to the user
main()
def getInfo():
# Prompt the user for initial information
def computeMpg():
# Compute the overall mpg
def getDesiredMpg():
# Computes what the MPG of the second segment should have been to achieve a desired MPG
1
2
3
4
5
y
5
3
9
1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment