Advertisement
Guest User

Untitled

a guest
Mar 27th, 2017
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 5.55 KB | None | 0 0
  1. print("Welcome to Aguilaair Utilities!")
  2. print("Loading...")
  3. print("Loaded!")
  4. print("NOTE: KNOWN BUG - When clicking enter in the activity chooser it redirects to lesson chooser. ")
  5. print("V1.18")
  6. print("Please logon")
  7. User = True
  8. Lesson=True
  9. ans=True
  10. while User:
  11.     User = input ("Username: ")
  12.     if User == "TEST":
  13.         print ("Welcome, {0} to Aguilaair Utilities!".format(User))
  14.         print ("Python Lesson 1")
  15.         print("Menu:")
  16.         while Lesson:
  17.             print("""
  18.            1.Lesson 1
  19.            2.Logout
  20.            3.Exit
  21.            """)
  22.             Lesson=input("What would you like to do? ")
  23.             while ans:
  24.                 print("""
  25.        1.Three number addition
  26.        2.4 Number average
  27.        3.Bill divider
  28.        4.Area calculator
  29.        5.Volume calculator
  30.        6.Volume diference
  31.        7.Sweet divider
  32.        8.Lesson chooser
  33.        9.Logout
  34.       10.Exit
  35.                """)
  36.                 ans=input("What would you like to do? ")
  37.                 if ans=="1":
  38.                       print("You have chosen, Three number addition!")
  39.                       num1_1 = int(input ("Number 1:"))
  40.                       num2_1 = int(input ("Number 2:"))
  41.                       num3_1 = int(input ("Number 3:"))
  42.  
  43.                       TOTAL1 = num1_1 + num2_1 + num3_1
  44.  
  45.                       print ("Total is {0}!".format(TOTAL1))
  46.  
  47.                       print ("###############FINISH###############")
  48.                 elif ans=="2":
  49.                       print("You have chosen, Four number average!")
  50.                       num1_2 = int(input ("Number 1:"))
  51.                       num2_2 = int(input ("Number 2:"))
  52.                       num3_2 = int(input ("Number 3:"))
  53.                       num4_2 = int(input ("Number 4:"))
  54.  
  55.                       TOTAL2 = num1_2 / 4 + num2_2 / 4 + num3_2 / 4 + num4_2 / 4
  56.  
  57.                       print ("Average is {0}!".format(TOTAL2))
  58.  
  59.                       print ("###############FINISH###############")
  60.                 elif ans=="3":
  61.                       print("You have chosen, Bill Divider!")
  62.                       num1_3 = int(input ("Total Bill: "))
  63.                       num2_3 = int(input ("Number of people: "))
  64.  
  65.  
  66.                       TOTAL3 = num1_3 / num2_3
  67.  
  68.                       print ("Each one of you have to pay {0}!".format(TOTAL3))
  69.  
  70.                       print ("###############FINISH###############")
  71.  
  72.                 elif ans=="4":
  73.                       print("You have chosen, Area calculator!")
  74.                       num1_4 = int(input ("Width: "))
  75.                       num2_4 = int(input ("Length: "))
  76.  
  77.  
  78.                       TOTAL4 = num1_4 * num2_4
  79.  
  80.                       print ("Area is {0} !".format(TOTAL4))
  81.  
  82.                       print ("###############FINISH###############")
  83.  
  84.                 elif ans=="5":
  85.                       print("You have chosen, Volume calculator!")
  86.                       print("WARNING: ONY CUBOIDS")
  87.                       num1_5 = int(input ("Width: "))
  88.                       num2_5 = int(input ("Length: "))
  89.                       num3_5 = int(input ("Depth:"))
  90.  
  91.  
  92.                       TOTAL5 = num1_5 * num2_5 * num3_5
  93.  
  94.                       print ("Volume is {0}!".format(TOTAL5))
  95.  
  96.                       print ("###############FINISH###############")
  97.  
  98.                 elif ans=="6":
  99.                       print("You have chosen, Volume diference!")
  100.                       print("WARNING: ONY CUBOIDS")
  101.                       print ("····Small Cube····")
  102.                       num1_6 = int(input ("Width: "))
  103.                       num2_6 = int(input ("Length: "))
  104.                       num3_6 = int(input ("Depth:"))
  105.                       print ("····Big Cube····")
  106.                       num4_6 = int(input ("Width: "))
  107.                       num5_6 = int(input ("Length: "))
  108.                       num6_6 = int(input ("Depth:"))
  109.  
  110.  
  111.                       TOTAL6_1 = num1_6 * num2_6 * num3_6
  112.                       TOTAL6_2 = num4_6 * num5_6 * num6_6
  113.                       TOTAL6 = TOTAL6_2 - TOTAL6_1
  114.  
  115.                       print ("Volume diference is {0}!".format(TOTAL6))
  116.  
  117.                       print ("###############FINISH###############")
  118.  
  119.                 elif ans=="7":
  120.                       print("You have chosen, Sweet divider!")
  121.                       num1_7 = int(input ("Sweets: "))
  122.                       num2_7 = int(input ("People: "))
  123.  
  124.  
  125.                       TOTAL7_1 = num1_7 // num2_7
  126.                       TOTAL7_2 = num1_7 % num2_7
  127.  
  128.  
  129.                       print ("Each person should have {0} sweets and {1} left over!".format(TOTAL7_1, TOTAL7_2))
  130.  
  131.                       print ("###############FINISH###############")
  132.  
  133.                 elif ans=="8":
  134.                     print ("Choosing lesson...")
  135.                     ans = None
  136.                 elif ans=="9":
  137.                     print ("Loging out...")
  138.                     ans = None
  139.                     Lesson = None
  140.                 elif ans=="10":
  141.                     print ("Closing...")
  142.                     ans = None
  143.                     Lesson = None
  144.                     User = None
  145.                 else:
  146.                     print("Not Valid Choice Try again.")
  147.  
  148.         elif Lesson == "2":
  149.             print ("Logging out...")
  150.             Lesson = None
  151.         elif Lesson == "3":
  152.             print ("Closing...")
  153.             ans = None
  154.             Lesson = None
  155.             User = None
  156.         else:
  157.             print("Not a valid lesson")
  158.     else:
  159.         print ("User not whitelisted!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement