Question: Problem 2 Figure 2: Table that shows option with associated item, price, and response in the terminal after user selects option. You were currently hired

 Problem 2 Figure 2: Table that shows option with associated item,price, and response in the terminal after user selects option. You were

Problem 2 Figure 2: Table that shows option with associated item, price, and response in the terminal after user selects option. You were currently hired to work at Bob's Burgers Restaurant for a temp contract position. Your position is helping the restaurant create receipts for customers who want a copy of their order transaction. Write a user defined function called resterauntReceipt. The function has no parameters and does not return anything. Inside the function, you are going to collect the order of the customers. This includes the number of each item along with the associated price. After the user finlshes ordering, the functlon will print a recelpt to a text file. The name of the recelpt Is a text file called myreceipt.txt. Use the above table In figure 2 to create the menu/optlon of selecting Items to the order along with the response that Is displayed to the terminal window. You do not need to worry about Invalld optlons from belng entered In this problem. Once the user Is done entering thelr order, they must hit 0 to proceed with the recelpt printing. When 0 Is entered, the terminal will display the message Order is now placed. Printing receipt. Thls will cause the text file to be generated with the ltems selected along wlth the total cost. Check out the sample text file In webcourses to see the formatting of the text file. Welcome to Bob's Burgers! Our burger of the day is Say Cheese Burger! Please enter your arder by selecting the optien number. Otherwise type 8 and your order receipt will be printed. 1:Regular2:Special3:Cheese4:Fries5:Salad6:SoftDrink$5.00$5.95$5.50$2.60$2.50$2.09 What will you add to your order: 1 Adding regular to your order. Please enter your order by selecting the option number. Otherwise type and your order receipt will be printed. 1:Regular2;Special3:Cheese4:Fries5:Salad6:SoftDrink$5.60$5.95$5.50$2.00$2.50$2.00 What will you add to your order: 2 Adding spectal to your order. Please enter your order by selecting the option number. Otherwise type a and your order receipt will be printed. \begin{tabular}{ll} 1: Regular & $5.00 \\ 2: Special & $5.95 \\ 3: Cheese & $5.50 \\ 4: Fries & $2.00 \\ 5: Salad & $2.50 \\ 6: Soft Drink & $2.00 \\ \hline \end{tabular} What will you add to your order: 1 Problem 2 Figure 2: Table that shows option with associated item, price, and response in the terminal after user selects option. You were currently hired to work at Bob's Burgers Restaurant for a temp contract position. Your position is helping the restaurant create receipts for customers who want a copy of their order transaction. Write a user defined function called resterauntReceipt. The function has no parameters and does not return anything. Inside the function, you are going to collect the order of the customers. This includes the number of each item along with the associated price. After the user finlshes ordering, the functlon will print a recelpt to a text file. The name of the recelpt Is a text file called myreceipt.txt. Use the above table In figure 2 to create the menu/optlon of selecting Items to the order along with the response that Is displayed to the terminal window. You do not need to worry about Invalld optlons from belng entered In this problem. Once the user Is done entering thelr order, they must hit 0 to proceed with the recelpt printing. When 0 Is entered, the terminal will display the message Order is now placed. Printing receipt. Thls will cause the text file to be generated with the ltems selected along wlth the total cost. Check out the sample text file In webcourses to see the formatting of the text file. Welcome to Bob's Burgers! Our burger of the day is Say Cheese Burger! Please enter your arder by selecting the optien number. Otherwise type 8 and your order receipt will be printed. 1:Regular2:Special3:Cheese4:Fries5:Salad6:SoftDrink$5.00$5.95$5.50$2.60$2.50$2.09 What will you add to your order: 1 Adding regular to your order. Please enter your order by selecting the option number. Otherwise type and your order receipt will be printed. 1:Regular2;Special3:Cheese4:Fries5:Salad6:SoftDrink$5.60$5.95$5.50$2.00$2.50$2.00 What will you add to your order: 2 Adding spectal to your order. Please enter your order by selecting the option number. Otherwise type a and your order receipt will be printed. \begin{tabular}{ll} 1: Regular & $5.00 \\ 2: Special & $5.95 \\ 3: Cheese & $5.50 \\ 4: Fries & $2.00 \\ 5: Salad & $2.50 \\ 6: Soft Drink & $2.00 \\ \hline \end{tabular} What will you add to your order: 1

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!