Chapter 9: Repeat Loops

BUILD

The following image for use in the chapter 9 tutorial of Drag and Drop Code with Thunkable, in which you build a Khan Academy like MathBlaster game

CONCEPTUALIZE

1. List the tasks that the count with block performs automatically that you’d need to code explicitly if you used a repeat while?

2. List the tasks that the for each item in list block performs automatically that you’d need to code explicitly if you used a repeat while?

3. Trace the code blocks in Figure 9.19, showing how all pertinent properties and variables change. Assume the first random number is 2, the second is 8 and the third is 11.

CUSTOMIZE

1. Modify the “MathBlasterEq” app so that the equations consist of 4-6 numbers with numbers in the range -1000 to 1000

2. Add sound effects to the “MathBlasterEq” app.

3. Recode the “MathBlasterEq” app so that the only repeat block used is the repeat while.

CREATE

1.Create a grade point average calculator. In the when Screen.Opens event handler, define a list of grades (e.g., “A”, “C”, “B”), display the grades in a ListViewer, and compute and display the GPA. For your first version, assume there are no “+” or “-” in the grades.

2.Create a memory test game which generates and displays sequences of words and asks the user to speak the sequence back to the app. You’ll need the recognized speech block in the “Speech” folder.

Share your creative apps with your authors and other Drag and Drop coders:

  • Use #DragAndDropCode and #MadeWithThunkable on your social media platforms.