Computational thinking PO4

One of the more difficult aspects of writing code is to write a piece of code for all eventualities, this is called generalising. This activity is based on honing that generalising skill. We build on the skills learned in the Constellations activity, where students learned how to use the ask block and use variables to hold data and then use that data to check answers. The difference with this activity is to generalise the question asking function to one question that can ask an unlimited number of questions and to accurately check the answers. There are a couple of extension challenges with this activity that should really get the students thinking…

If you want to see how the coding for this challenge work the following link will take you to a working example. Obviously, this link should not be shared with your students… Here is the link to the solution we wrote for this challenge: Multiplication Game

If you want us to make more of this kind of resource please contact us at david@dakinane.com and we will make more resources to share with you, related to your need.