Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please i need help how can i store my menu service in array of struct or anything but not in one dim like in the

please i need help how can i store my menu service in array of struct or anything but not in one dim like in the picture, the program is a cafe i want to make a menu and add customer and print and update.... the customer should be in file and the user can edit it ! thank you and take your time, in c++
image text in transcribed
image text in transcribed
Hinciude [30]; double SPrice; double HPrice; double CPrice; \}; struct customerBil1 string name; string phone_Number; menu order; 3; int menu() int choice; coutss" P1 ease Choose a task number:" cinsschoice; return choice; int main() ( customerBi11 bi11: char ColdDrink[5][20]=\{ "Carame1 Latte"I "Spanish Latte", "Mocha", "Americano", "Latte" }; double CPrice [5]={15,16,14,13,14}; char HotDrink [6][20]={ "Hot Chocolate", "Flat white", "Americano", "Espresso", "Karak", "Tea"); double HPrice [6]={14,15,13,12,7,4}; char Sweet [4][30]={ "Strawberriers Cheese Cake", "Vanilla Cake", "Ice Crean", "Cookies"); double sprice 4}={13,1e,8,11}; Assignment Specification: your program should include the following: - Functions (should include both: pass by value and pass by reference variables, void function and function returning any value) - Array of structs (at least one single array of struct) - Selection and repetition structures as needed - Add your team members names as a comment in the first line of your program. - You should print a menu to the user and offer him/her different services. - Main Services: adding new item. search for specific item. update existing record. delete. Sort. Display. At the start, your program should populate the array(s) from a file and allow the user to edit it. At the end overwrite the same file with the latest contents of the array(s). Provide another statistical report as separate text file e.g. the number of records, with date, time of last update. - The program should continue running until the user chooses to exit it. - Ensure to avoid any errors of any type (Run-time error, logical error, and syntax error). - You can add extra functions if wish to

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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