Question: Help need python code Lab 5.5 - Programming Challenge 1 - Yum Yum Burger Joint Write the Flowchart and Python code for the following programming

Help need python code

Help need python code Lab 5.5 - Programming Challenge 1 - YumYum Burger Joint Write the Flowchart and Python code for the followingprogramming problem and the pseudocode below. Write a program that will calculatethe cost of purchasing a meal. This program will include decisions andloops. Details of the program are as follows: - Your menu itemsonly include the following food with accompanied price: - Yum Yum Burger

Lab 5.5 - Programming Challenge 1 - Yum Yum Burger Joint Write the Flowchart and Python code for the following programming problem and the pseudocode below. Write a program that will calculate the cost of purchasing a meal. This program will include decisions and loops. Details of the program are as follows: - Your menu items only include the following food with accompanied price: - Yum Yum Burger =.99 - Grease Yum Fries =.79 Soda Yum =1.09 - Allow the user of the program to purchase any quantity of these items on one order. - Allow the user of the program to purchase one or more types of these items on one order. - After the order is placed, calculate total and add a 6% sales tax. - Print to the screen a receipt showing the total purchase price. Your sample output might look as follows: Enter 1 for Yum Yum Burger Enter 2 for Grease Yum Fries Enter 3 for Soda Yum Enter now 1 Enter the number of burgers you want 3 Do you want to end your order? (yeso): no Enter 1 for Yum Yum Burger Enter 2 for Grease Yum Fries ur sample output might look as follows: Enter 1 for Yum Yum Burger Enter 2 for Grease Yum Fries Enter 3 for Soda Yum Enter now 1 Enter the number of burgers you want 3 Do you want to end your order? (yeso): no Enter 1 for Yum Yum Burger Enter 2 for Grease Yum Fries Enter 3 for Soda Yum Enter now 3 Enter the number of sodas you want 2 Do you want to end your order? (yeso): no Enter 1 for Yum Yum Burger Enter 2 for Grease Yum Fries Enter 3 for Soda Yum Enter now 1 Enter the number of burgers you want 1 Do you want to end your order? (yeso): no Enter 1 for Yum Yum Burger Enter 2 for Grease Yum Fries Starting Out with Programming Logic and Design 17 The total price is $8.1832 Do you want to end program? (yeso) : no Enter 1 for Yum Yum Burger Enter 2 for Grease Yum Fries Enter 3 for Soda Yum Enter now >2 Enter the number of fries you want 2 Do you want to end your order? (yeso) : no Enter 1 for Yum Yum Burger Enter 2 for Grease Yum Fries Enter 3 for Soda Yum Enter now 3 Enter the number of sodas you want 2 Do you want to end your order? (yeso) : yes The total price is $3.9856 Do you want to end program? (yeso) : yes The Pseudocode Module main() Call dectaxelaxiabtes (endereqfam, endordet, tetalkuxgen, tetalfrd, tetalsida, total, tax, subtotal, option, burgexceunt, freceuxt, sedaleunt) // Loop to run program again While enderegxam == "no" Call resetyaxiaklege(tetalduxger r tetalfxd, tetalsedar total, tax, subtotal) // Loop to take in order while erdordex == "no" // Loop to take in order while enderder == "no" Display "Enter 1 for Yum Yux Burger" Display "Enter 2 for Grease Yum Fries" Display "Enter 3 for Soda Yum" Input option If option ==1 Then Call getburger (tetalBuxger, burgercount) Else If option ==2 Then Call getfridttetalfrd, fxblount) Else If option ==3 Then Call getseda(totalsedar sedadeunt) End If Display "Do you want to end your order? (yeso): " Input endQrder End While Call GaleTetal (kurgextetal, fxbtetal, sedatetal, total, subtotal, tax) Call Rxintreceitat (total) Display "Do you want to end the program? (yeso): " Input enderegfam End While End Module Module dectaxelaxiakteg, String Ref endpregfam, String Ref endordef, Real Ref tetalBuxgen, Real Ref tetalfry, Real Ref tetalsoda, Real Ref total, Real Ref tax, Real Ref subtotal, Real Ref option, Real Ref burgexceunt, Real Ref fxucount, Real Ref sedacount) End Module Module getfryd(Real Ref tetalfrid, Integer ffkCount) Display "Enter the number of fries you want" Input fxucouxt Set tatalfri = tetalfrid + frkcount * .79 End Module Module getsoda (Real Ref tetaldeda, Integer sedaCeunt) Display "Enter the number of sodas you want" Input sedaceunt Set tetalsrda = tetalsoda + sedaleunt * 1.09 End Module Module GalcTetaldReal tetalBuxgen, Real tetalfry, Real tetalsada, Real Ref total, Real subtotal, Real tax) Set subtotal = tataliutger + tetalfri + tetalsoda Set tax= subtotal .06 Set total = subtotal +tax End Module Module RfintReceirt(Real total) Display "Your total is \$", total End Module Lab 5.5 - Programming Challenge 1 - Yum Yum Burger Joint Write the Flowchart and Python code for the following programming problem and the pseudocode below. Write a program that will calculate the cost of purchasing a meal. This program will include decisions and loops. Details of the program are as follows: - Your menu items only include the following food with accompanied price: - Yum Yum Burger =.99 - Grease Yum Fries =.79 Soda Yum =1.09 - Allow the user of the program to purchase any quantity of these items on one order. - Allow the user of the program to purchase one or more types of these items on one order. - After the order is placed, calculate total and add a 6% sales tax. - Print to the screen a receipt showing the total purchase price. Your sample output might look as follows: Enter 1 for Yum Yum Burger Enter 2 for Grease Yum Fries Enter 3 for Soda Yum Enter now 1 Enter the number of burgers you want 3 Do you want to end your order? (yeso): no Enter 1 for Yum Yum Burger Enter 2 for Grease Yum Fries ur sample output might look as follows: Enter 1 for Yum Yum Burger Enter 2 for Grease Yum Fries Enter 3 for Soda Yum Enter now 1 Enter the number of burgers you want 3 Do you want to end your order? (yeso): no Enter 1 for Yum Yum Burger Enter 2 for Grease Yum Fries Enter 3 for Soda Yum Enter now 3 Enter the number of sodas you want 2 Do you want to end your order? (yeso): no Enter 1 for Yum Yum Burger Enter 2 for Grease Yum Fries Enter 3 for Soda Yum Enter now 1 Enter the number of burgers you want 1 Do you want to end your order? (yeso): no Enter 1 for Yum Yum Burger Enter 2 for Grease Yum Fries Starting Out with Programming Logic and Design 17 The total price is $8.1832 Do you want to end program? (yeso) : no Enter 1 for Yum Yum Burger Enter 2 for Grease Yum Fries Enter 3 for Soda Yum Enter now >2 Enter the number of fries you want 2 Do you want to end your order? (yeso) : no Enter 1 for Yum Yum Burger Enter 2 for Grease Yum Fries Enter 3 for Soda Yum Enter now 3 Enter the number of sodas you want 2 Do you want to end your order? (yeso) : yes The total price is $3.9856 Do you want to end program? (yeso) : yes The Pseudocode Module main() Call dectaxelaxiabtes (endereqfam, endordet, tetalkuxgen, tetalfrd, tetalsida, total, tax, subtotal, option, burgexceunt, freceuxt, sedaleunt) // Loop to run program again While enderegxam == "no" Call resetyaxiaklege(tetalduxger r tetalfxd, tetalsedar total, tax, subtotal) // Loop to take in order while erdordex == "no" // Loop to take in order while enderder == "no" Display "Enter 1 for Yum Yux Burger" Display "Enter 2 for Grease Yum Fries" Display "Enter 3 for Soda Yum" Input option If option ==1 Then Call getburger (tetalBuxger, burgercount) Else If option ==2 Then Call getfridttetalfrd, fxblount) Else If option ==3 Then Call getseda(totalsedar sedadeunt) End If Display "Do you want to end your order? (yeso): " Input endQrder End While Call GaleTetal (kurgextetal, fxbtetal, sedatetal, total, subtotal, tax) Call Rxintreceitat (total) Display "Do you want to end the program? (yeso): " Input enderegfam End While End Module Module dectaxelaxiakteg, String Ref endpregfam, String Ref endordef, Real Ref tetalBuxgen, Real Ref tetalfry, Real Ref tetalsoda, Real Ref total, Real Ref tax, Real Ref subtotal, Real Ref option, Real Ref burgexceunt, Real Ref fxucount, Real Ref sedacount) End Module Module getfryd(Real Ref tetalfrid, Integer ffkCount) Display "Enter the number of fries you want" Input fxucouxt Set tatalfri = tetalfrid + frkcount * .79 End Module Module getsoda (Real Ref tetaldeda, Integer sedaCeunt) Display "Enter the number of sodas you want" Input sedaceunt Set tetalsrda = tetalsoda + sedaleunt * 1.09 End Module Module GalcTetaldReal tetalBuxgen, Real tetalfry, Real tetalsada, Real Ref total, Real subtotal, Real tax) Set subtotal = tataliutger + tetalfri + tetalsoda Set tax= subtotal .06 Set total = subtotal +tax End Module Module RfintReceirt(Real total) Display "Your total is \$", total End Module

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!