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:20240310T100000
END:DAYLIGHT
BEGIN:STANDARD
TZOFFSETFROM:-0700
TZOFFSETTO:-0800
TZNAME:PST
DTSTART:20241103T090000
END:STANDARD
END:VTIMEZONE
BEGIN:VEVENT
DTSTART;TZID=America/Los_Angeles:20240410T190000
DTEND;TZID=America/Los_Angeles:20240410T200000
DTSTAMP:20260426T120405
CREATED:20240411T030131Z
LAST-MODIFIED:20240411T030304Z
UID:24730-1712775600-1712779200@www.ayclogic.com
SUMMARY:7 PM - Intro to Java - Roland
DESCRIPTION:Today We Did\n\nWarm-Up Review\n\nWhile Loop Problem\nFor Loop & Lists Problem\n\n\nRandom (Feel free to explore the documentation here!: https://docs.oracle.com/javase/8/docs/api/java/util/Random.html)\n\nRandom r = new Random();\nr.nextInt(lower_bound\, upper_bound) or r.nextInt(upper_bound)\nArrays.asList(…);\n\n\nAYCLOGIC Adventure Game!\n\nUsed random to create a game where the player has to fight as many animals as they can from the list without losing all their health (see the notes folder for the completed program)\n\n\n\nHomework\n\nCreate a new Java file April10_RandomHW.java and create the Magic 8 Ball program below\n\nCreate a forever loop and inside the loop do the following:\n\nAsk user “Enter yes or no question.” and take user input and save/set user input into a variable called “user_question”.\nIf user input is “quit”\, print “Bye bye” and break from the While Loop.\nGenerate random number between 1 to 8\n\nto generate random number between 1 to 8 and save/set random number into variable called “randomInt”.\n\n\nInside the while loop print to the screen according to “randomInt”\n\nIf randomInt is equal to 1\, print “It is certain.”\nIf randomInt is equal to 2\, print “Most likely.”\nIf randomInt is equal to 3\, print “Signs point to yes.”\nIf randomInt is equal to 4\, print “I don’t think so.”\nIf randomInt is equal to 5\, print “Ask again later.”\nIf randomInt is equal to 6\, print “Concentrate and ask again.”\nIf randomInt is equal to 7\, print “Outlook not so good.”\nIf randomInt is equal to 8\, print “My reply is no.”\n\n\nAfter printing the answer\, go back to Step 1 (Ask user “Enter yes or no question”) until user input “quit”.\n\n\nMake sure you use r.nextInt() to get the random number!!!\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 (April10_Random.java): https://drive.google.com/drive/folders/10JdSDu9bC5k_Jewi3BxazkkuBNrrVpqA?usp=sharing
URL:https://www.ayclogic.com/event/7-pm-intro-to-java-roland-5/
END:VEVENT
END:VCALENDAR