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:20250821T180000
DTEND;TZID=America/Los_Angeles:20250821T190000
DTSTAMP:20260514T193456
CREATED:20250822T020514Z
LAST-MODIFIED:20250822T020514Z
UID:30221-1755799200-1755802800@www.ayclogic.com
SUMMARY:6 PM - USACO Bronze - Gamas
DESCRIPTION:Today We Did\n\nWe discussed the implementation of Majority Opinion problem\nWe did not finish\n\nHomework\n\nFigure out why the implementation did not pass the USACO test grading. Download the Majority opinion test data and run it locally to figure out the problem.\nRead and solve Cannon Ball problem – https://usaco.org/index.php?page=viewproblem2&cpid=1372
URL:https://www.ayclogic.com/event/6-pm-usaco-bronze-gamas-26/
END:VEVENT
BEGIN:VEVENT
DTSTART;TZID=America/Los_Angeles:20250821T180000
DTEND;TZID=America/Los_Angeles:20250821T190000
DTSTAMP:20260514T193456
CREATED:20250822T021553Z
LAST-MODIFIED:20250822T021553Z
UID:30220-1755799200-1755802800@www.ayclogic.com
SUMMARY:6:00 PM -Python OOP - Joshua
DESCRIPTION:Today We Did\n\nStarted our Monster System\nFixed Bugs in regards to homework\n\nHomework\nSo We have started our monster system together\, and our goal is when we run our code\, it will look like the example below. To do that we need to do a few things \n\ncreate and add a  “add_monster” function which will add the monster to the dictionary. You need to use input to gather information\, and then create a monster. You then add it to the dictioanry\ncreate/add a “list_monster” function that will list all available monsters\n\nHint\, get_info() in your monster class should be able to print it all without a f”string”\nHint:\n\n\nLook at when we created a fruit store ( I included it below below the example\, if you need any help\nYou then will need to edit your application loop\, so if they choose options 1 or 2\, it wil look like the application\n\n  \nExample of MONSTER SYSTEM\nPlease select one of the following\n1. Add Monster\n2. List all monsters\n3. Play Adventure\nEnter your selection (Enter ‘exit’ to quit): 1 \nADD MONSTER\nEnter monster species: Spider\nEnter monster health: 10\nEnter monster max_attack: 20\nYou have added Spider into our system. \nPlease select one of the following\n1. Add Monster\n2. List all monsters\n3. Play Adventure\nEnter your selection (Enter ‘exit’ to quit): 2\n– Dragon – 100 health – 50 Max attack\n– Troll – 50 health – 20 Max attack\n– Water Golem – 30 health – 20 Max attack\n– Cyclops – 60 health – 30 Max attack\n– Spider – 10 health – 20 Max attack \n  \n\nExamples that might help you\nFruit Store\n\n# Part 1 Finish the Fruit class\n# just self. __________________\n# name and color is Strings\n# is_it_sweet is True or False\n# barcord_numberis number\nclass Fruit:\n\n    def __init__(self\,name\,color\,is_it_sweet\,barcode_number):\n        self.name = name\n        self.color = color\n        self.is_it_sweet = is_it_sweet\n        self.barcode_number = barcode_number\n\n\nclass Fruit_store:\n    # Part 2 I need you to create 2 empty dictionaries\n    # fruit_by_name {name:fruit}\n    # fruit_by_barcode {barcode:fruit}\n    def __init__ (self):\n        self.fruit_by_name = {}\n        self.fruit_by_barcode = {}\n\n    # part 3\n    # i want you to write the code that lets someone add a fruit to the store\n    def add_fruit(self):\n        name = input("What is the fruit's name?")\n        color = input("what is the fruit's color?")\n        is_it_sweet = input("is the fruit sweet?")\n        barcode_number = input("what is the barcode number of your fruit?")\n\n        fruit = Fruit(name\,color\,is_it_sweet\,barcode_number)\n\n        self.fruit_by_name[name] = fruit\n        self.fruit_by_barcode[barcode_number] = fruit\n        print("You have added your fruit")\n\n\n\n    # part 4\n    # pick a dictionary\, and use it to list all the fruit and its information\n    def list_fruit(self):\n        for f in self.fruit_by_name.values():\n            print(f"the fruit's name is{f.name}and the fruit's  {f.color}   {f.is_it_sweet}    {f.barcode_number}")\n\n\n\n\n    # part 5\n    # same as list_fruit\, but you must check if the fruit is sweet before printing\n    def find_all_sweet_fruit(self):\n        for f in self.fruit_by_name.values():\n            if f.is_it_sweet.lower() == "true":\n                print(f"the fruit's name is {f.name} and the fruit's  {f.color}   {f.is_it_sweet}    {f.barcode_number}")\n\n    #part 6\n    # the user will ask for a fruit with input\, and you need to print the info\n    def find_fruit_by_name(self):\n        question_of_fruit = input("what fruit are you looking for?")\n\n        if question_of_fruit in self.fruit_by_name.keys():\n            found_fruit = self.fruit_by_name[question_of_fruit]\n            print(f"the fruit's name is {found_fruit.name} and the fruit's  {found_fruit.color}   {found_fruit.is_it_sweet}    {found_fruit.barcode_number}")\n\n\n        else:\n            print("We don't have your fruit")\n\n    def application_loop(self):\n\n        menu = """ \n        1. Add A Fruit \n        2. List all fruits \n        3. find all sweet fruits\n        4. find fruits by name\n        5. End Application\n        Enter Your selection here:"""\n        while True:\n            response = input(menu)\n\n            if response=="1":\n                self.add_fruit()\n            elif response=="2":\n                self.list_fruit()\n            elif response == "4":\n                self.find_fruit_by_name()\n            elif response == "3":\n                self.find_all_sweet_fruit()\n            elif response == "5":\n                break\n            else:\n                print("Bad answer")\n\n\n\n\n\n\n\n\nranch_nine_nine= Fruit_store()\n#ranch_nine_nine.add_fruit() #<--- we do the code to add the fruit\nranch_nine_nine.application_loop()
URL:https://www.ayclogic.com/event/600-pm-python-oop-joshua-5/
END:VEVENT
END:VCALENDAR