BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//American Young Coder - ECPv6.10.1.1//NONSGML v1.0//EN
CALSCALE:GREGORIAN
METHOD:PUBLISH
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:20240310T100000
END:DAYLIGHT
BEGIN:STANDARD
TZOFFSETFROM:-0700
TZOFFSETTO:-0800
TZNAME:PST
DTSTART:20241103T090000
END:STANDARD
END:VTIMEZONE
BEGIN:VEVENT
DTSTART;TZID=America/Los_Angeles:20240424T190000
DTEND;TZID=America/Los_Angeles:20240424T200000
DTSTAMP:20260426T135107
CREATED:20240425T030816Z
LAST-MODIFIED:20240425T030816Z
UID:24872-1713985200-1713988800@www.ayclogic.com
SUMMARY:7 PM - Intro to Java - Roland
DESCRIPTION:Today We Did\n\n\n\nReviewed Method HW from last week\n\nConverting from Fahrenheit to Celsius\nConverting from Celsius to Fahrenheit\nHow to run the method\n\n\nConverted Magic8Ball program to use Methods\n\nrun()\nprovideResponse() and getUserInput()\n\n\nDid more method practice problems\n\nFormat Full Name (return String)\nConvert Days to Seconds (return Int)\n\n\n\n\n\nHomework\n\nCreate a new Java file April24_TellMeYourAgeOOP.java and create the Tell Me Your Age program with methods below\n\nThe Tell me Your Age program should ask the user “How old are you?: “\nIf the user responds with “quit” the program should print “bye bye” and break out of the loop\nOtherwise it should give a response according to the following below\n\nIf the user is 0 years old\, it says “You are a new born baby.”\nElse if the user is younger than or equal to 4 years old\, it says “You are a toddler”\nElse if the user is younger than or equal to 12 years old\, it says “You are a kid”\nElse if the user is younger than or equal to 20 years old\, it says “You are a teenager”\nElse if the user is younger than or equal to 30 years old\, it says “You are a young adult”\nElse if the user is younger than or equal to 60 years old\, it says “You are an adult”\nElse it says “You are a senior”\n\n\nConvert the program we made above into an OOP program with methods! like how we did splitting our 8Ball program up in class:\n\ncreate run() method\n\nThis method should store the infinite while loop that asks the user and provides responses\n\n\ncreate getUserInput() method\n\nShould ask the question “How old are you? ” and return a string with the user’s input using Scanner to get the input\n\n\ncreate provideResponse() method\n\nThis should take in the user’s input as a parameter and provide an appropriate response depending on their age using the algorithm above\nShould be a void method that just prints the response\n\n\nAnd call the run() from main() as we did in class\n\n\n\n\nUpload your answer to google drive before next week Tuesday night.\n\nIf you have any questions feel free to email me rolandyang@ayclogic.com \nFeel free to reference the code in the notes if you are lost (April24_MethodsContinued.java): https://drive.google.com/drive/folders/10JdSDu9bC5k_Jewi3BxazkkuBNrrVpqA?usp=sharing
URL:https://www.ayclogic.com/event/7-pm-intro-to-java-roland-6/
END:VEVENT
END:VCALENDAR