
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
Area of Trapezoids
Presentation
•
6th Grade
15 questions
Forces and motion
Presentation
•
6th Grade
15 questions
Creating Conflict
Presentation
•
6th Grade
15 questions
Four Empires
Presentation
•
6th Grade
15 questions
Fragments and Sentences
Presentation
•
6th Grade
15 questions
Hyperbole Lesson
Presentation
•
6th Grade
15 questions
Be Aware Take Care : Safety Features In Town
Presentation
•
6th Grade
15 questions
Area of Shapes
Presentation
•
6th Grade
Popular Resources on Wayground
20 questions
Math Review
Quiz
•
3rd Grade
15 questions
Fast food
Quiz
•
7th Grade
20 questions
Context Clues
Quiz
•
6th Grade
20 questions
Inferences
Quiz
•
4th Grade
19 questions
Classifying Quadrilaterals
Quiz
•
3rd Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
10 questions
Identify Fractions, Mixed Numbers & Improper Fractions
Quiz
•
3rd - 4th Grade
Discover more resources for Instructional Technology
20 questions
Context Clues
Quiz
•
6th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
10 questions
Candy
Quiz
•
4th - 8th Grade
10 questions
Fact Check Ice Breaker: Two truths and a lie
Quiz
•
5th - 12th Grade
22 questions
Dot Plots and Histograms
Quiz
•
6th Grade
10 questions
Memorial Day History and Traditions
Interactive video
•
5th - 8th Grade
15 questions
Histograms
Quiz
•
6th Grade
14 questions
Context Clues
Quiz
•
4th - 6th Grade