Advertisement
Guest User

Project 1

a guest
Apr 7th, 2016
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 5.52 KB | None | 0 0
  1.  
  2. #Boot up sequence by Michael Desousa
  3. choice1= "Yes"
  4. choice2= "No"
  5. print (30*  "_")
  6. print "|             |              |"
  7. print "|             |              |"
  8. print "|             |              |"
  9. print "|             |              |"
  10. print "|_____________|______________|   WINDOWS 10"
  11. print "|             |              |"
  12. print "|             |              |"
  13. print "|             |              |"
  14. print "|             |              |"
  15. print (30*  "_")
  16. print "System Check Iniated:\n"
  17. def systemcheck():
  18.   answer=raw_input('Can you see this? Input Answer: ')
  19.   if answer == 'no':
  20.     print '-->Monitor and Keyboard connected, Continuing System Check.'
  21.     systemcheck()
  22.   else:
  23.     print "-->Monitor and Keyboard connected, Continuing System Check."
  24. systemcheck()
  25.  
  26. def systemcheck1():
  27.   answer=raw_input('Can you move your mouse? Input Answer:')
  28.   if answer == 'no':
  29.     print 'Please unconnect mouse and plug back in.'
  30.   elif answer == 'yes':
  31.     print 'System Check Good.'
  32. systemcheck1()
  33. import time
  34. print "                  --LOADING--"
  35. print "Welcome, please type in your correct username or password in order to gain access to the desktop"
  36. name = raw_input("Type in your username:")
  37. password = raw_input("Type in your password:")
  38. print ('Welcome %s.\n') % name
  39. time.sleep(1)
  40. print ("-Loading-")
  41. time.sleep(1)
  42.  
  43. #Andres and Damien
  44. def system():        #System = Task Manager
  45.   import time
  46.   print 'Task Manager'
  47.   print '-'*30
  48.   print '\n1. Check programs running\n2. End all programs\n'
  49.   TM = int(raw_input("If you would like to end all processes please type an option from above here :\n"))
  50.   if TM == 1:
  51.     print 'There are %s programs running' % 2
  52.   elif TM == 2:
  53.     print 'Ended all programs\n',
  54.     time.sleep(1)
  55.     print '0 programs running\n'
  56.   else:
  57.     print 'Invalid Number. Run Again!\n\n'
  58.  
  59. #Damien Abrams
  60.  
  61. def Adventuregame():
  62.    print (30 * '-')
  63.    print (" M A I N - M E N U")
  64.    print (30 * '-')
  65.    print ("Welcome to: \n Zombie Survival")
  66.    sav = "for the tough, strong, and the brave"
  67.    zombie = "the dead"
  68.    print "This is a game %s but how can they reach the top while fighting against %s." % (sav, zombie),
  69.    print "All alone in a place where no one can hear you scream but the zombies seeking to eat you alive!!"
  70.    choice = raw_input("Press 1 to start game!")
  71.    choice = int(choice)
  72.    if choice == 1 :
  73.      print ("Starting Game!")
  74.    print ("You begin the game inside of an abandonded farm, what do you do?")
  75.    choice = int(choice)
  76.    print "1. You see a closed door and you decide to approach it"
  77.    print "2. You see an open window and want to look out for an exit"
  78.    print "3. You want to look around the room for a weapon and see what you can find."
  79.    print "4. You Decide you want to look around for a phone and call for help."
  80.    choice = raw_input('Enter your choice [1-4] :')
  81.    choice = int(choice)
  82.    if choice == 1 :
  83.      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."
  84.      exit
  85.    elif choice == 2 :
  86.      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"
  87.      exit
  88.    elif choice == 3 :
  89.       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!!."
  90.    elif choice == 4:
  91.      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"
  92.      exit
  93.    else:
  94.      print "Invalid Answer"
  95.  
  96.  
  97. #Andres Orbe
  98. import time
  99. def Logoff():
  100.   print '-'*40
  101.   print 'LOGOFF PROGRAM'
  102.   print '-'*40
  103.   Logchoice = float(raw_input('\n1.Continue Logoff\n2.Cancel Logoff\n'))  # float allows raw_input to register an integer
  104.   if Logchoice == 1:    
  105.     print 'Logging off',
  106.     time.sleep(1)   #Delays next request
  107.     print '.',
  108.     time.sleep(1)
  109.     print '.',
  110.     time.sleep(1)
  111.     print '.'
  112.   elif Logchoice == 2:
  113.     print 'Logoff cancelled',
  114.     time.sleep(.5)
  115.     print '.',
  116.     time.sleep(.5)
  117.     print '.',
  118.     time.sleep(.5)
  119.     print '.'
  120.   else:
  121.     print 'Invalid number. Run program again!'
  122.   print '\n\n'
  123.  
  124.  
  125. def RebootShutdown():
  126.   print '-'*40
  127.   print 'Reboot / Shut down'
  128.   print '-'*40
  129.   rechoice = raw_input('\n1.Reboot\n2.Shut Down\n')
  130.   rechoice = int(rechoice)
  131.   import time
  132.   if rechoice == 1:
  133.     time.sleep(2)
  134.     print 'Starting reboot',  # the comma keeps it in the periods in the same line.
  135.     time.sleep(1)
  136.     print '.',
  137.     time.sleep(1)
  138.     print '.',
  139.     time.sleep(1)
  140.     print '.'
  141.   elif rechoice == 2:
  142.     time.sleep(2)
  143.     print 'Shuting down',
  144.     time.sleep(1)
  145.     print '.',
  146.     time.sleep(1)
  147.     print '.',
  148.     time.sleep(1)
  149.     print '.'
  150.   else:    
  151.     print ("Invalid number. Try again...")
  152.   print '\n\n'
  153.  
  154. def menu():
  155.   print (30 * '-')
  156.   print (" M A I N - M E N U")
  157.   print (30 * '-')
  158.   print ("1. Launch Microsoft Edge")
  159.   print ("2. Task Manager")
  160.   print ("3. Adventure Game")
  161.   print ("4. Logoff")
  162.   print ("5. Shutdown / Reboot")
  163.   print (30 * '-')
  164.   menuop = int(raw_input('\n'))
  165.   if menuop == 1:
  166.     print 'Go to:','%s' % 'www.bing.com'
  167.   elif menuop == 2:
  168.     print system()
  169.   elif menuop == 3:
  170.     print Adventuregame()
  171.   elif menuop == 4:
  172.     print Logoff()
  173.   elif menuop == 5:
  174.     print RebootShutdown()
  175.   else:
  176.     print 'Error'
  177. menu()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement