drawing polygons - university college london · 2018-07-26 · smallest number to complete your...
TRANSCRIPT
DrawingPolygons
BEETLEGEOMETRYMODULE2:INVESTIGATION2
Openproject2-DrawingPolygons,saveasacopyandrename.
Runthesetupscript.
Snaptogetheronemoveblockandoneturnblock,settoanyvaluesandclicktheshortscriptseveral<mes(withoutusingrepeat).
MODULE2:[email protected]–DrawingPolygons
Addtherepeatblockaroundyourscriptandsetittothesmallestnumbertocompleteyourpolygoninoneclick.Createascripttodrawasquare.Createascripttodrawatriangle.
MODULE2:[email protected]–DrawingPolygons
DiscussionQues@onsu Howdidyouworkouthowtodrawyoursquareortriangle?
u Howmanysidesdidyourotherpolygonshave?Whatpolygonsdidyoudraw?
u HowmanydegreesdidtheBeetleturnintotaltomakeitaclosedshape?HowmanystepsdidtheBeetlemoveintotal?
u Whatisthelinkbetweenthemoveandrepeatblocksinyourpolygonscripts?
u Didyoumanagetodrawanequilateraltriangle?Howdidyoubuildyourscripttoensureitwasequilateral?
MODULE2:[email protected]–DrawingPolygons
Matchthescriptwiththepolygonthatitwoulddrawwhenyouclickonit.
MODULE2:[email protected]–Unplugged:PolygonScripts
1 2 3 4
Matchthescriptwiththepolygonthatitwoulddrawwhenyouclickonit.
MODULE2:[email protected]–Unplugged:PolygonScripts
1 2 3 4
Fillinthegapsinthetextbelowtoshowhowyouworkedouttheanswer.
MODULE2:[email protected]–Unplugged:PolygonScripts
Thisisthecorrectpolygonbecause:
§ ithas____equalsidesand_____rightangles§ theblocksintherepeatarerun_____<mes§ themoveblockis_____steps§ theBeetlealwaysturnsrightby_____degrees
Thisiscorrectpolygonbecause:
§ ithas_____pairsofequalsidesoppositeeachother,ashorterpairandalongerpair
§ ithas_____rightangles§ theblocksintherepeatarerun_____<mes§ thereare_____moveblocksintherepeat§ thereare_____turnblocksintherepeatandtheBeetlealwaysturnsrightby_____degrees
Fillinthegapsinthetextbelowtoshowhowyouworkedouttheanswer.
MODULE2:[email protected]–Unplugged:PolygonScripts
Thisiscorrectpolygonbecause:
§ ithas_____equalsidesand_____equalangles§ theblocksintherepeatarerun_____<mes§ themoveblockis_____steps§ theBeetlealwaysturnsrightby_____degrees
Thisiscorrectpolygonbecause:
§ ithas_____equalsidesand_____equalangles§ theblocksintherepeatarerun_____<mes§ themoveblockis_____steps§ theBeetlealwaysturnsrightby_____degrees
Con<nuein2-DrawingPolygons,saveasacopyandrename.
GototheMoreBlocksgroupandfindthenewblocksthatarethere.
Experimentwiththesenewblocksbyaddingthemtothetopofyoursquarescriptorinsidethescript.
MODULE2:[email protected]–UsingandDefiningMoreBlocks
DragtheBeetlearoundthestagetodrawsquareswithdifferentcolouredandsizedlines.
MODULE2:[email protected]–UsingandDefiningMoreBlocks
Makeanewblock(1)andgiveyourblockameaningfulnamee.g.square(2).
Dragthehatblock(3)andputitasahatontopofthescriptfordrawingasquare(4).
MODULE2:[email protected]–UsingandDefiningMoreBlocks
DiscussionQues@ons
u Whatisthedifferencebetweenpencolourandpenshade?
u Wheredidyoutryplacingthesetrandompenblocksinyourscript–howdidthischangeyourdrawing?
u Whywoulditbeagoodideatodefineanewblockforascriptyouusemany<mesinyourproject(e.g.drawingasquare)?
u Whyisitimportanttogiveanewblockameaningfulname?
MODULE2:[email protected]–UsingandDefiningMoreBlocks
Con<nuein2-DrawingPolygons,saveasacopyandrename.
Buildascript,usingyoursquareblock,todrawatoweroftwosquares.
MODULE2:[email protected]–CombiningNewBlocks
Makeanothernewblocktrianglewithsidesthatarethesamelengthasyoursquare.
MODULE2:[email protected]–CombiningNewBlocks
Combineyoursquareandtriangleblocksinonescripttodrawahouse.
MODULE2:[email protected]–CombiningNewBlocks
[Extension]Trybuildingscriptstodrawsomeoftheexamplepicturesbelowusingjustthesquareblock.
MODULE2:[email protected]–[Extension]CombiningNewBlocks
DiscussionQues@onsu Whatproblemsdidyouencounterwhenbuildingascriptfor
drawingatoweroftwosquaresandhowdidyousolvethese?
u Howdidyouuseyournewblockstocreateahouse?
u Diddefininganewblockforsquareandtrianglemakeiteasiertodrawthehouse?How?
u Whatproblemsdidyouencounterwhendrawingyourhouse?
u Howdidyoudiscovertheanglethatyouneedtoturnbyinordertodrawtheroofonyourhousecorrectly?
MODULE2:[email protected]–CombiningNewBlocks
MyInves@ga@on2checklist:
Ibuiltascripttodrawasquare.
Ibuiltascripttodrawanequilateraltriangle.
Ienvisagedwhatpolygonsdifferentscriptswoulddraw.
Iusedpre-definedblockswithinmysquarescripttodrawsquareswithsidesofrandomwidthsandcolours.
Idefinedmyownsquareandtriangleblocks.
Iusedmysquareblocktodrawatower.
Iusedmysquareandtriangleblockstodrawahouse.
MODULE2:INVESTIGATION2