BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//American Young Coder - ECPv6.10.1.1//NONSGML v1.0//EN
CALSCALE:GREGORIAN
METHOD:PUBLISH
X-WR-CALNAME:American Young Coder
X-ORIGINAL-URL:https://www.ayclogic.com
X-WR-CALDESC:Events for American Young Coder
REFRESH-INTERVAL;VALUE=DURATION:PT1H
X-Robots-Tag:noindex
X-PUBLISHED-TTL:PT1H
BEGIN:VTIMEZONE
TZID:America/Los_Angeles
BEGIN:DAYLIGHT
TZOFFSETFROM:-0800
TZOFFSETTO:-0700
TZNAME:PDT
DTSTART:20250309T100000
END:DAYLIGHT
BEGIN:STANDARD
TZOFFSETFROM:-0700
TZOFFSETTO:-0800
TZNAME:PST
DTSTART:20251102T090000
END:STANDARD
END:VTIMEZONE
BEGIN:VEVENT
DTSTART;TZID=America/Los_Angeles:20250723T150000
DTEND;TZID=America/Los_Angeles:20250723T160000
DTSTAMP:20260506T015726
CREATED:20250723T230820Z
LAST-MODIFIED:20250723T230938Z
UID:29818-1753282800-1753286400@www.ayclogic.com
SUMMARY:3 PM – Python OOP – Allison
DESCRIPTION:Make sure to do the below code in your SupermarketSystem project\nUpload main2.py as July23_main2.py\nIn your main2.py file:\n\nIn print_menu:\n\nPrint by looping through everything in the menu_items dictionary. The result should be:\n\n1 – Ice Cream – $5\n2 – Fish – $4\n3 – Cookies – $6\n\n\nAfterward\, get user input by asking “Enter your selection or enter “Check Out” to checkout”\nReturn user input\n\n\nCreate a check_out function:\n\nPrint: You have purchased (shopping cart’s length) items\nCreate a variable called money and assign 0\nLoop through everything in the shopping cart\n\nIf the item is frozen food\, print: (item’s name) – remember to store inside a freezer\nIf the item is not frozen food\, just print the item’s name\nMake sure to add the item’s price to the money variable\n\n\nAfter the loop is done\, print: Thank you for your business. Please pay $(money)\n\n\nIn application_loop:\n\nCreate a variable selection. Assign it with the value that print_menu returns.\nIf user selection is check out\n\ncall the check_out method and break from loop\n\n\nIf user selection is invalid\, print invalid selection\n\nThis time\, I want you to check if it’s invalid by checking if it doesn’t exist in the menu_item keys\n\n\nIf the user selection is something else:\n\nAdd the Grocery Item object the user chose to the shopping cart (hint: use your dictionary)\n\nEx: If the user selects option 2\, the Fish Grocery Item should be added\n\n\nPrint: You have purchased {grocery object’s name} for ${grocery object’s price}\n\n\n\n\n\n\n Other\n\nAdd any missing parts of your class notes from our class notes (see link at bottom)\nReview the homework answers (see link at bottom)\n\n\n\nNotes\n\nYou can reach out via allison@ayclogic.com if you have any questions.\nClass notes and previous homework answers can be found here: Link to Google Drive
URL:https://www.ayclogic.com/event/3-pm-python-oop-allison-5/
CATEGORIES:OOP Python,Python Class
END:VEVENT
END:VCALENDAR