Presentation is loading. Please wait.

Presentation is loading. Please wait.

Maths quiz KS 2: Use sequence in programs. Today we are learning about: Programs & Selection ●I can explain what selection is ●I can write a program using.

Similar presentations


Presentation on theme: "Maths quiz KS 2: Use sequence in programs. Today we are learning about: Programs & Selection ●I can explain what selection is ●I can write a program using."— Presentation transcript:

1 Maths quiz KS 2: Use sequence in programs

2 Today we are learning about: Programs & Selection ●I can explain what selection is ●I can write a program using selection

3 Maths quiz algorithm Think of a question to ask. Ask the player a question, e.g. What is the bond to…? Let the player respond. Check if their answer is correct. If their answer is correct then say ‘Well done that’s correct’. Think of a new question and repeat the steps.

4 Selection it starts to rain I’ll put my umbrella up. Condition What happens if the condition is met.

5 Pupil task 1: ●Use your quiz algorithm to help you write the code to create a maths quiz program. ●Your quiz should ask four questions. Write the code to ask one question first then test it and debug it if you need to. ●Once you have got your first question working, use the copy tool to duplicate your code and alter it to ask different questions. ●Your quiz should respond when a player gives the correct answer.

6 Discussion: ●What is selection? ●How is selection used in your program? ●What does the selection command enable your program to do? ●How is a selection command different to other commands? ●Did you encounter any bugs whilst writing your program? How did you fix these?

7 Pupil task 2: ●Experiment using ‘If...then...else...’ selection commands in your program (instead of ‘If...then...’) so your quiz: ○Still says ‘Well done’ when they get the answer right. ○Tells a player the right answer if they get the answer wrong. ●Remember to just write the code to ask one question first, and then use the copy tool to duplicate your code -

8 Discussion: ●What changes have you made to your program? Why? ●Can you describe how the different selection commands you have used in this activity work? ●How is the ‘If...then...else...’ command different/the same to the ‘If...then...’ command?

9 Today we are learning about: Programs & Selection ●I can explain what selection is ●I can write a program using selection


Download ppt "Maths quiz KS 2: Use sequence in programs. Today we are learning about: Programs & Selection ●I can explain what selection is ●I can write a program using."

Similar presentations


Ads by Google