Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import sys
- import time
- admins = {'BOF007':'12345',}
- print('Welcome to the Automated Personal Error Detection System, or APEDS for short')
- print('')
- name = input("What is the Name of the Person I'll be assisting today?: ")
- print()
- #runs a [=== ] loading bar
- def progressbar(it, prefix = "", size = 60):
- count = len(it)
- def _show(_i):
- x = int(size*_i/count)
- sys.stdout.write(" %s[%s%s] %i/%i\r \n" % (prefix, "="*x, " "*(size-x), _i, count))
- sys.stdout.flush()
- _show(0)
- for i, item in enumerate(it):
- yield item
- _show(i+1)
- print()
- time.sleep(1)
- for i in progressbar(range(5),name+ "'s APEDS BOOTING", 20):
- time.sleep(0.2) # long computation
- print("Booting Complete Welcome", name)
- print()
- #-------------
- #main menu interface
- def mainmenu():
- print("""
- What seams to be the problem today?
- """
- #[-1] - Admin interface
- """
- [1] - Internet
- [2] - TV
- [3] - Landline (HomePhone)
- [4] - Sound Systems
- """)
- action = input("Please Select a Number: ")
- # admin menu otion
- if action == '-1':
- loginusr = input('Username: ')
- loginpw = input('Password: ')
- #admin menu
- def adminmenu():
- print('Easteregg Unlocked!')
- print(
- """
- Welcome to the Admin Menu
- """
- """
- [1] -
- [2] -
- [3] -
- [4] -
- """)
- action = input("Please Select a Number: ")
- if action == '1':
- print('1')
- elif action == '2':
- print('2')
- elif action == '3':
- print('3')
- elif action == '4':
- print('4')
- else:
- print('\nNo valid choice has been selected please try again')
- time.sleep(3.5)
- adminmenu()
- #end of admin menu
- #admin menu sign in
- if loginusr in admins:
- if admins[loginusr] == loginpw:
- print()
- print()
- print('Welcome, ',loginusr)
- while True:
- adminmenu()
- else:
- print('Invalid Password')
- time.sleep(1.5)
- else:
- print('Invalid Username')
- time.sleep(1.5)
- #end of admin menu login
- # [ 1 ] option ( internet )
- elif action == '1':
- def submenu1():
- print(
- """
- What Problems are u having with the internet?
- """
- """
- [1] - Internet is Slow / Not Working
- [2] - There's no Wi-Fi / Can't connect to Wi-Fi44
- [3] -
- [4] - Forgot my Wifi Password !
- """)
- action = input("Please Select a Number: ")
- if action == '1':
- print('1')
- elif action == '2':
- print('2')
- elif action == '3':
- print('3')
- elif action == '4':
- print('4')
- else:
- print('\nNo valid choice has been selected please try again')
- time.sleep(3.5)
- adminmenu()
- elif action == '2':
- print('2')
- elif action == '3':
- print('3')
- elif action == '4':
- print('4')
- else:
- print('\nNo valid choice has been selected please try again')
- time.sleep(3.5)
- mainmenu()
- while True:
- mainmenu()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement