Want to create interactive content? It’s easy in Genially!

Reuse this genially

Coding4Kids - EXAMPLE TEMPLATE

Chrysanthi Konstanti

Created on December 10, 2023

Start designing with a free template

Discover more than 1500 professional designs like these:

Transcript

Methods andProcedures

Start

Lesson Plan 7 - Introduction to methods and procedures

Overview

Lesson Objectives

Duration: 45 minutes

Understand the concept of methods and procedures in coding

Grade level/Age: 4th - 6th grade (9-12 years old)

Description: In this lesson, you will learn the fundamental methods and procedures used in coding. You will understand how important it is to follow a systematic approach to writing code and how to use methods and procedures to solve problems effectively. .

Identify the benefits of using methods and procedures in coding

Apply methods and procedures to solve coding problems

Initiation Activity

Development

Closing Activity

Methods in Coding

Procedures in Coding

Applying Methods and Procedures

Initiation Activity

Coding through everyday examples

Start

Initiation Activity

Think about your morning routine.

What steps do you follow to prepare for school?

reflect

Decoding Actions

transition actions

key step action

assisting action

An Assisting Action is like the smaller tasks or ingredients that help complete the main task. They support and make the key step action possible.

A Transition Action is like the steps between tasks or actions. It's the bridge that connects different stages or helps smoothly move from one action to another.

A Key Step Action is like the main task in a recipe. It's the essential action that makes everything work.

Initiation Activity// Test

Quiz

Start

Initiation Activity // Test

What is the Key Step Action in the morning routine?

Put toothpaste on the toothbrush.

Walk to the bathroom.

Get Dressed

Initiation Activity // Test

Which is an Assisting Action in the bathroom routine?

Pick a shirt and pants to wear

Use the toilet

Brush teeth

Initiation Activity // Test

Which is a Transision Action in the bathroom routine?

Brush teeth

Walk to the bedroom.

Wash Hands

Good job!!!

Continue

Initiation Activity

Development

Closing Activity

Methods in Coding

Procedures in Coding

Applying Methods and Procedures

1. Methods in Coding

Understanding methods using relatable analogies

Start

Methods in Coding

Methods are like recipes for coding tasks.

Work in pairs and create a simple "recipe" for one of the following daily tasks:

  1. brushing teeth
  2. making a sandwich

Methods in Coding // Reflection

How many did you find?

brushing teeth

making a sandwich

Initiation Activity

Development

Closing Activity

Methods in Coding

Procedures in Coding

Applying Methods and Procedures

2. Procedures in Coding

Understand procedures using a step-by-step approach

Start

Procedures in Coding // Group Discussion

Imagine putting on shoes before socks – it feels odd, right?

Discuss:

Why is it important of follow steps in a particular order?

How does the analogy of a daily task , such as getting dressed relate to coding procedures?

What challenges might arise if the order is not followed in coding?

Help Alex get dressed

Drag the images and drop them in the correct order

put on socks

put on shoes

put on underwear

step 2

step 1

step 3

put on clothes

take off pajamas

put on coat

step 4

step 6

step 5

check

Initiation Activity

Development

Closing Activity

Methods in Coding

Procedures in Coding

Applying Methods and Procedures

3. Applying Methods and Procedures

Practicing coding with Scratch

Start

Applying Methods and Procedures // Challenge approach

Hey Future Coders! πŸš€

We've got an exciting challenge for you! Are you ready for the adventure? Your Mission: Write a program on Scatch to make your computer draw a perfect square on the screen.

Remember

Challenge 1 // Drawing a Square

Gather your coding crew! You're working in teams of 3.

Head over to Scratch. Click on "Create" in the top menu.

Use "pen" and "move" blocks to code Scratch to draw a square. Discuss challenges faced due to disorganized code.

Think about how you draw a square. Discuss the steps with your team.

https://scratch.mit.edu/

Challenge 2 // Repeat for Efficiency

Imagine you have to draw lots of squares. How can you avoid long and confusing codes?

Go to "My Blocks" and create your own function named "draw square." Move your square-drawing code into this new function.

Test your "draw square" function by creating multiple squares.

Learn to use the "repeat" block to make your code more efficient.

Initiation Activity

Development

Closing Activity

Methods in Coding

Procedures in Coding

Applying Methods and Procedures

Closing Activity: Check whatyou know

Let's put our coding knowledge to the ultimate test

Start

Closing Activity // Test

What is a "method" in coding?

A secret code language

A computer bug

A recipe for coding tasks

Closing Activity // Test

Why is the order of steps important in coding procedures?

To ensure the computer doesn't get stuck

It makes the code longer

Because it looks neater

Closing Activity // Test

What does creating a "function" in coding allow you to do?

Make the code messier

Confuse the computer

Organize code into reusable blocks

Good job!!!

Continue

METHOD

Method

Flip Card

METHOD

A "method" in coding is like a magic recipe. It's a set of instructions that tells the computer how to perform a specific task. Just like following a recipe to bake cookies, we use methods to guide the computer in carrying out different actions. Methods make our code organized and efficient.

I knew it! Let's move foward

I didn't know... I will try again

PROCEDURE

Procedures

Flip Card

PROCEDURE

Think of "procedures" in coding as a well-choreographed dance routine. They are a series of steps or actions that we follow to accomplish a specific task. Just like dancers need precise steps, coding procedures guide the computer through a sequence of actions to get the job done. It's like teaching the computer a dance routine to perform

I knew it! Let's move foward

I dind't know... I will try again

You've done a

WONDERFUL JOB!

Move on to the next lesson.

Home

Did you know that coding also involves a series of steps to accomplish a task?

step 1

take off pajamas

step 2

put on underwear

step 3

put on clothes

step 4

put on socks

step 5

put on shoes

step 6

put on coat