

Y4 Unit 6 (Part 2)
Presentation
•
Computers
•
4th Grade
•
Practice Problem
•
Medium
Jolanda Edmond
Used 1+ times
FREE Resource
17 Slides • 6 Questions
1
Unit 6:
Be a Musician (Part 2)
By Jolanda Edmond
2
Learning objectives
to predict the outcome of algorithms that contain repetition.
to compare and contrast algorithms designed for the same task
to develop programs with iteration
3
Multiple Select
What are the two types of loop that we have learned?
Forever
If...then...
Repeat...until...
Repeat
4
Let's sing a song
Twinkle, twinkle, little star
Twinkle, twinkle, little star
Twinkle, twinkle, little star
5
Let's sing a song
Twinkle, twinkle, little star
Twinkle, twinkle, little star
Twinkle, twinkle, little star
Sing until I raise my hand to stop
6
Why did you stop singing at the second sentence?
Why did you stop singing after the third sentence?
Ask yourself
7
Why did you stop singing after the third sentence?
Ask yourself
Count control:
you asked to stop after we repeated the sentence three times
8
Why did you stop singing at the second sentence?
Ask yourself
A condition was met:
you raised your hand
9
What is iteration?
Iteration means repeating the same block of code over and over again multiple times.
Types:
1. Count-controlled loop - you learnt in Unit 4
2. Condition-controlled loop
10
Multiple Choice
What is iteration?
repeating the same block of code only one time
repeating the same block of code over and over again multiple times.
repeating the different block of code over and over again multiple times.
not repeating any block of code.
11
Multiple Select
What are the two types of iteration?
Forever loop
Repeat loop
Condition-controlled loop
Count-controlled loop
12
Condition-controlled loop:
repeat blocks of code until a condition is met
Count-controlled loop: repeat blocks of code a set number of times
Types of iteration
13
Multiple Choice
What is the main purpose of a count-controlled loop in programming?
To run code only when a condition is true.
To repeat blocks of code a set number of time.
To run code forever without stopping.
To check if user input is valid
14
Multiple Choice
What is the main purpose of a condition-controlled loop in programming?
To repeat blocks of code until a condition is met.
To store multiple values in a single variable.
To repeat blocks of code a set number of times.
To check syntax errors in a program.
15
Multiple Choice
What block do we use for condition-controlled loop?
16
Algorithm using iteration
17
Algorithm using iteration
18
Practise
19
Practise
20
Practise
21
Go further
When the 'w' key is pressed, the volume is set to 40% and Drums Tabla plays the Le Geh Tabla sound, the Hi Na Tabla, waits one second and then plays the Hi Tun Tabla sound.
The three sounds are then repeated with the volume increasing by 5 each time until the down arrow is pressed.
22
Go further
23
ITERATION
Unit 6:
Be a Musician (Part 2)
By Jolanda Edmond
Show answer
Auto Play
Slide 1 / 23
SLIDE
Similar Resources on Wayground
17 questions
Underground Railroad
Presentation
•
3rd - 5th Grade
17 questions
Excel Formulas and Functions
Presentation
•
5th - 6th Grade
19 questions
CHATGPT
Presentation
•
5th Grade
19 questions
Tin 4 Bài 12: soạn thảo văn bản
Presentation
•
5th Grade
18 questions
Module 3- Lesson 3.01 Nations in Control
Presentation
•
4th Grade
17 questions
Review Day 1
Presentation
•
4th Grade
15 questions
Understanding Paired Passages with POV
Presentation
•
4th Grade
14 questions
Reading Review Unit 1
Presentation
•
4th Grade
Popular Resources on Wayground
24 questions
PBIS-HGMS Day 10
Quiz
•
6th - 8th Grade
10 questions
HCS SCI 03 Summer School Review 3
Quiz
•
3rd Grade
11 questions
Home Scope
Quiz
•
7th - 8th Grade
15 questions
HCS SCI 05 Summer School Assessment 3 Review
Quiz
•
5th Grade
35 questions
Lufkin Road Middle School Student Handbook & Policies Assessment
Quiz
•
7th Grade
18 questions
Geo 11.3 Area of Circles and Sectors
Quiz
•
9th - 11th Grade