Answered step by step
Verified Expert Solution
Question
1 Approved Answer
4 G ( a ) CS 2 3 1 PROJECT - 4 5 2 . pdf CS 2 3 1 - Data structures TEAM PROJECT
G
a
CS PROJECT pdf
CS 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.
tableClass Names,Data and Member Functions Food,tableData Members:ID Name, Calories, PriceMember Functions:getID getName, getCalories, getPricesetID setName, setCalories, setPrice Stock,tableData Members:ID Food, StockMember Functions:getID getFood, getStocksetID setFood, setStock Customer,tableData Members:ID Name, PhoneMember Functions:getID getName, getPhonesetID setName, setPhoe Menu,tableData Members:ID Name, foodListMember Functions:getID getName, getFoodListsetID setName Branch,tableData Members:ID Address, menuList, stockList, customerListMember Functions:getID getAddress, getMenuList, getStockList, getCustomerListsetID setAddress
After developing these classes, the following three parts of the project must be implemented:
Part:
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
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started