Skip to content

Instantly share code, notes, and snippets.

@chasefloyd
Created October 25, 2016 03:29
Show Gist options
  • Save chasefloyd/8f1155a9922909feb8b2104d7620a20e to your computer and use it in GitHub Desktop.
Save chasefloyd/8f1155a9922909feb8b2104d7620a20e to your computer and use it in GitHub Desktop.
Tuition problem
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