Unit 4.1 - Coding - Lesson-uiyyuyu-oii.pptx

kaizaemmanuel 0 views 12 slides Oct 08, 2025
Slide 1
Slide 1 of 12
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12

About This Presentation

hjh


Slide Content

Lesson 1: Design, Code, Test and Debug Computer Science

Aims To review coding vocabulary and knowledge. To create a simple computer program. Slide 2

Success Criteria Children can explore different object types in 2Code. Children can use a background and objects to create a scene . Slide 3

Vocabulary Have a go at the Coding Vocabulary Quiz . What can you remember? Slide 4

Vocabulary Overview Algorithm : a precise, step-by-step set of instructions used to solve a problem or achieve an objective . Code blocks : A way to write code using blocks which each have an object or an action Background : In 2Code the background is an image in the design that does not change . Object: Items in a program that can be given instructions to move or change in some way (action). In 2Code Gibbon, these include character, turtle, button, car, animal, food, shape, number, input and hotspot . Implement : When a design is turned into a program using cod ing . Slide 5

Cont.. Predict : Use your understanding of a situation to say what will happen in the future or will be a consequence of something . Run : This is what you do when you click the Run button in 2Code: The program runs . Attributes : These determine the look and size of an object. Each object has attributes such as the image, scale and position of the object.

Cont.. Event : An occurrence that causes a block of code to be run. The event could be the result of user action such as the user pressing a key ( when Key ) or clicking or swiping the screen ( when Clicked, when Swiped ). Debug\Debugging: Fixing code that has errors so that the code will run the way it was designed . Action : The way that objects change when programmed to do so. For example, move .

Free Code Gibbon Need more support? Contact us: Tel: +44(0)208 203 1781 | Email: [email protected] | Twitter: @2simplesoftware Open Free Code Gibbon . Add a plain background, this could be a colour or an image. Add button , car, animal and turtle objects . Double click on the animal to change the image. Click on the animal and look at the attributes table. Name the animal to reflect what you have changed the image into. Click on ‘See Code’ and notice the animal object shows as a code block with the name you’ve given it. Program the animal object to move when it is clicked on. Slide 8

Free Code Gibbon Need more support? Contact us: Tel: +44(0)208 203 1781 | Email: [email protected] | Twitter: @2simplesoftware Look at the attributes table for the animal object . Can you predict what would happen when we run the program if we set ‘allow off screen’ to ‘Yes’? Look at the attributes table for the button . Change the text on the button to ‘Car Go’ and the name of the button to CarButton (the button is one object so we name it as if it is one word, no spaces). Program the car object to move at a set speed when the button is clicked on. Slide 9

Free Code Gibbon Need more support? Contact us: Tel: +44(0)208 203 1781 | Email: [email protected] | Twitter: @2simplesoftware What happened to the car when you clicked on ‘Car Go’? Did it travel in the same direction as the animal? Look at the attributes table for the car object . What do we need to change to make the car travel in the same direction as the animal when it is clicked on? Change the angle, then run the program again to see what difference it made. Look at the attributes table for the turtle object . Add a click event to make the turtle object move. How is the turtle object different to the other objects? Slide 10

How did you get on? Take a look at some of the computer programs together. T his computer program is amazing! W hat fantastic coding! Slide 11

Lesson Vocabulary Overview Slide 12 Code blocks : A way to write code using blocks which each have an object or an action. Code blocks Attributes : These determine the look and size of an object. Each object has attributes such as the image, scale and position. Attributes Predict: Use your understanding of a situation to say what will happen in the future or will be a consequence of something. Run: This is what you do when you click the Play button in 2Code: The program runs . Run Implement: When a design is turned into a program using coding . Predict Implement Algorithm: a precise, step-by-step set of instructions used to solve a problem or achieve an objective. Algorithm Background: In 2Code the background is an image in the design that does not change. Background Event: An occurrence e.g. clicking an object, that causes a block of code to be run. Event Debug\Debugging: Fixing code that has errors so that the code will run the way it was designed. Debug\Debugging
Tags