Source Code
Source Code
car1 = Image.open('car1.webp')
car1.thumbnail((500,500))
car2 = Image.open('car2.jpg')
car2.thumbnail((500,500))
car3 = Image.open('car3.jpg')
car3.thumbnail((500,500))
car4 = Image.open('car4.jpg')
car4.thumbnail((500,500))
car5 = Image.open('car5.jpg')
car5.thumbnail((500,500))
gown1 = Image.open('ballgown.webp')
gown1.thumbnail((500,500))
gown2 = Image.open('trumpetgown.jpg')
gown2.thumbnail((500,500))
gown3.thumbnail((500,500))
gown4 = Image.open('Alinegown.jpg')
gown4.thumbnail((500,500))
gown5.thumbnail((500,500))
estab1 = Image.open('estab1.jpg')
estab1.thumbnail((500,500))
estab2 = Image.open('estab2.jpg')
estab2.thumbnail((500,500))
estab3 = Image.open('estab3.jpg')
estab3.thumbnail((500,500))
estab4 = Image.open('estab4.jpg')
estab4.thumbnail((500,500))
estab5 = Image.open('estab5.jpg')
estab5.thumbnail((500,500))
estab6 = Image.open('estab6.webp')
estab6.thumbnail((500,500))
red = Fore.RED
cyan = Fore.CYAN
mage = Fore.MAGENTA
yellow = Fore.LIGHTYELLOW_EX
green = Fore.LIGHTGREEN_EX
blue = Fore.LIGHTBLUE_EX
white = Fore.LIGHTWHITE_EX
while True:
print()
{blue}> Car
{mage}> Gown
{cyan}> Establishment
{red}> Exit
print(" ")
if item == "Car":
while True:
print()
print(" ")
carnum = int(input("Enter the number of the car that you would like
to rent: "))
print(" ")
if carnum == 1:
car1.show()
print("The daily rate for this particular car is ₱1550 per day")
print()
itempr = 1550
yn = str(input(f"Would you like to proceed with processing this
rent?{green}(Yes|{red}No):{blue} "))
elif carnum == 2:
car2.show()
print("The daily rate for this particular car is ₱1530 per day")
print()
itempr = 1530
elif carnum == 3:
car3.show()
print("The daily rate for this particular car is ₱2350 per day")
print()
itempr = 2350
elif carnum == 4:
car4.show()
print("The daily rate for this particular car is ₱1770 per day")
print()
itempr = 1770
elif carnum == 5:
print()
itempr = 2170
else:
continue
if yn == "Yes":
print("Amazing!!")
print()
break
if yn == "No":
print()
if yesno == "No":
print()
break
while True:
print()
3. Mall Stall
4. Restaurant
5. Warehouse
6. Inn
""")
print()
print(" ")
if estnum ==1:
estab1.show()
print(" ")
itempr = 2100
estab2.show()
print(" ")
itempr = 3300
estab3.show()
print(" ")
itempr = 1110
estab4.show()
print(" ")
itempr = 3600
estab5.show()
print(" ")
itempr = 4300
print(" ")
itempr = 500
else:
print(" ")
continue
if yn == "Yes":
print("Amazing!")
print(" ")
break
if yn == "No":
print(" ")
if nnn == "No":
print(" ")
break
while True:
print(f"{mage}What gown would you like to rent")
print()
print("""1. Ballgown
2. Trumpet
3. Column
4. A-Line
5. Mermaid""")
print(" ")
print(" ")
if gownnum == 1:
gown1.show()
print("The daily rate for this particular gown is ₱ 500 per day")
print(" ")
itempr = 500
elif gownnum == 2:
gown2.show()
print("The daily rate for this particular gown is ₱ 600 per day")
print(" ")
itempr = 600
gown3.show()
print("The daily rate for this particular gown is ₱ 700 per day")
print(" ")
itempr = 700
elif gownnum == 4:
gown4.show()
print("The daily rate for this particular gown is ₱ 800 per day")
print(" ")
itempr = 800
elif gownnum == 5:
gown5.show()
print("The daily rate for this particular gown is ₱ 900 per day")
print(" ")
itempr = 900
print(" ")
continue
if yn == "Yes":
print("Amazing!")
print(" ")
break
if yn == "No":
print(" ")
if yesno == "No":
print(" ")
break
yeno = "No"
break
else:
print(" ")
continue
if yn == "No":
continue
while True:
try:
print(" ")
print(" ")
if days <= 0:
raise Exception
except ValueError:
continue
except Exception:
continue
else:
if days >= 7:
else:
break
print(f"{white}You would need to pay ₱{fprice} to succesfully finish this
transaction.")
print(" ")
print(" ")
if yeno == "Yes":
rint(" ")
print(" ")
if yn2 == "Yes":
continue
else:
break
else:
print(" ")
if yepno == "No":
break
else:
print(" ")
continue
if yeno == "Yes":
else: