U UNPLUGGED ForLoopFun Lessontime:25MinutesBasiclessontimeincludesactivityonly.IntroductoryandWrap-Upsuggestionscanbeused todelvedeeperwhentimeallows. LESSONOVERVIEW Weknowthatloopsallowustodothingsoverandoveragain,butnowwe’regoingtolearnhowtouseloopswith extrastructurebuiltrightin. TEACHINGSUMMARY GettingStarted-15minutes 1)Review 2)Vocabulary 3)ForOneandAll Activity:ForLoopFun-25minutes 4)ForLoopFun Wrap-up-10minutes 5)FlashChat-Whatdidwelearn? 6)Vocab-Shmocab Assessment-5minutes 7)ConditionalswithCardsAssessment LESSONOBJECTIVES Studentswill: Determinestartingvalue,stoppingvalue,andintervalof"forloop" Illustratethecountervalueshiteachtimethroughaforloopduringruntime TEACHINGGUIDE MATERIALS,RESOURCESANDPREP FortheStudent Dice(3perpairofstudents) Pens&Pencils ForLoopFunWorksheet ForLoopFunAssessment FortheTeacher ThisTeacherLessonGuide PrintoneForLoopFunWorksheetpergroup PrintoneForLoopFunAssessmentforeachstudent GETTINGSTARTED(20MIN) 1)Review Thisisagreattimetoreviewthelastlessonthatyouwentthroughwithyourclass.Wesuggestyoualternate betweenaskingquestionsofthewholeclassandhavingstudentstalkabouttheiranswersinsmallgroups. Herearesomequestionsthatyoucanaskinreview: Whatdidwedolasttime? Whatdoyouwishwewouldhavehadachancetodo? Didyouthinkofanyquestionsafterthelessonthatyouwanttoask? Whatwasyourfavoritepartofthelastlesson?? LESSONTIP Finishingthereviewbyaskingaboutthestudents'favoritethingshelpstoleaveapositiveimpression ofthepreviousexercise,increasingexcitementfortheactivitythatyouareabouttointroduce. 2)Vocabulary Thislessonhasonenewandimportantword: ForLoop-Sayitwithme:For-Loop Loopsthathaveapredeterminedbeginning,end,andincrement(stepinterval) 3)ForOneandAll Ifyoudidtheoriginalloopslesson(rememberTheIteration?)youcancallbacktotheusefulnessofloopsin general Pointoutthattherearecertainloopsthathappenveryfrequently,forexample,loopswhereyouneedtokeep trackofhowmanytimesyouhavebeenthrough Sometimes,youdon'twanttostartwithone Sometimes,youdon'twanttocountbyones ForLoopsgiveyouapowerfulwaytokeepacounterthatstartswhenyouwant,endswhenyouwant,and increasesbywhateversizestepthatyouwant Here,youcanjumprightintoasampleofthegame ACTIVITIES:(20MIN) 4)ForLoopFun Sometimeswewanttorepeatthingsacertainnumberoftimes,butwewanttokeeptrackofvaluesaswedo.This iswherea“forloop”comesinhandy.Whenyouuseaforloop,youknowrightfromthestartwhatyourbeginning valueis,whatyourendingvalueis,andhowmuchthevaluechangeseachtimethroughtheloop. Directions: 1)Dividestudentsintopairs 2)Tostarttheround,eachstudentrollsthreetimes: -OnedietodeterminethestartingvalueofX -ThreedicetodeterminethestoppingvalueforX -OnedietodeterminethestepintervalofXeachtimethrough 3)Useoneoftheprovidednumberlinestotracetheforloopthatthey’vemade -StartatthestartingvalueofX -Countdownthenumberline,circlingthenumbersattherolledinterval -Stopwhenyougettothepredeterminedstoppingvalue 4)Addallofthecircledvaluestoyourscore,thenlettheotherplayertakeaturn 5)Best2outof3wins LESSONTIP Whenyouplaythisgame,it'sasifyou'rerunningthroughalooplikethis for(x=startValue;x<=stopValue;x=x+interval){ circlecurrentXvalue; addcurrentXvaluetoroundScore; } Itmaybedifficultforyoungstudentstounderstandthiswritteninpseudocode,butitmaybehelpfultohaveyouexplainout loud(andperhapswithadiagram)whattheywillbeusingasthecontentofaforloop. WRAP-UP(5MIN) 5)FlashChat:Whatdidwelearn? Whatwouldyourintervalneedtobeifyouwantedtocountfrom4to13bythrees? Whatkindsofthingsdoyouthinkyoucoulddowithaforloop? Canyoureproduceanormalloopusingaforloop? Whatwouldyouneedtodo? LESSONTIP FlashChatquestionsareintendedtosparkbig-picturethinkingabouthowthelessonrelatestothe greaterworldandthestudents'greaterfuture.Useyourknowledgeofyourclassroomtodecideifyou wanttodiscusstheseasaclass,ingroups,orwithanelbow-partner. 6)VocabShmocab Whichoneofthesedefinitionsdidwelearnawordfortoday? "Doingsomethingmorethanoncetheexactsameway" "Loopsthathaveapredeterminedbeginning,end,andincrement." "Statementsthatonlyrunundercertainconditions" ...andwhatisthewordthatwelearned? ASSESSMENT(5MIN) 7)ForLoopFunAssessment Handouttheassessmentworksheetandallowstudentstocompletetheactivityindependentlyafterthe instructionshavebeenwellexplained. Thisshouldfeelfamiliar,thankstothepreviousactivities. EXTENDEDLEARNING Usetheseactivitiestoenhancestudentlearning.Theycanbeusedasoutsideofclassactivitiesorother enrichment. RunitBackward Trythisactivityagain,butthistimehavethestartnumberbeselectedusingthreedice,andthestopnumber withonlyone.Makesuretohaveanegativeincrement! HopScotch Usingchalk,drawahopscotchdiagramoutsideontheblacktop Numberthesquaresfrombottomtotop Havestudentsgiveeachotherastartsquare,stopsquare,andhowmanyatatimetheyneedtojump Whenthejumperisdone,havethemwritedownthelooptheyjustperformed Startaddingadditionalactivitiestobedoneateachsquare,thiswilladdcomplexitytothewrittenportion,as well ThiscurriculumisavailableunderaCreativeCommonsLicense(CCBY-NC-SA4.0) IfyouareinterestedinlicensingCode.orgmaterialsforcommercialpurposes,contactus:https://code.org/contact