Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Object Databases The Essentials

Authors: Mary E. S. Loomis

1st Edition

020156341X, 978-0201563412

More Books

Students also viewed these Databases questions