Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #CODE IS BY DEAN LINDSKOG ONLY
- def system2():
- print "--TASK MANAGER--"
- print "SYSTEM PROCESSES: "
- print " ALL PROCESSES HAVE ALREADY BEEN ENDED"
- def computer(): # function that brings the user to the main menu after complete a previous program
- menu()
- choice = raw_input('Enter a number to begin:')
- choice = int(choice)
- if choice == 1 :
- print "Internet Explorer is not able to load correctly- Please Check if you are properly connected to the internet and then restart your computer."
- computer()
- elif choice == 2 :
- system2()
- computer()
- elif choice == 3 :
- Adventuregame()
- computer()
- elif choice == 4 :
- restart()
- computer()
- elif choice == 5 :
- exit()
- elif choice == 6 :
- logoff()
- computer()
- elif choice == 7 :
- app()
- computer()
- elif choice == 8 :
- ng()
- computer()
- else:
- print "Invalid Number - Please try again."
- def ng(): # A cup game I created that lets the user guess which number is under the cup
- import random
- print "Welcome to the guessing game! Guess a number that is under the cup!"
- raw_input("Say what number you believe it to be")
- cups = ["Cup 1", "Cup 2","Cup 3"]
- import random
- print random.choice(["Cup 1", "Cup 2","Cup 3"]),
- print "is the correct cup"
- def app():
- print "Monitor: CONNECTED | Keyboard : CONNECTED | Mouse: CONNECTED"
- def logoff():
- print "Welcome, please type in your correct username or password in order to gain access to the desktop"
- name = raw_input(" Type in your username:")
- password = raw_input(" Type in your password:")
- print ('Welcome %s.') % name
- print (30 * "-")
- computer()
- def restart():
- while True:
- while True:
- answer = raw_input('Restart computer? (y/n): ')
- if answer in ('y', 'n'):
- break
- print 'Invalid input.'
- if answer == 'n':
- computer()
- else:
- print '- -R E S T A R T I N G- -'
- break
- def system():
- print "--TASK MANAGER--"
- print "SYSTEM PROCESSES: "
- CAD = raw_input("If you would like to end all processes please type CAD")
- if CAD == 'CAD':
- print 'ALL PROCESSES HAVE BEEN ENDED'
- else:
- print "Invalid Input, please try again."
- def Adventuregame(): # A program created by me and damion for another project
- print (30 * '-')
- print (" M A I N - M E N U")
- print (30 * '-')
- print ("Welcome to: \n Zombie Survival")
- sav = "for the tough, strong, and the brave"
- zombie = "the dead"
- print "This is a game %s but how can they reach the top while fighting against %s." % (sav, zombie),
- print "All alone in a place where no one can hear you scream but the zombies seeking to eat you alive!!"
- choice = raw_input("Press 1 to start game!")
- choice = int(choice)
- if choice == 1 :
- print ("Starting Game!")
- print ("You begin the game inside of an abandonded farm, what do you do?")
- choice = int(choice)
- print "1. You see a closed door and you decide to approach it"
- print "2. You see an open window and want to look out for an exit"
- print "3. You want to look around the room for a weapon and see what you can find."
- print "4. You Decide you want to look around for a phone and call for help."
- choice = raw_input('Enter your choice [1-4] :')
- choice = int(choice)
- if choice == 1 :
- print " You go to the door and try and open it and find that it is open, a zombie then runs through the door and eats you. \n GAME OVER."
- exit
- elif choice == 2 :
- print " You go over to the window and open it, just as you do a zombie comes from behind you and knocks you out the window to your death. \n GAME OVER"
- exit
- elif choice == 3 :
- print " You find a magnum revolver on the top of a bookshelf,\tjust then a zombie comes and you shoot him just in the nick of time and kill him, you then decide to leave the house in victory \n YOU HAVE WON! CONGRATULATIONS!!."
- elif choice == 4:
- print "You go to the nightstand to look for a phone, just then a zombie underneath the bed grabs your foot and kills you. \n GAME OVER"
- exit
- else:
- print "Invalid Answer"
- def menu(): # main menu, once choosin a program and finishing it you are brought back here
- print (30 * '-')
- print (" M A I N - M E N U")
- print (30 * '-')
- print ("1. Launch Internet Explorer")
- print ("2. System Processes")
- print ("3. Adventure Game")
- print ("4. Restart")
- print ("5. Shutdown")
- print ("6. Logoff")
- print ("7. Appliances")
- print ("8. Cup Game")
- print (30 * '-')
- print (30 * "-")
- print "-- B O O T I N G --"
- print " C H R O M E: OS"
- print "- - L O A D I N G- -"
- print "Monitor: CONNECTED | Keyboard : CONNECTED | Mouse: NOT CONNECTED"
- choice = raw_input("Please Connect the mouse into the USB port, once you have done that press 1 and then restart.")
- choice = int(choice)
- if choice == 1 :
- print " - - RESTARTING --"
- else:
- print "Invalid Input, Please try again"
- print "Welcome, please type in your correct username or password in order to gain access to the desktop"
- name = raw_input(" Type in your username:")
- password = raw_input(" Type in your password:")
- print ('Welcome %s.') % name
- print (30 * "-")
- menu()
- choice = raw_input('Enter a number to begin:')
- choice = int(choice)
- if choice == 1 :
- print "Internet Explorer is not able to load correctly- Please Check if you are properly connected to the internet and then restart your computer."
- elif choice == 2 :
- system()
- computer()
- elif choice == 3 :
- Adventuregame()
- computer()
- elif choice == 4 :
- restart()
- computer()
- elif choice == 5 :
- exit()
- computer()
- elif choice == 6 :
- logoff()
- elif choice == 7 :
- app()
- computer()
- elif choice == 8 :
- ng()
- computer()
- else:
- print "Invalid Number - Please try again."
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement