Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("Welcome to Aguilaair Utilities!")
- print("Loading...")
- print("Loaded!")
- print("NOTE: KNOWN BUG - When clicking enter in the activity chooser it redirects to lesson chooser. ")
- print("V1.18")
- print("Please logon")
- User = True
- Lesson=True
- ans=True
- while User:
- User = input ("Username: ")
- if User == "TEST":
- print ("Welcome, {0} to Aguilaair Utilities!".format(User))
- print ("Python Lesson 1")
- print("Menu:")
- while Lesson:
- print("""
- 1.Lesson 1
- 2.Logout
- 3.Exit
- """)
- Lesson=input("What would you like to do? ")
- while ans:
- print("""
- 1.Three number addition
- 2.4 Number average
- 3.Bill divider
- 4.Area calculator
- 5.Volume calculator
- 6.Volume diference
- 7.Sweet divider
- 8.Lesson chooser
- 9.Logout
- 10.Exit
- """)
- ans=input("What would you like to do? ")
- if ans=="1":
- print("You have chosen, Three number addition!")
- num1_1 = int(input ("Number 1:"))
- num2_1 = int(input ("Number 2:"))
- num3_1 = int(input ("Number 3:"))
- TOTAL1 = num1_1 + num2_1 + num3_1
- print ("Total is {0}!".format(TOTAL1))
- print ("###############FINISH###############")
- elif ans=="2":
- print("You have chosen, Four number average!")
- num1_2 = int(input ("Number 1:"))
- num2_2 = int(input ("Number 2:"))
- num3_2 = int(input ("Number 3:"))
- num4_2 = int(input ("Number 4:"))
- TOTAL2 = num1_2 / 4 + num2_2 / 4 + num3_2 / 4 + num4_2 / 4
- print ("Average is {0}!".format(TOTAL2))
- print ("###############FINISH###############")
- elif ans=="3":
- print("You have chosen, Bill Divider!")
- num1_3 = int(input ("Total Bill: "))
- num2_3 = int(input ("Number of people: "))
- TOTAL3 = num1_3 / num2_3
- print ("Each one of you have to pay {0}!".format(TOTAL3))
- print ("###############FINISH###############")
- elif ans=="4":
- print("You have chosen, Area calculator!")
- num1_4 = int(input ("Width: "))
- num2_4 = int(input ("Length: "))
- TOTAL4 = num1_4 * num2_4
- print ("Area is {0} !".format(TOTAL4))
- print ("###############FINISH###############")
- elif ans=="5":
- print("You have chosen, Volume calculator!")
- print("WARNING: ONY CUBOIDS")
- num1_5 = int(input ("Width: "))
- num2_5 = int(input ("Length: "))
- num3_5 = int(input ("Depth:"))
- TOTAL5 = num1_5 * num2_5 * num3_5
- print ("Volume is {0}!".format(TOTAL5))
- print ("###############FINISH###############")
- elif ans=="6":
- print("You have chosen, Volume diference!")
- print("WARNING: ONY CUBOIDS")
- print ("····Small Cube····")
- num1_6 = int(input ("Width: "))
- num2_6 = int(input ("Length: "))
- num3_6 = int(input ("Depth:"))
- print ("····Big Cube····")
- num4_6 = int(input ("Width: "))
- num5_6 = int(input ("Length: "))
- num6_6 = int(input ("Depth:"))
- TOTAL6_1 = num1_6 * num2_6 * num3_6
- TOTAL6_2 = num4_6 * num5_6 * num6_6
- TOTAL6 = TOTAL6_2 - TOTAL6_1
- print ("Volume diference is {0}!".format(TOTAL6))
- print ("###############FINISH###############")
- elif ans=="7":
- print("You have chosen, Sweet divider!")
- num1_7 = int(input ("Sweets: "))
- num2_7 = int(input ("People: "))
- TOTAL7_1 = num1_7 // num2_7
- TOTAL7_2 = num1_7 % num2_7
- print ("Each person should have {0} sweets and {1} left over!".format(TOTAL7_1, TOTAL7_2))
- print ("###############FINISH###############")
- elif ans=="8":
- print ("Choosing lesson...")
- ans = None
- elif ans=="9":
- print ("Loging out...")
- ans = None
- Lesson = None
- elif ans=="10":
- print ("Closing...")
- ans = None
- Lesson = None
- User = None
- else:
- print("Not Valid Choice Try again.")
- elif Lesson == "2":
- print ("Logging out...")
- Lesson = None
- elif Lesson == "3":
- print ("Closing...")
- ans = None
- Lesson = None
- User = None
- else:
- print("Not a valid lesson")
- else:
- print ("User not whitelisted!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement