subject

Define a pointer named pmenu of type menuitemtype, and use pointer pmenu to go through the list of menu. that is, make pmenu point to the first item in the menu list and access the information of the item pointed by pmenu, and then make pmenu point to the next item, and so on. (note: you need to go through the whole list of the menu in function of showmenu() and printcheck() respectively). void getdata(menuitemtype *pmenu) { … for (int i=0; i< 8; i++) { getline(infile, pmenu-> menuitem); or getline(infile, (*pmenu).menuitem); … pmenu++; } … } int main() { menuitemtype menulist[8]; … getdata(menulist); … } rewrite your program to implement the same jobs. the following is the description of problem 2 of lab 8: write a program to a local restaurant automate its breakfast billing system. the program should do the following:
a. show the customer the different breakfast items offered by the restaurant.
b. allow the customer to select more than one item from the menu.
c. calculate and print the bill assume that the restaurant offers the following breakfast items.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 14:00
What are procedures that keep a data base current
Answers: 1
question
Computers and Technology, 22.06.2019 22:40
Least square fit to polynomial write a function leastsquarefit3pol that solves a linear system of equations to find a least squares fit of a third order polynomial to an experimental data set given as two row arrays. the function leastsquarefit3pol must explicitly solve a set of linear equations and cannot use polyfit. there should be no restriction on the size of the problem that can be solved.
Answers: 1
question
Computers and Technology, 23.06.2019 03:30
In vista and windows 7, the appearance and personalization option allows you to change the
Answers: 1
question
Computers and Technology, 23.06.2019 12:00
If you embed a word table into powerpoint, what happens when you make edits to the embedded data? a. edits made to embedded data change the data in the source file; however, edits made to the source file will not be reflected in the embedded data. b. edits made to embedded data will change the data in the source file, and edits made to the source file will be reflected in the embedded data. c. edits made to embedded data don't change the data in the source file, nor will edits made to the source file be reflected in the embedded data. d. edits made to embedded data don't change the data in the source file; however, edits made to the source file will be reflected in the embedded data.
Answers: 1
You know the right answer?
Define a pointer named pmenu of type menuitemtype, and use pointer pmenu to go through the list of m...
Questions
question
Geography, 23.10.2019 19:00
question
Chemistry, 23.10.2019 19:00
Questions on the website: 13722367