Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Create a Python program that will simulate:
- #1. Booting up a Computer
- #2. Entering a username / password to get into the Desktop
- #3. Open up a program and have the program do something
- #4. System Check (CONTROL ALT DELETE PROCESSES)
- #5. Logoff
- #6. Reboot / Shut Down
- #Utilize: Keyboard, mouse, monitor etc.
- #When these options are activating from the Class you created, each specific thing should have functions that will run from it.
- #Your program must have:
- #Classes(Module you created)
- #Functions
- #Arrays
- #If using anything you didn't learn in class, site it and write what it does and everything.
- def bootup():
- print ""
- print "Booting up..."
- print "=" * 80
- print "Loading programs..."
- print "=" * 80
- print "Updating software..."
- print "=" * 80
- print "Finding devices..."
- print "Mouse found."
- print "Keyboard found."
- print "Printer found."
- print "=" * 80
- print "Connect to interent..."
- print "....."
- print "..."
- print "Connected."
- print "=" * 80#This is the function to bootup the computer
- def logoff():
- print "=" * 80
- print "Closing all programs..."
- print "=" * 80
- print "Closing all background programs..."
- print "=" * 80
- print "Logging off..."
- print "=" * 80
- print "Loading..."
- print "=" * 80
- sign_in()#This is the function to logoff the user
- def reboot():
- print "=" * 80
- print "Closing all programs..."
- print "=" * 80
- print "Closing all background programs..."
- print "=" * 80
- print "Loading..."
- print "=" * 80
- print "Rebooting..."
- print "....."
- print "..."
- bootup()
- sign_in()#This is the function to reboot the computer
- def shut_down(): #This is the function to shut down the computer
- print "=" * 80
- print "Are you sure you want to shut down?"
- answer=raw_input()
- if answer=="yes":
- print "Closing all programs..."
- print "=" * 80
- print "Closing all background programs..."
- print "=" * 80
- print "Loading..."
- print "=" * 80
- print "Shutting down..."
- print "....."
- print "..."
- print "."
- elif answer=="Yes":
- print "Closing all programs..."
- print "=" * 80
- print "Closing all background programs..."
- print "=" * 80
- print "Loading..."
- print "=" * 80
- print "Shutting down..."
- print "....."
- print "..."
- print "."
- elif answer=="no":
- print "Okay"
- options()
- elif answer=="No":
- print "Okay"
- options()
- else:
- print "Try again."
- shut_down()
- def task_manager(): #This is the function to go to task manger and kill programs
- task1 = "ScheduleMe"
- task2 = "Wireless Connection"
- task3 = "Find My Element"
- task4 = "Printer"
- tasks=[task1,task2,task3,task4]
- print tasks
- task = raw_input("What program would you like to kill?")
- if task==task1:
- print "done"
- tasks=[task2,task3,task4]
- print tasks
- options()
- elif task==task2:
- print "done"
- tasks=[task1,task3,task4]
- print tasks
- options()
- elif task==task3:
- print "done"
- tasks=[task1,task2,task4]
- print tasks
- options()
- elif task==task4:
- print "done"
- tasks=[task1,task2,tasks]
- print tasks
- options()
- else:
- print "Error. Try again"
- task_manager()
- def options(): #This is the function to go to start menu
- print "=" * 80
- print "Choose corresponding number:"
- print "1. Logoff"
- print "2. Reboot"
- print "3. Shut Down"
- print "4. Task Manager"
- print "5. Back"
- choice=raw_input()
- if choice=="1":
- logoff()
- elif choice=="2":
- reboot()
- elif choice=="3":
- shut_down()
- elif choice=="4":
- task_manager()
- elif choice=="5":
- desktop_screen()
- else:
- print "Error!!!"
- def element(): # Define main function that encompasses everything in the find my element program
- global element
- print "=" * 22
- print "Find my element."
- print "=" * 22
- # Instructions for how to use program
- print "Section 1: consists of periods 1 & 2"
- print "Section 2: consists of periods 3 through 8"
- print "Section 3: consists of transition metals"
- print "Section 4: consists of Lanthanoids and Actinoids"
- print "(Or type \'0\' to go back)"
- period = raw_input("Choose your section [1-4]:") # choose section for where the program will look for your element
- if period == "1": # takes raw input and places reads it and outputs what section of the periodic table the user should choose from
- print "Choose an element's initials from period 1 or 2 (Case Sensitive):"
- elif period == "2":
- print "Choose an element's initials from periods 3 through 8 (Case Sensitive):"
- elif period == "3":
- print "Choose a transition metal's initials (Case Sensitive):"
- elif period == "4":
- print "Choose a Lanthanoid's initials or an Actinoid's initials (Case Sensitive):"
- elif period == "0" :
- desktop_screen()
- elif period == "ctrl alt delete":
- options()
- else:
- print "Try again..."
- element()
- a = "atomic number" # strings for easier coding below
- b = "atomic mass"
- element = raw_input("Choose your element") # asks user to input the element
- element = element
- def period_1_and_2(Period12): # defines function for periods 1 and 2
- if element == "H":
- print "Hydrogen \n %s: 1 \n %s: 1.008" % (a,b)
- desktop_screen()
- elif element == "Li":
- print "Lithium \n %s: 3 \n %s: 6.941" % (a,b)
- desktop_screen()
- elif element == "Na":
- print "Sodium \n %s: 11 \n %s: 22.990" % (a,b)
- desktop_screen()
- elif element == "K":
- print "Potassium \n %s: 19 \n %s: 39.098" % (a,b)
- desktop_screen()
- elif element == "Rb":
- print "Rubidium \n %s: 37 \n %s: 84.468" % (a,b)
- desktop_screen()
- elif element == "Cs":
- print "Cesium \n %s: 55 \n %s: 132.905" % (a,b)
- desktop_screen()
- elif element == "Fr":
- print "Francium \n %s: 87 \n %s: 223.020" % (a,b)
- desktop_screen()
- elif element == "Be":
- print "Beryllium \n %s: 4 \n %s: 9.012" % (a,b)
- desktop_screen()
- elif element == "Mg":
- print "Magnesium \n %s: 12 \n %s: 24.305" % (a,b)
- desktop_screen()
- elif element == "Ca":
- print "Calcium \n %s: 20 \n %s: 40.078" % (a,b)
- desktop_screen()
- elif element == "Sr":
- print "Strontium \n %s: 38 \n %s: 87.62" % (a,b)
- desktop_screen()
- elif element == "Ba":
- print "Barium \n %s: 56 \n %s: 137.328" % (a,b)
- desktop_screen()
- elif element == "Ra":
- print "Radium \n %s: 88 \n %s: 226.025" % (a,b)
- desktop_screen()
- elif element == "ctrl alt delete":
- options()
- period_1_and_2("Period12") # calls the the function above
- def period_3_to_8(Period38): # defines function for periods 3 through 8
- if element == "B":
- print "Boron \n %s: 5 \n %s: 10.81" % (a,b)
- desktop_screen()
- elif element == "Al":
- print "Aluminium \n %s: 13 \n %s: 26.9815385" % (a,b)
- desktop_screen()
- elif element == "Ga":
- print "Gallium \n %s: 31 \n %s: 69.723" % (a,b)
- desktop_screen()
- elif element == "In":
- print "Indium \n %s: 49 \n %s: 114.818" % (a,b)
- desktop_screen()
- elif element == "Ti":
- print "Thallium \n %s: 81 \n %s: 204.38" % (a,b)
- desktop_screen()
- elif element == "C":
- print "Carbon \n %s: 6 \n %s: 12.001" % (a,b)
- desktop_screen()
- elif element == "Si":
- print "Silicon \n %s: 14 \n %s: 28.085" % (a,b)
- desktop_screen()
- elif element == "Ge":
- print "Germanium \n %s: 32 \n %s: 72.63" % (a,b)
- desktop_screen()
- elif element == "Sn":
- print "Tin \n %s: 50 \n %s: 118.710" % (a,b)
- desktop_screen()
- elif element == "Pb":
- print "Lead \n %s: 82 \n %s: 207.2" % (a,b)
- desktop_screen()
- elif element == "N":
- print "Nitrogen \n %s: 7 \n %s: 14.007" % (a,b)
- desktop_screen()
- elif element == "P":
- print "Phosphorus \n %s: 15 \n %s: 30.973761998" % (a,b)
- desktop_screen()
- elif element == "As":
- print "Arsenic \n %s: 33 \n %s: 74.921595" % (a,b)
- desktop_screen()
- elif element == "Sb":
- print "Antimony \n %s: 51 \n %s: 121.760" % (a,b)
- desktop_screen()
- elif element == "Bi":
- print "Bismuth \n %s: 83 \n %s: 208.98040" % (a,b)
- desktop_screen()
- elif element == "O":
- print "Oxygen \n %s: 8 \n %s: 15.999" % (a,b)
- desktop_screen()
- elif element == "S":
- print "Sulfur \n %s: 16 \n %s: 32.06" % (a,b)
- desktop_screen()
- elif element == "Se":
- print "Selenium \n %s: 34 \n %s: 78.971" % (a,b)
- desktop_screen()
- elif element == "Te":
- print "Tellurium \n %s: 52 \n %s: 127.60" % (a,b)
- desktop_screen()
- elif element == "Po":
- print "Polonium \n %s: 84 \n %s: 209" % (a,b)
- desktop_screen()
- elif element == "F":
- print "Fluorine \n %s: 9 \n %s: 18.998403163" % (a,b)
- desktop_screen()
- elif element == "Cl":
- print "Chlorine \n %s: 17 \n %s: 35.45" % (a,b)
- desktop_screen()
- elif element == "Br":
- print "Bromine \n %s: 35 \n %s: 79.904" % (a,b)
- desktop_screen()
- elif element == "I":
- print "Iodine \n %s: 53 \n %s: 126.90447" % (a,b)
- desktop_screen()
- elif element == "At":
- print "Astatine \n %s: 85 \n %s: 210" % (a,b)
- desktop_screen()
- elif element == "He":
- print "Helium \n %s: 2 \n %s: 4.002602" % (a,b)
- desktop_screen()
- elif element == "Ne":
- print "Neon \n %s: 10 \n %s: 20.1797" % (a,b)
- desktop_screen()
- elif element == "Ar":
- print "Argon \n %s: 18 \n %s 39.948" % (a,b)
- desktop_screen()
- elif element == "Kr":
- print "Krypton \n %s: 36 \n %s: 83.798" % (a,b)
- desktop_screen()
- elif element == "Xe":
- print "Xenon \n %s: 54 \n %s: 131.293" % (a,b)
- desktop_screen()
- elif element == "Rn":
- print "Radon \n %s: 86 \n %s: 222" % (a,b)
- desktop_screen()
- elif element == "ctrl alt delete":
- options()
- period_3_to_8("Period38") # calls the the function above
- def transition_metals(Transition): # defines function for all transition metals
- if element == "Sc":
- print "Scandium \n %s: 21 \n %s: 44.956" % (a,b)
- desktop_screen()
- elif element == "Ti":
- print "Titanium \n %s: 22 \n %s: 47.867" % (a,b)
- desktop_screen()
- elif element == "V":
- print "Vanadium \n %s: 23 \n %s: 50.942" % (a,b)
- desktop_screen()
- elif element == "Cr":
- print "Chromium \n %s: 24 \n %s: 51.996" % (a,b)
- desktop_screen()
- elif element == "Mn":
- print "Manganese \n %s: 25 \n %s: 54.938" % (a,b)
- desktop_screen()
- elif element == "Fe":
- print "Iron \n %s: 26 \n %s: 55.845" % (a,b)
- desktop_screen()
- elif element == "Co":
- print "Cobalt \n %s: 27 \n %s: 58.933" % (a,b)
- desktop_screen()
- elif element == "Ni":
- print "Nickel \n %s: 28 \n %s: 58.693" % (a,b)
- desktop_screen()
- elif element == "Cu":
- print "Copper \n %s: 29 \n %s: 63.546" % (a,b)
- desktop_screen()
- elif element == "Zn":
- print "Zinc \n %s: 30 \n %s: 65.38" % (a,b)
- desktop_screen()
- elif element == "Y":
- print "Yttrium \n %s: 39 \n %s: 88.906" % (a,b)
- desktop_screen()
- elif element == "Zr":
- print "Zirconium \n %s: 40 \n %s: 91.224" % (a,b)
- desktop_screen()
- elif element == "Nb":
- print "Niobiium \n %s: 41 \n %s: 92.906" % (a,b)
- desktop_screen()
- elif element == "Mo":
- print "Molybdenum \n %s: 42 \n %s: 95.95" % (a,b)
- desktop_screen()
- elif element == "Tc":
- print "Technetium \n %s: 43 \n %s: 98.907" % (a,b)
- desktop_screen()
- elif element == "Ru":
- print "Ruthenium \n %s: 44 \n %s: 101.07" % (a,b)
- desktop_screen()
- elif element == "Rh":
- print "Rhodium \n %s: 45 \n %s: 102.906" % (a,b)
- desktop_screen()
- elif element == "Pd":
- print "Palladium \n %s: 46 \n %s: 106.42" % (a,b)
- desktop_screen()
- elif element == "Ag":
- print "Silver \n %s: 47 \n %s: 107.868" % (a,b)
- desktop_screen()
- elif element == "Cd":
- print "Cadmium \n %s: 48 \n %s: 112.414" % (a,b)
- desktop_screen()
- elif element == "Hf":
- print "Hafnium \n %s: 72 \n %s: 178.49" % (a,b)
- desktop_screen()
- elif element == "Ta":
- print "Tantalum \n %s: 73 \n %s: 180.948" % (a,b)
- desktop_screen()
- elif element == "W":
- print "Tungsten \n %s: 74 \n %s: 183.84" % (a,b)
- desktop_screen()
- elif element == "Re":
- print "Rhenium \n %s: 75 \n %s: 186.207" % (a,b)
- desktop_screen()
- elif element == "Os":
- print "Osmium \n %s: 76 \n %s: 190.23" % (a,b)
- desktop_screen()
- elif element == "Ir":
- print "Iridium \n %s: 77 \n %s: 192.217" % (a,b)
- desktop_screen()
- elif element == "Pt":
- print "Platinum \n %s: 78 \n %s: 195.085" % (a,b)
- desktop_screen()
- elif element == "Au":
- print "Gold \n %s: 79 \n %s: 196.967" % (a,b)
- desktop_screen()
- elif element == "Hg":
- print "Mercury \n %s: 80 \n %s: 200.592" % (a,b)
- desktop_screen()
- elif element == "Rf":
- print "Rutherfordium \n %s: 104 \n %s: 261" % (a,b)
- desktop_screen()
- elif element == "Db":
- print "Dubnium \n %s: 105 \n %s: 262" % (a,b)
- desktop_screen()
- elif element == "Sg":
- print "Seaborgium \n %s: 106 \n %s: 266" % (a,b)
- desktop_screen()
- elif element == "Bh":
- print "Bohrium \n %s: 107 \n %s: 264" % (a,b)
- desktop_screen()
- elif element == "Hs":
- print "Hassium \n %s: 108 \n %s: 269" % (a,b)
- desktop_screen()
- elif element == "Mt":
- print "Meitnerium \n %s: 109 \n %s: 268" % (a,b)
- desktop_screen()
- elif element == "Ds":
- print "Darmstadtium \n %s: 110 \n %s: 269" % (a,b)
- desktop_screen()
- elif element == "Rg":
- print "Roentgenium \n %s: 111 \n %s: 272" % (a,b)
- desktop_screen()
- elif element == "Cn":
- print "Copernicium \n %s: 112 \n %s: 277" % (a,b)
- desktop_screen()
- elif element == "ctrl alt delete":
- options()
- transition_metals("Transition") # calls the the function above
- def lanthanoids_and_actinoids(lanthanoids_and_actinoids): # defines the function for lanthanoids and actinoids
- if element == "La":
- print "Lanthanum \n %s: 57 \n %s: 138.905" % (a,b)
- desktop_screen()
- elif element == "Ce":
- print "Cerium \n %s: 58 \n %s: 140.116" % (a,b)
- desktop_screen()
- elif element == "Pr":
- print "Praseodymium \n %s: 59 \n %s: 140.908" % (a,b)
- desktop_screen()
- elif element == "Nd":
- print "Neodymium \n %s: 60 \n %s: 144.243" % (a,b)
- desktop_screen()
- elif element == "Pm":
- print "Promethium \n %s: 61 \n %s: 144.913" % (a,b)
- desktop_screen()
- elif element == "Sm":
- print "Samarium \n %s: 62 \n %s: 150.36" % (a,b)
- desktop_screen()
- elif element == "Eu":
- print "Europium \n %s: 63 \n %s: 151.964" % (a,b)
- desktop_screen()
- elif element == "Gd":
- print "Gadolinium \n %s: 64 \n %s: 157.25" % (a,b)
- desktop_screen()
- elif element == "Tb":
- print "Terbium \n %s: 65 \n %s: 158.925" % (a,b)
- desktop_screen()
- elif element == "Dy":
- print "Dysprosium \n %s: 66 \n %s: 162.500" % (a,b)
- desktop_screen()
- elif element == "Ho":
- print "Holmium \n %s: 67 \n %s: 164.930" % (a,b)
- desktop_screen()
- elif element == "Er":
- print "Erbium \n %s: 68 \n %s: 167.259" % (a,b)
- desktop_screen()
- elif element == "Tm":
- print "Thulium \n %s: 69 \n %s: 168.934" % (a,b)
- desktop_screen()
- elif element == "Yb":
- print "Ytterbium \n %s: 70 \n %s: 173.055" % (a,b)
- desktop_screen()
- elif element == "Lu":
- print "Lutetium \n %s:71 \n %s: 174.967" % (a,b)
- desktop_screen()
- elif element == "Ac":
- print "Actinium \n %s: 89 \n %s: 227.028" % (a,b)
- desktop_screen()
- elif element == "Th":
- print "Thorium \n %s: 90 \n %s: 232.038" % (a,b)
- desktop_screen()
- elif element == "Pa":
- print "Protactinium \n %s: 91 \n %s: 231.036" % (a,b)
- desktop_screen()
- elif element == "U":
- print "Uranium \n %s: 92 \n %s: 238.029" % (a,b)
- desktop_screen()
- elif element == "Np":
- print "Neptunium \n %s: 93 \n %s: 237.048" % (a,b)
- desktop_screen()
- elif element == "Pu":
- print "Plutonium \n %s: 94 \n %s: 244.064" % (a,b)
- desktop_screen()
- elif element == "Am":
- print "Americium \n %s: 95 \n %s: 243.061" % (a,b)
- desktop_screen()
- elif element == "Cm":
- print "Curium \n %s: 96 \n %s: 247.070" % (a,b)
- desktop_screen()
- elif element == "Bk":
- print "Berkelium \n %s:97 \n %s: 247.070" % (a,b)
- desktop_screen()
- elif element == "Cf":
- print "Californium \n %s:98 \n %s: 251.080" % (a,b)
- desktop_screen()
- elif element == "Es":
- print "Einsteinium \n %s: 99 \n %s: 254" % (a,b)
- desktop_screen()
- elif element == "Fm":
- print "Fermium \n %s: 100 \n %s: 257.095" % (a,b)
- desktop_screen()
- elif element == "Md":
- print "Mendelevium \n %s: 101 \n %s: 258.1" % (a,b)
- desktop_screen()
- elif element == "No":
- print "Nobelium \n %s: 102 \n %s: 259.101" % (a,b)
- desktop_screen()
- elif element == "Lr":
- print "Lawrencium \n %s: 103 \n %s: 262" % (a,b)
- desktop_screen()
- elif element == "ctrl alt delete":
- options()
- lanthanoids_and_actinoids("Lanthanoid_and_actinoids") # calls the the function above
- def sheduleme(): #defines funcion ScheduleMe which is used to find my schedule
- def a_day(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8): # defines function for A day
- print (50 * '=')
- print '''On A-Day you will have:
- First Period -> %s
- Second Period -> %s
- Community Period -> %s
- Third Period -> %s
- Fourth Period -> %s
- Lunch -> %s
- Fifth Period -> %s
- Sixth Period -> %s
- '''%(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8)
- def b_day(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8): # defines function for B Day
- print (50 * '=')
- print '''On B-Day you will have:
- First Period -> %s
- Second Period -> %s
- Community Period -> %s
- Third Period -> %s
- Fourth Period -> %s
- Lunch -> %s
- Fifth Period -> %s
- Sixth Period -> %s
- '''%(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8)
- def c_day(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8): # defines function for C Day
- print (50 * '=')
- print '''On C-Day you will have:
- First Period -> %s
- Second Period -> %s
- Community Period -> %s
- Third Period -> %s
- Fourth Period -> %s
- Lunch -> %s
- Fifth Period -> %s
- Sixth Period -> %s
- '''%(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8)
- def d_day(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8): # defines function for D Day
- print (50 * '=')
- print '''On D-Day you will have:
- First Period -> %s
- Second Period -> %s
- Community Period -> %s
- Third Period -> %s
- Fourth Period -> %s
- Lunch -> %s
- Fifth Period -> %s
- Sixth Period -> %s
- '''%(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8)
- def e_day(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8): # defines function for E Day
- print (50 * '=')
- print '''On E-Day you will have:
- First Period -> %s
- Second Period -> %s
- Community Period -> %s
- Third Period -> %s
- Fourth Period -> %s
- Lunch -> %s
- Fifth Period -> %s
- Sixth Period -> %s
- '''%(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8)
- def f_day(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8): # defines function for F Day
- print (50 * '=')
- print '''On F-Day you will have:
- First Period -> %s
- Second Period -> %s
- Community Period -> %s
- Third Period -> %s
- Fourth Period -> %s
- Lunch -> %s
- Fifth Period -> %s
- Sixth Period -> %s
- '''%(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8)
- def g_day(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8): # defines function for G Day
- print (50 * '=')
- print '''On G-Day you will have:
- First Period -> %s
- Second Period -> %s
- Community Period -> %s
- Third Period -> %s
- Fourth Period -> %s
- Lunch -> %s
- Fifth Period -> %s
- Sixth Period -> %s
- '''%(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8)
- def h_day(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8): # defines function for H Day
- print (50 * '=')
- print '''On H-Day you will have:
- First Period -> %s
- Second Period -> %s
- Community Period -> %s
- Third Period -> %s
- Fourth Period -> %s
- Lunch -> %s
- Fifth Period -> %s
- Sixth Period -> %s
- '''%(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8)
- def answers(): # defines a function that asks user if they need anyting from program
- print "=" * 80
- print "Anything else? (Yes/No)",
- answer=raw_input()
- if answer=="Yes":
- print "Okay restarting..."
- questions()
- elif answer=="yes":
- print "Okay restarting..."
- questions()
- elif answer=="No":
- desktop_screen()
- elif answer=="no":
- desktop_screen()
- elif answer == "ctrl alt delete":
- options()
- else:
- print "Try again..."
- answers()
- def questions(): # defines the function that asks the user what day it is
- print "=" * 80
- print "Hello!Choose what letter day is it? Ex: \'A\',\'B\'. "
- print "(Or type \'0\' to go back)"
- question=raw_input()
- if question=="A":
- a_day("Chemistry in MSC318","The New Testament in H301","Homeroom in MSC318","Geometry Honors in H305","Video Production in MSC016","Follow Junior/Senior Lunch","English in E403","Adanced Spanish Honors in E302")
- answers()
- elif question=="a":
- a_day("Chemistry in MSC318","The New Testament in H301","Homeroom in MSC318","Geometry Honors in H305","Video Production in MSC016","Follow Junior/Senior Lunch","English in E403","Adanced Spanish Honors in E302")
- answers()
- elif question=="B":
- b_day("Chemistry in MSC318","Chemistry in MSC318","Academic Support","The New Testament in H301","CS: Programming in M208","Follow Junior/Senior Lunch","Christian Service Sophmore Seminar in H003","English in E403")
- answers()
- elif question=="b":
- b_day("Chemistry in MSC318","Chemistry in MSC318","Academic Support","The New Testament in H301","CS: Programming in M208","Follow Junior/Senior Lunch","Christian Service Sophmore Seminar in H003","English in E403")
- answers()
- elif question=="C":
- c_day("Adanced Spanish Honors in E302","Sophmore Group Guidance in H306","Activites","Chemistry in MSC318","Geometry Honors in H305","Follow Freshmen/Sophs Lunch","CS: Programming in M208","Free Period")
- answers()
- elif question=="c":
- c_day("Adanced Spanish Honors in E302","Sophmore Group Guidance in H306","Activites","Chemistry in MSC318","Geometry Honors in H305","Follow Freshmen/Sophs Lunch","CS: Programming in M208","Free Period")
- answers()
- elif question=="D":
- d_day("English in E403","Adanced Spanish Honors in E302","Academic Support","Free Period","The New Testament in H301","Follow Freshmen/Sophs Lunch","Geometry Honors in H305","CS: Programming in M208")
- answers()
- elif question=="d":
- d_day("English in E403","Adanced Spanish Honors in E302","Academic Support","Free Period","The New Testament in H301","Follow Freshmen/Sophs Lunch","Geometry Honors in H305","CS: Programming in M208")
- answers()
- elif question=="E":
- e_day("Video Production in MSC016","English in E403","Activites","Adanced Spanish Honors in E302","Chemistry in MSC318","Follow Freshmen/Sophs Lunch","The New Testament in H301","Geometry Honors in H305")
- answers()
- elif question=="e":
- e_day("Video Production in MSC016","English in E403","Activites","Adanced Spanish Honors in E302","Chemistry in MSC318","Follow Freshmen/Sophs Lunch","The New Testament in H301","Geometry Honors in H305")
- answers()
- elif question=="F":
- f_day("CS: Programming in M208","Free Period","Homeroom in MSC318/Academic Support","English in E403","Free Period","Follow Freshmen/Sophs Lunch","Chemistry in MSC318","The New Testament in H301")
- answers()
- elif question=="f":
- f_day("CS: Programming in M208","Free Period","Homeroom in MSC318/Academic Support","English in E403","Free Period","Follow Freshmen/Sophs Lunch","Chemistry in MSC318","The New Testament in H301")
- answers()
- elif question=="G":
- g_day("Geometry Honors in H305"," CS: Programming in M208","Assemlies","Video Production in MSC016"," Adanced Spanish Honors in E302","Follow Freshmen/Sophs Lunch","Free Period","Chemistry in MSC318")
- answers()
- elif question=="g":
- g_day("Geometry Honors in H305"," CS: Programming in M208","Assemlies","Video Production in MSC016"," Adanced Spanish Honors in E302","Follow Freshmen/Sophs Lunch","Free Period","Chemistry in MSC318")
- answers()
- elif question=="H":
- h_day("The New Testament in H301","Geometry Honors in H305","Academic Support","CS: Programming in M208"," English in E403","Follow Freshmen/Sophs Lunch","Adanced Spanish Honors in E302","Free Period")
- answers()
- elif question=="h":
- h_day("The New Testament in H301","Geometry Honors in H305","Academic Support","CS: Programming in M208"," English in E403","Follow Freshmen/Sophs Lunch","Adanced Spanish Honors in E302","Free Period")
- answers()
- elif question=="0":
- desktop_screen()
- elif question == "ctrl alt delete":
- options()
- else:
- print "Try again..."
- print (50*'=')
- questions()
- questions()
- print ''
- def desktop_screen(): #This is the function that runs the desktop
- print "=" * 80
- print "Choose corresponding number:"
- print "1. Find My Element"
- print "2. SheduleMe"
- print "3. Start Button"
- choice=raw_input()
- if choice=="1":
- element()
- elif choice=="2":
- sheduleme()
- elif choice=="3":
- options()
- elif element == "ctrl alt delete":
- options()
- else:
- print "Try again."
- desktop_screen()
- def password(): #This is the function to run the progarm for the password
- print "Password:",
- answer=raw_input()
- if answer=="123":
- desktop_screen()
- else:
- password()
- def sign_in(): # defines a function that will be used to imput a username
- user=raw_input("Username: ")
- if user=="Max":
- password()
- elif user=="marvin":
- password()
- else:
- print "Try again."
- sign_in()
- def startup(): # defines a function that will be used to imput a username
- print "(Press start button(type \"on\") to turn on computer)"
- start=raw_input()
- if start=="on":
- bootup()
- sign_in()
- elif start=="On":
- bootup()
- sign_in()
- else:
- startup()
- startup()
Add Comment
Please, Sign In to add comment