Shopping Project

Video Lecture

Problem

You want to go shopping for computers and electronics. Create two lists. One for the name of the items and other for the cost of the items.

  • Create a menu item S that lists the items for sale and the cost

  • Create a menu item P that asks the user for 3 items to purchase and their prices.

  • Create a menu item C that print the items the user purchases and the total price.

  • Create a menu item Q that quits the program.

Source: Best Buy

Example Code

Sample Output

Last updated

Was this helpful?