Beispiel #1
0
from rent import CarRent, BikeRent, Customer

bike = BikeRent(100)
car = CarRent(10)
customer = Customer()

main_menu = True

while True:

    if main_menu:
        print("""
              ***** Vehicle Rental Shop*****
              A. Bike Menu
              B. Car Menu
              Q. Exit
              """)
        main_menu = False

        choice = input("Enter choice: ")

    if choice == "A" or choice == "a":

        print("""
              ****** BIKE MENU*****
              1. Display available bikes
              2. Request a bike on hourly basis $ 5
              3. Request a bike on daily basis $ 84
              4. Return a bike
              5. Main Menu
              6. Exit
Beispiel #2
0
# -*- coding: utf-8 -*-
"""
Created on Tue Sep  8 22:31:53 2020

@author: orhunyildiz
"""
from rent import BikeRent, CarRent, Customer

bike = BikeRent(100)
car = CarRent(50)
customer = Customer()

mainMenu = True

while True:
    if mainMenu:
        print("""
              ***** Vehicle Rental Shop *****
              A. Bike Menu
              B. Car Menu
              Q. Exit
              """)

        mainMenu = False
        choice = input("Make Your Choice :) : ")

    if choice == "A" or choice == "a":
        print("""
              ***** Bike Menu *****
              1. Display Available Bikes
              2. Request a Bike on Hourly Basis (5$)