Created
February 9, 2015 00:49
-
-
Save sean-clayton/c4bdc82f3dd3afa622b5 to your computer and use it in GitHub Desktop.
Project 1 - Calculating Gas Mileage
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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