Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

For this question, you will write a (very) simple shopping list application. You program will allow a user to create a list of groceries they

image text in transcribed

For this question, you will write a (very) simple shopping list application. You program will allow a user to create a list of groceries they need to buy, and allow them to remove items from their list as they add them to their grocery cart. The first part of your program should ask the user to create a shopping list. It should repeatedly show a prompt to the user asking if they want to add something to their list. Each time they say yes, the program should ask the user to enter the item and it should be added to a list variable that holds the shopping list, and then ask again. When they say no, the program should continue to the second part Get this part of the program working before going any further. Do not move on to the second part of the program until you know that the first part works The second part of the program will display the shopping list. A prompt will then ask the user to type the name of the item they would like to delete from their list. Once they enter an item, that item will be removed from the shopping list. The program will then continue to print the list and ask for an item to be removed. Once there are no more items in the list, the program will terminate A typical run of our program might look like this Sample Run Here is an example of how your program's console output might look. Green text was entered by the user Welcome to Super Shopper! What would you like to add to your shopping list?: milk Item milk added Would you like to add something to your list (y)?: y Item name: eggs Item eggs added Would you like to add something to your 1ist (y)?: n Items in your list: C'milk', 'eggs '] What item would you like to delete?: eggs Items in your 1ist: What item would you like to delete?: milk Shopping Complete! Goodbye

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions