Created
October 25, 2016 03:29
-
-
Save chasefloyd/8f1155a9922909feb8b2104d7620a20e to your computer and use it in GitHub Desktop.
Tuition problem
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
creditHour=int(input("How many total hours are you taking? ")) | |
advancedHour=int(input("How many of those hours are from engineering/science classes? ")) | |
tuition = creditHour * 350 | |
specialTuition = advancedHour * 25 | |
reducedTuition = creditHour * 40 | |
if creditHour >= 0 and creditHour <= 12: | |
print(tuition + specialTuition) | |
else: | |
print(tuition + reducedTuition + specialTuition) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment