
Selection and Iteration
Presentation
•
Instructional Technology
•
6th Grade
•
Practice Problem
•
Medium
ANDRES FELIPE GOMEZ-CASSERES ESPINOSA
Used 147+ times
FREE Resource
14 Slides • 6 Questions
1
Selection and Iteration
Tuesday, January the 11th, 2023
Made by Andrés Gomez
2
Agenda
Flowchart Recap (10 min)
Selection
Iteration
Activity Dfd
Selection and Iteration
3
Flowchart Recap
Go to the Virtual Classroom and Complete the Activity called "Flowchart Review". Call the teacher when you finish it.
Flowcharts
Selection and Iteration
4
Iteration, or looping, is the repetition of some instructions in an algorithm. It gives computers much of their power. They can repeat a sequence of steps as often as necessary.
Adapted from: https://www.britannica.com/technology/iteration-programming
Image: Link
Selection and Iteration
Iteration
5
Multiple Select
From the flowcharts presented, which ones use iteration?
Flowchart A
Flowchart B
Flowchart C
Flowchart D
6
Selection is a programming construct where a section of code is run only if a condition is met. In programming, there are occasions when a decision needs to be made. Selection is the process of making a decision. The result of the decision determines which path the program will take next.
Taken from: Link
Image: Link
Selection and Iteration
Selection
7
Multiple Select
From the flowcharts presented, which ones use selection?
Flowchart A
Flowchart B
Flowchart C
Flowchart D
8
Let's use Dfd
Dfd is a free program to create and evaluate flowcharts.
Now, we are going see how to make a flowchart in it.
Selection and Iteration
9
Check if you can identify what is each symbol and what does this flowchart do.
Selection and Iteration
Let's see an example...
10
Activity #1
Try to create a flowchart in Dfd that collects a number and if it is greater than 10, present it multiplied by 10. Otherwise, divide it by two and present the result.
11
Let's continue with iteration...
When you program with a high-level programming language, there are two important constructs through which you can use iteration.
They show us the relation between selection and iteration.
12
A While loop evaluates a condition and, if it is true, the statements are executed.
The condition is always evaluated at the beginning.
It is normally used when you don't know how many time you have to repeat the intructions.
Selection and Iteration
While loop
13
A For loop increments or decrements a variable through a range of values.
It is best used when you know how many times you have to repeat the intructions.
Selection and Iteration
For loop
14
Check if you can identify if there is a while or a for loop
Selection and Iteration
Let's see an example...
15
Let's check our understanding..
In the next questions, you will be asked whether a problem can be solve with For or While loops.
There is only one correct answer.
Let's start it!!
Some text here about the topic of discussion
16
Multiple Choice
A flowchart that sums up ten numbers.
Best solved with a WHILE loop
Best solved with a FOR loop
17
Multiple Choice
A flowchart that sums up the numbers between two numbers given by the user.
Best solved with a WHILE loop
Best solved with a FOR loop
18
Multiple Choice
A flowchart that multiplies ten numbers given by the user.
Best solved with a WHILE loop
Best solved with a FOR loop
19
Multiple Choice
A robot that moves forward until it detects an obstacle.
Best solved with a WHILE loop
Best solved with a FOR loop
20
Create a flowchart that requires a number from the user and multiplies it by two and presents it to the user every iteration.
Activity #1
Selection and Iteration
Tuesday, January the 11th, 2023
Made by Andrés Gomez
Show answer
Auto Play
Slide 1 / 20
SLIDE
Similar Resources on Wayground
15 questions
PERCENT WORD PROBLEMS
Lesson
•
6th Grade
14 questions
Allusions and Analogies
Lesson
•
6th Grade
16 questions
6th Grade Unit 3 Algebraic Expressions and Properties
Lesson
•
6th Grade
14 questions
Scratch Coding Introduction Lessons
Lesson
•
6th Grade
15 questions
Populations
Lesson
•
6th Grade
15 questions
Review Percentages 11/2
Lesson
•
6th Grade
15 questions
Poetry Review
Lesson
•
6th Grade
15 questions
Homonyms and Homophones
Lesson
•
6th Grade
Popular Resources on Wayground
10 questions
5.P.1.3 Distance/Time Graphs
Quiz
•
5th Grade
10 questions
Fire Drill
Quiz
•
2nd - 5th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
15 questions
Hargrett House Quiz: Community & Service
Quiz
•
5th Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
20 questions
Inferences
Quiz
•
4th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
Discover more resources for Instructional Technology
20 questions
Context Clues
Quiz
•
6th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
23 questions
Conflict Resolution
Lesson
•
6th - 8th Grade
10 questions
SMS Library Quiz
Quiz
•
6th - 8th Grade
10 questions
Cell Organelles and Their Functions
Interactive video
•
6th - 10th Grade
12 questions
6th Grade Advisory Challenge for March
Quiz
•
6th Grade
20 questions
Box and Whisker Plots
Quiz
•
6th Grade
20 questions
Graphing Inequalities on a Number Line
Quiz
•
6th - 9th Grade