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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 19:30, davisparker5269
Write a function processpeople() that takes the name of a file as a parameter. each line of the file corresponds to information about a person. in particular a line contains either a name (in the form lastname, firstname with no spaces in it) or a name (lastname, firstname) and a year. the function will process the file, creating a person object for each line in the file. the function will print information about each line as it processes it, as well as appending the new person object into a list. make sure to use person methods to display information rather than recreating the work you did for the first problem. once the entire file has been processed, the function returns the list of person objects created from the file. if the file is empty, the function should return an empty list. if the input file cannot be opened, the function should print a message to that effect and then return an empty list. the following shows what would be displayed for two example files which have been provided in the link. the file none. txt does not exist. note that your function must work on an arbitrary file that consists of valid lines. you cannot assume anything about the file except that it contains lines that have the format described above.
Answers: 2
image
Computers and Technology, 22.06.2019 08:30, ruddymorales1123
Linda subscribes to a cloud service. the service provider hosts the cloud infrastructure and delivers computing resources over the internet. what cloud model is linda using
Answers: 1
image
Computers and Technology, 22.06.2019 09:00, sabahfayaskhan
Which best describes the condition under which the unicode output is the same as plain text?
Answers: 3
image
Computers and Technology, 22.06.2019 16:20, mandy9386
Consider the following statements, then select one of the answers below: the signal() function shown below registers "sig_handler()" as the signal handler function for the sigkill signal, without the complexity of using when the sigkill signal is sent to a process running this code, by a user typing "kill -kill ", where the correct process id is used for to target the process, sig_handler() will be executed.
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 in other subjects:

Konu
Mathematics, 01.09.2019 09:00