-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
93df9bf
commit 6e954ad
Showing
2 changed files
with
99 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() | ||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|