diff --git a/ingine.py b/ingine.py new file mode 100644 index 0000000..dc46d33 --- /dev/null +++ b/ingine.py @@ -0,0 +1,40 @@ +import datetime +import sys + +print("\t\t\t\t\tWelcome to Jawabu Schools\n") +print("Pick your choice\n") +print(f"1.Login(Student)\n" + f"2.Login(Staff)\n" + f"3.Borrow Book\n" + f"4.Return Book\n" + f"5. Exit\n") + +ans = int(input("You have picked: ")) + +match ans: + case 1: + username = input("Your name: ") + password = input("Password: ") + + + case 2: + staffUser = input("Username: ") + staffPass = input("Password: ") + + case 3: + bookTitle = input("Title of the book: ") + bookAuthor = input("Book Author: ") + bookISBN = input("Book ISBN: ") + bookPublication = input("Book Publication year: ") + print("Successfully borrowed!!!") + + case 4: + date = datetime.datetime + copies = input("How many copy/ies: ") + + case 5: + sys.exit() + + + + diff --git a/intro.py b/intro.py new file mode 100644 index 0000000..8a4114f --- /dev/null +++ b/intro.py @@ -0,0 +1,59 @@ +import sys +from datetime import datetime +from os import remove + +print("\t\t\t\t\t\tWelcome to Mukenya car app!🚦") +print("\t\tChoose your choice: ") +print(f"1. Vehicle entry\n" + f"2. Close program\n") + +selection = int(input("Hi, kindly enter your choice: ")) + +if selection == 1: + carName = input("Your car name: ") + carModel = input("Car model: ") + carPlate = input("Car number plate: ") + today = datetime.today() + print(f"{carName},{carModel},{carPlate} has Entered {today}") + + parkIt1 = ['🫣','🫣','🫣','🫣','🫣'] + parkIt2 = ['🫣','🫣','🫣','🫣','🫣'] + parkIt3 = ['🫣','🫣','🫣','🫣','🫣'] + parkIt4 = ['🫣','🫣','🫣','🫣','🫣'] + parkIt5 = ['🫣','🫣','🫣','🫣','🫣'] + + zote = [parkIt1,parkIt2,parkIt3,parkIt4,parkIt5] + print(f"{parkIt1}\n{parkIt2}\n{parkIt3}\n{parkIt4}\n{parkIt5}") + + car = input("Park your vehicleπŸ…ΏοΈ(2 digits to rep the row and column): \n") + + row = int(car[0]) + col = int(car[1]) + select_row = zote[row-1] + select_row[col-1] = '🚘' + print("Car parked successfully!!!!βœ…βœ…βœ…βœ…\n") + print(f"Want to see where you have parked?⁉️ \n" + f"1. Yesβœ”οΈ\n" + f"2. No❌") + + parked = int(input("Choice?: ")) + if parked == 1: + print(f"{parkIt1}\n{parkIt2}\n{parkIt3}\n{parkIt4}\n{parkIt5}") + print("🀝🀝🀝🀝🀝🀝🀝") + print("Screenshot to validate the date you have given us for reference\n Thank you.") + else: + sys.exit() + +else: + print("Shutting down the program...Bye!") + sys.exit() + + + + + + + + + +