Computer Science LearnITWithMrC ⛯ Year 7 Year 8 Year 9 GCSE

## What am I Learning today?

 I have a basic understanding of Selection(if Statements) I am learning how to use Selection with a solid understanding

## Lesson

### NOTE: IT MUST BE YOUR OWN WORK!

Any code found to be plagerised without credit will get a 0

Make sure that you have your scratch Powerpoint Open

You can do that by clicking on the link below

## Scratch Selection

In scratch we can make decision by using control blocks :

## Using IF

We can use the if control block to help us make a selection.

### Activity

• Look at the example below and then copy it into scratch. What does it do when you run it?

• ## Activity - It's a puzzler

Look at the blocks below. It's like a Jigsaw puzzle.

Can you put them together so that they do the following:

1. ask the user "what their name is?"
2. then say "hello", using their name in the answer?
3. Then add a simple maths question and say if the user was correct or incorrect?

Can you add some more questions to our quiz?

### Summing it all up

Lets look at the learning outcomes and decide which one best describes our current level of understanding :

Tick the one you feel is closest to your level

## Learning Outcomes I have a basic understanding of Selection(if Statements)

• I have a basic understanding of how I have a basic understanding of Selection(if Statements) with a little help from my teacher
• I can show my teacher that I have a basic understanding of Selection(if Statements) without their help.
• I have a basic understanding of Selection(if Statements) independently and I can also explain it to others and can complete any extension tasks I am given.

## Scratch Selection - Improving our code

Can we now improve our code so that we also tell the user what the correct answer was if they go it wrong?

#### Above is an example of another maths question for our quiz, with the answer included. See if you can add some more quesions of your own to your maths quiz before we start keeping score

Don't forget to update your objectives

If you are now confident using if else blocks then make it green, if you still need more practice make it amber,

Add a comment to let me know how you are getting on

#### Task 2 - Look at the picture below and set your variable score = 0

Can you include Score in your blocks so that when the user gets an answer correct their score increases?

### Summing it all up

Lets look at the learning outcomes and decide which one best describes our current level of understanding :

Tick the one you feel is closest to your level

## Learning Outcomes I need to learn how to use Selection with a solid understanding

• I have a basic understanding of how I can use Selection with a solid understanding with a little help from my teacher
• I can show my teacher that I can use Selection with a solid understanding without their help.
• I can use Selection with a solid understanding independently and I can also explain it to others and can complete any extension tasks I am given.