0% found this document useful (0 votes)
60 views3 pages

System

The document outlines a simple login system that prompts users for a username and password, with a hardcoded admin account. Upon successful login, users can enter commands to manage materials, including viewing, adding, editing, or deleting items. The program includes a basic command interface for interacting with an inventory of materials.

Uploaded by

Blessa Mae
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
60 views3 pages

System

The document outlines a simple login system that prompts users for a username and password, with a hardcoded admin account. Upon successful login, users can enter commands to manage materials, including viewing, adding, editing, or deleting items. The program includes a basic command interface for interacting with an inventory of materials.

Uploaded by

Blessa Mae
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

productname = {}

status = ""

print ("====LOGIN====")

def askUser():

username = input("Enter your username: ")

password = input("Enter your password: ")

checkPass(username, password)

def checkPass(use, pwd):

if use == "admin" and pwd == "admin" :

login(use)

else:

print ("Your username and/or password was incorrect")

askUser()

def login(use):

print ("Welcome " + use)

print ("You have successfully logged in!")

askCom()

def askCom():

print ("Enter your Command:")

command = input("Press 'S' to show all: ")

if command == "s" :
username = ""

password = ""

print ("[1] Receive Materials")

print ("[2] Release Materials")

print ("[3] View Materials")

print ("=======================================================")

command == "m"

print ("Enter your Command:")

command = input("Press 'm' to show all: ")

print ("====LIST OF MATERIALS====")

print ("ID | ITEM NAME | INVENTORY COUNT ")

print ("[0] nails 100")

print ("----------")

print ("1[ADD] 2[EDIT] 3[DELETE 4[EXIT]")

Materials = input ("Materials Command: ")

Item = input ("Item: ")

Quality = input ("Quality: ")

print ("1[ADD] 2[EDIT] 3[DELETE 4[EXIT]")

Materials = input ("Materials Command: ")

Item = input ("Item: ")

Quality = input ("Quality: ")

Exiting = input ("Exiting")

command == "m"

print ("Enter your Command:")


command = input("Press 'm' to show all: ")

print ("====LIST OF MATERIALS====")

print ("ID | ITEM NAME | INVENTORY COUNT ")

print ("[0] nails 100")

print ("[1] angle bar 4")

print ("[2] wires 5")

print ("----------")

print ("1[ADD] 2[EDIT] 3[DELETE 4[EXIT]")

Materials = input ("Materials Command: ")

askUser()

You might also like