Loading...
Evaluating a program
Key Stage 2
Year 5
Computing
We are evaluating this scratch project. So this is a quiz programme. This is the solar system quiz. And evaluating is checking how well a programme works for all users. In a programme, it's important to make sure your users know how to input the correct answer. So we need to make sure this programme is giving the user instructions on how to play, and we need to make sure that all of our code is working. Now we've got one single sprite in this project. We've got two code sequences we're gonna be looking at today. I want to zoom in and show you the smaller code sequence. This is the setup code. Now, setup code is really important. It is a group of commands that put things back to how they should be at the start of your programme. That way the next user will get the full experience of enjoying your quiz. So you can see here that when I press the green flag in my project, this code will run. Now this is going to be resetting a number of things. We've got a backdrop being reset, costume, any colour effects, any positioning. So these are go-to coordinates and this will place the sprite right back to where it is right now. We've got a point in direction as well which will set the angle that the sprite is facing, and we've got a size one too. So all of these will run when I press the green flag. You won't see anything happening now because the sprite is already at the starting position. So the best way to test that reset code is to actually look at the quiz code and run through it and check that it is also working. Okay, looking at this quiz code, when I press the sprite, this code will run and you can see it's running because of the yellow outline around the code blocks here. So the best way to do a proper test of your code is to look through and test as many elements as possible. So this will mean doing this more than once, running through your answers, and doing the correct or the incorrect answer each time to make sure that you've seen every effect and check that everything that you put in your programme is working the way you want it. So for this first question, True or False? Jupiter is the largest planet. I want to do a false answer so that I can check this colour effect is working. So I'm going to say false. We can see there that the colour has changed, so that colour effect is working. And that also means later when I go to my reset code, I can check that this set colour to zero will work too. Let's go down and look at the next question. This time we've got a sound effect, and, in fact, we've got two sound effects here. For the true answer and the false answer, there will be two different sound effects. So let's test them out. I'm going to try and get the first one to trigger, which I will need to press false on. Let's see if this works. (space flyby sound) And there we go. We know that the space flyby sound is working. Let's see what we can trigger next. So for this question, is mercury the hottest planet in the solar system? We've got a rotation if it is correct and a glide if it's incorrect. Let's go with the glide. So I'm going to do a no here to see if I can trigger the glide. That's great, working correctly. And then the last one, we have got a backdrop switch. So whether you get it true or false, the backdrop should switch out. There we go. And the quiz is all finished. You can see that code has stopped running now. Let's come back up here to the reset code. So this reset code is going to affect a number of things. And I'm going to press the green flag here and check that everything resets correctly. There we go. You might notice that the earth is back to the original colour and the backdrop has changed. So you will need to go through your quiz a few more times testing to see that every part of your reset code is working correctly. You need to make sure that your programme always starts in the same way. So test your programme three times, and then once it's all done, you can share your project with someone else and let them play your quiz too.
Evaluating a program
Key Stage 2
Year 5
Computing
We are evaluating this scratch project. So this is a quiz programme. This is the solar system quiz. And evaluating is checking how well a programme works for all users. In a programme, it's important to make sure your users know how to input the correct answer. So we need to make sure this programme is giving the user instructions on how to play, and we need to make sure that all of our code is working. Now we've got one single sprite in this project. We've got two code sequences we're gonna be looking at today. I want to zoom in and show you the smaller code sequence. This is the setup code. Now, setup code is really important. It is a group of commands that put things back to how they should be at the start of your programme. That way the next user will get the full experience of enjoying your quiz. So you can see here that when I press the green flag in my project, this code will run. Now this is going to be resetting a number of things. We've got a backdrop being reset, costume, any colour effects, any positioning. So these are go-to coordinates and this will place the sprite right back to where it is right now. We've got a point in direction as well which will set the angle that the sprite is facing, and we've got a size one too. So all of these will run when I press the green flag. You won't see anything happening now because the sprite is already at the starting position. So the best way to test that reset code is to actually look at the quiz code and run through it and check that it is also working. Okay, looking at this quiz code, when I press the sprite, this code will run and you can see it's running because of the yellow outline around the code blocks here. So the best way to do a proper test of your code is to look through and test as many elements as possible. So this will mean doing this more than once, running through your answers, and doing the correct or the incorrect answer each time to make sure that you've seen every effect and check that everything that you put in your programme is working the way you want it. So for this first question, True or False? Jupiter is the largest planet. I want to do a false answer so that I can check this colour effect is working. So I'm going to say false. We can see there that the colour has changed, so that colour effect is working. And that also means later when I go to my reset code, I can check that this set colour to zero will work too. Let's go down and look at the next question. This time we've got a sound effect, and, in fact, we've got two sound effects here. For the true answer and the false answer, there will be two different sound effects. So let's test them out. I'm going to try and get the first one to trigger, which I will need to press false on. Let's see if this works. (space flyby sound) And there we go. We know that the space flyby sound is working. Let's see what we can trigger next. So for this question, is mercury the hottest planet in the solar system? We've got a rotation if it is correct and a glide if it's incorrect. Let's go with the glide. So I'm going to do a no here to see if I can trigger the glide. That's great, working correctly. And then the last one, we have got a backdrop switch. So whether you get it true or false, the backdrop should switch out. There we go. And the quiz is all finished. You can see that code has stopped running now. Let's come back up here to the reset code. So this reset code is going to affect a number of things. And I'm going to press the green flag here and check that everything resets correctly. There we go. You might notice that the earth is back to the original colour and the backdrop has changed. So you will need to go through your quiz a few more times testing to see that every part of your reset code is working correctly. You need to make sure that your programme always starts in the same way. So test your programme three times, and then once it's all done, you can share your project with someone else and let them play your quiz too.