'''
9-4. Number Served: Start with your program from Exercise 9-1 (page 162).
Add an attribute called number_served with a default value of 0. Create an
instance called restaurant from this class. Print the number of customers the
restaurant has served, and then change this value and print it again.

Add a method called set_number_served() that lets you set the number
of customers that have been served. Call this method with a new number and
print the value again.

Add a method called increment_number_served() that lets you increment
the number of customers who’ve been served. Call this method with any num-
ber you like that could represent how many customers were served in, say, a
day of business.
'''


class Restaurant:
    def __init__(self, name, cuisine_type):
        self.name = name
        self.cuisine_type = cuisine_type
        self.number_served = 0

    def describe_restaurant(self):
        print(f"The restaurant's name is {self.name}")
        print(f"It's known for it's {self.cuisine_type} food!")

    def open_restaurant(self):
        print(f"\nWe're now open for business! Thank you for waiting!")

    def set_number_served(self, number_served):
        self.number_served = number_served

    def increment_number_served(self, new_customers):
        self.number_served += new_customers


restaurant = Restaurant("Porto's Bakery", "Cuban")

print(restaurant.number_served)
restaurant.number_served = 50
print(restaurant.number_served)


restaurant.set_number_served(100)
restaurant.increment_number_served(50)
print(restaurant.number_served)
