American Young Coder

AYC logo
Loading Events

« All Events

  • This event has passed.

12:30 PM – Python OOP – Gamas

August 22 @ 12:30 pm - 1:30 pm

Today We Did
  1. We finished Grocery Shopping Cart Homework.
Homework
  1. Add code inside grocery system project so it can do the 999. Add New Grocery Item
  2. What do you want to purchase?
    1. Milk by Horizon - $3 - FROZEN
    2. Eggs by Costco - $2 - FROZEN
    3. Chips by Lays - $1
    4. Bread by Artesano - $5
    999. Add Grocery Item
    Enter your selection ('quit' to checkout and exit):

     

  3. # add new code to handle "999. Add Grocery Item"
    # ask user for Grocery Name, Price, expiration, brand and frozen
    # and then create a new GroceryItem instance and add it to self.item_dictionary
    # this is very similar to SchoolSystem ADD NEW STUDENT

Details

Date:
August 22
Time:
12:30 pm - 1:30 pm