Project 2
Source Code
firstName = "" # add your first name
lastName = "" # add your last name
print("Name: " + firstName + " " + lastName)
def main():
done = False
while not done:
print("Welcome to my College Cost Calculator")
print("Menu")
print("C1 - Community College")
print("C2 - Public Four Years")
print("C3 - Private Four Years")
print("C4 - Public/Private Four Years")
print("Q - Quit")
choice = input("Choice: ")
if choice == "C1":
print("Name of Community College")
# community college function calls
elif choice == "C2":
print("Name Public Four Years")
# public four years function calls
elif choice == "C3":
print("Name of Private Four Years")
# private four years college function calls
elif choice == "C4":
print("Public/Private Four Years")
# public/private college function calls
print("Quitting!")
done = True
else:
print("Invalid choice")
# define Community College Tuition Function
# define College 1 Tuition Function
# define College 1 Housing Function
# define College 1 Meals Function
# define College 1 Fees Function
# define College 1 About Function
# call to main function, do not delete!
main()
Last updated