Many computer apps are essentially lists with tools that search, sort, or manipulate the items on the list. Some examples include: contact lists, playlists, calendars of events, locations on a map, reminders, etc. In this lab, you’ll create a simple shopping list app.
As programmers, we could use list block, , to type everything we want to buy right into a list block as inputs. But it would be nice for the user of the app to be able to add things to their list without dealing with blocks and to have some other list controls like a way to clear the list and to search the list without looking through the whole thing (which is especially useful if the list is long).
shopping list
to store the information.shopping list
to be an empty list.ask
to request a shopping list item and uses in front of
and set
to add the item to the list.contains
to check if that item is already on the list.