Skip to content

Commit

Permalink
wozza
Browse files Browse the repository at this point in the history
  • Loading branch information
watchout254 authored Oct 3, 2023
1 parent 93df9bf commit 6e954ad
Show file tree
Hide file tree
Showing 2 changed files with 99 additions and 0 deletions.
40 changes: 40 additions & 0 deletions ingine.py
Original file line number Diff line number Diff line change
@@ -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()




59 changes: 59 additions & 0 deletions intro.py
Original file line number Diff line number Diff line change
@@ -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()










0 comments on commit 6e954ad

Please sign in to comment.