Question: 4 G ( a ) CS 2 3 1 PROJECT - 4 5 2 . pdf CS 2 3 1 - Data structures TEAM PROJECT

4G
(a)
CS231 PROJECT -452.pdf
CS 231- Data structures
TEAM PROJECT
Implement a C++ program for a RESTAURANT that has multiple branches, and each branch has menus of food items, their stock and a list of customers. A branch may have for example a breakfast menu and lunch menu with different food items, and the stock (available quantity) of each food item in the branch. Also, the branch will have a list of regular customers and their contact information to contact them for offers and new food items.
\table[[Class Names,Data and Member Functions],[1. Food,\table[[Data Members:],[ID, Name, Calories, Price],[Member Functions:],[getID, getName, getCalories, getPrice],[setID, setName, setCalories, setPrice]]],[2. Stock,\table[[Data Members:],[ID, Food, Stock],[Member Functions:],[getID, getFood, getStock],[setID, setFood, setStock]]],[3. Customer,\table[[Data Members:],[ID, Name, Phone],[Member Functions:],[getID, getName, getPhone],[setID, setName, setPhoe]]],[4. Menu,\table[[Data Members:],[ID, Name, foodList],[Member Functions:],[getID, getName, getFoodList],[setID, setName]]],[5. Branch,\table[[Data Members:],[ID, Address, menuList, stockList, customerList],[Member Functions:],[getID, getAddress, getMenuList, getStockList, getCustomerList],[setID, setAddress]]]]
After developing these classes, the following three parts of the project must be implemented:
Part1:
Create the following Linked Lists:
foodList must store Food objects.
stockList that stores Stock objects.
customerList to store Customer objects.
menuList to store Menu objects.
RESTAURANT has branchList to store a Linked list of Branch objects with their menuList, stockList and customerList.
The main function to test the above classes and data structures must display the following menu to the user:
Main Menu:
Branches
Food Items
Menus
Customers
 4G (a) CS231 PROJECT -452.pdf CS 231- Data structures TEAM PROJECT

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!