Make a copy of the worksheet and follow along with the video above.
In this video, you'll learn about writing code for humans! That means planning code for humans to use, writing code that humans can read and testing code so humans can't break it.
In the video, we'll work through the stages of planning, writing and testing a multiplication quiz. All of this alligns with the new NZ curriculum for year 9 that comes out in 2027.
The Video is quite long and will cover three lessons. Break it up into the three sections and have students complete each in order.
Planning- Students play the game in pairs with paper and pencil trying to identify the input, output and variables. By the end of the lesson they should have a pseudocode solution to the problem in their document that looks a little like the one in the video.
Writing Code- This is fairly tricky and students should could do pair programming to avoid mistakes. The video explain the whole thing and the tricky concepts of generating random numbers etc. This should take one lessons and the fast students should help the slower ones to complete. By the end of the lesson the students whould have a working solution in Scratch and a screenshot of it in their document.
Testing- This is relatively easy to explain and do. The students could test each others or simply test their own with the given inputs. By the end of the lesson students should have a completed Test Table in their document.
Extension- The final part of the video suggest improvements that can be made. Give this a lesson or two. During this time, slower students can get support from you to complete the doc and understand the basic code while the faster ones can add some sparkle to their program by adding any features they want.