Menu

(Solved) : Information Question Go Link Get Full Parts Question Post Another Post Consist Partsas Wel Q30676796 . . .

for more information about this question, go to the link belowto get the full parts of question, I will post another post consistthe other partsas well.

https://drive.google.com/open?id=1qvYtedCkt40vkVVWDUnsQEHrvEy2g21f

Write a cash register machine in C that does the following a) Display a menu as shown in Figure Q1. Continuously prompt the user to enter the ITEM CODE until 0 is entered to quit. Be sure to check that the ITEM CODE is always between 1 and 2 WELCOME TO RESTAURANT MAC C - Main Menu 11 Add new food items 21 Take order Enter ITEM CODE (0 to Quit) Figure Q1- Main Menu b) If the user enter option 1 in the main menu, continuously prompt the user to enter new food item repeatedly as shown in Figure Q2. This new input will be appended to an existing text file, namely Food.txt and displayed on the screen as shown in Figure Q2. WELCOME TO RESTAURANT MAC C - Add Menu DESCRIPTION BigM Cheeseburger ITEM CODE PRICE (RM) 10.40 9.45 Enter description (0 to Main Menu) FriedChicken Enter price (RM): 10.50 FriedChicken 10.50 Enter ITEM CODE (0 to Main Menu) FrenchFries Enter price (RM): 2.50 FrenchFries 2.50 Enter ITEM CODE (0 to Main Menu) Figure 02- Add Menu c) Sample of the input file, Food.txt, is shown in Figure Q3. If the user enter option 2 in the main menu, menu as shown in Figure Q4 will be displayed 1 BigM 10.40 2 Cheeseburger 9.45 3 FriedChicken 10.50 4 FrenchFries 2.50 Existing data in Food.txt Appended data in Food.txt Figure Q3 - Sample of the input file, Food.txt

Write a cash register machine in C that does the following a) Display a menu as shown in Figure Q1. Continuously prompt the user to enter the ITEM CODE until 0 is entered to quit. Be sure to check that the ITEM CODE is always between 1 and 2 WELCOME TO RESTAURANT MAC C – Main Menu 11 Add new food items 21 Take order Enter ITEM CODE (0 to Quit) Figure Q1- Main Menu b) If the user enter option 1 in the main menu, continuously prompt the user to enter new food item repeatedly as shown in Figure Q2. This new input will be appended to an existing text file, namely Food.txt and displayed on the screen as shown in Figure Q2. WELCOME TO RESTAURANT MAC C – Add Menu DESCRIPTION BigM Cheeseburger ITEM CODE PRICE (RM) 10.40 9.45 Enter description (0 to Main Menu) FriedChicken Enter price (RM): 10.50 FriedChicken 10.50 Enter ITEM CODE (0 to Main Menu) FrenchFries Enter price (RM): 2.50 FrenchFries 2.50 Enter ITEM CODE (0 to Main Menu) Figure 02- Add Menu c) Sample of the input file, Food.txt, is shown in Figure Q3. If the user enter option 2 in the main menu, menu as shown in Figure Q4 will be displayed 1 BigM 10.40 2 Cheeseburger 9.45 3 FriedChicken 10.50 4 FrenchFries 2.50 Existing data in ‘Food.txt Appended data in ‘Food.txt Figure Q3 – Sample of the input file, Food.txt Show transcribed image text

Expert Answer


Answer to Information Question Go Link Get Full Parts Question Post Another Post Consist Partsas Wel Q30676796 . . .

OR