« All Events
5 PM – Python OOP – Juan
November 27, 2023 @ 5:00 pm - 6:00 pm
Today We Did
- Continued working on the Supermarket System.
- Created a dictionary
menu_items
, with item number keys and GroceryItem instances as the values. - Created a function to handle purchasing items.
Homework
- Name your folder Dec4_Supermarket_HW and do:
- Finish the
deposit(self, money)
function in the ShoppingCartApplication class.- Retrieve input to allow the user to specify how much to add to the
balance
attribute
- Add at least 3 more menu items
- Each menu item should be included in the
menu_items
dictionary.
- Modify the
menu
attribute and the application_loop
to support the deposit()
function and the 3 new menu items.