Make the title of this page: (Your Name)'s Grocery Shopping List. Put a single button on the
Fantastic news! We've Found the answer you've been seeking!
Question:
- Make the title of this page: "(Your Name)'s Grocery Shopping List".
- Put a single button on the screen. When the user clicks the button, prompt the user twice: once for the name of an item for the shopping list and again for the price. After the user enters the two required elements, the program loops and asks the user for two additional elements.
- If the user enters "done" for a shopping list item, then the program quits.
- For this question, you must use a while loop.
- Once the loop ends, display a table of all of the items and their prices. After the table, display the total price of all of the items.
- This program is tricky. Think about an instance in which the program starts and the user immediately types "done". What should happen? The program should display that the total of all items is $0.
- I'm pretty sure a clever programmer could do it without a break statement, but you can use a break statement here.
Related Book For
Fundamentals Of Management
ISBN: 9781292307329
11th Global Edition
Authors: Stephen P. Robbins, Mary A. Coulter, David A. De Cenzo
Posted Date: