Skip to content

Instantly share code, notes, and snippets.

View hirozhu's full-sized avatar

Xubo Zhu hirozhu

View GitHub Profile
@hirozhu
hirozhu / ITP115_project_Zhu_Xubo_Diner.py
Created March 15, 2019 08:30
This python program simulates the operation of random guests dining at a restaurant during a period of time, the process including seating, dining, paying, and leaving, which represents the lifecycle of a gust dining at a restaurant.
from MenuItem import MenuItem
class Diner(object):
STATUSES = ["seated", "ordering", "eating", "paying", "leaving"]
# Set the diner’s name attribute to the input value.
# Set the diner’s order attribute to an empty list.
# Set the status attribute to 0.
def __init__(self, name):
@hirozhu
hirozhu / ITP115_project_Zhu_Xubo_Diner.py
Created March 15, 2019 08:00
Python Restaurant Simulator Project
from MenuItem import MenuItem
class Diner(object):
STATUSES = ["seated", "ordering", "eating", "paying", "leaving"]
# Set the diner’s name attribute to the input value.
# Set the diner’s order attribute to an empty list.
# Set the status attribute to 0.
def __init__(self, name):