Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Phyton Please Need help due @3PM # Coffee-2a) Modify the nested loop example given. # Depending on the customer's selection, add a value # into

Phyton Please Need help due @3PM image text in transcribed
image text in transcribed
# Coffee-2a) Modify the nested loop example given. # Depending on the customer's selection, add a value # into a customer sub total. To keep it simple, assume # that they'll enter 1, 2, 3, 4 or 0. If they enter # 1, 2, 3, or 4, add that same number into their sub total 6 # (e.g. if choice is 1, subtotal + 1, 1f choice is 2, 7 # subtotal + 2 etc.). If they enter 0, that will indicate # they are done and the inner loop should break. 10 11 # coffee-2b) Add a grand total for the store into the 12 , # code from 2a. Add each customer's sub-total into the 13 # grand total once they are done adding to their order. # Also print each customer's sub total once they are done ordering, and print the grand total of all sales # at the very end 16 Exercises Coffee-2a) Modify the nested loop example given. Depending on the customer's selection, add a value into a customer sub total. To keep it simple, assume that they enter 1. 2, 3, 4 or 0. If they enter 1, 2, 3, or 4, add that same number into their sub total (e.g. if choice is 1, subtotal+-1, if choice is 2, subtotal+-2 etc.). If they enter 0, that will indicate they are done and the inner loop should break 'll Coffee-2b) Add a grand total for the store into the code from 2a. Add each customer's sub-total into the grand total once they are done adding to their order. Also print each customer's sub total once they are done ordering, and print the grand total of all sales at the very end

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Practical Azure SQL Database For Modern Developers Building Applications In The Microsoft Cloud

Authors: Davide Mauri, Silvano Coriani, Anna Hoffma, Sanjay Mishra, Jovan Popovic

1st Edition

1484263693, 978-1484263693

More Books

Students also viewed these Databases questions

Question

Refer to the list of systems identified in Chapter

Answered: 1 week ago