Exemplo n.º 1
0
from restaurants import Restaurant

new_restaurant = Restaurant('OCharleys', 'southern')
new_restaurant.describe_restaurant()
new_restaurant.open_restaurant()
new_restaurant.increment_number_served(5)
new_restaurant.describe_restaurant()
Exemplo n.º 2
0
from restaurants import Restaurant, IcecreamStand

rest1 = Restaurant('Chong Li\'s dog chop', 'Chinese')
rest2 = Restaurant('Oves grill', 'Mosbricka')
rest3 = Restaurant('Pacos MexMix', 'Texican')

rest1.describe()
rest1.open_restaurant()
rest1.increment_number_served(10)
print("We have served " + str(rest1.number_served))
rest2.describe()
rest2.open_restaurant()
rest3.describe()
rest3.open_restaurant()

icestand1 = IcecreamStand('Cheech and Chongs icecream van', 'herbal')
icestand1.describe()
icestand1.get_flavours()
icestand1.open_restaurant()
Exemplo n.º 3
0
from restaurants import Restaurant

EggHarbor = Restaurant('Egg Harbor Cafe', 'Breakfast', 0)

EggHarbor.describe_restaruant()

EggHarbor.set_number_served(200)

EggHarbor.increment_number_served(50)

print("This restaurant serves " + str(EggHarbor.number_served) + " patrons.")

#BerryYo = IceCreamStand('BerryYo', 'Yogurt', 0)

#BerryYo.flavor = ['Chocolate', 'Vanilla', 'Caramel', 'Peanut Butter', 'Chocolate Chip Cookie Dough', 'French Vanilla']

#BerryYo.display_flavors_list()