Ms. Buff's Technology Class
  • Wolfie Links
  • KIndergarten
    • Lesson 22- Helpers and Heroes
    • Lesson 21- Community Helpers & Valentine's Day
    • Lesson 20- Community Helpers
    • Lesson 19- Community Helpers
    • Lesson 18- Winter Fun
    • Lesson 17- Winter Animals
    • Lesson 15- Winter Weather
    • Lesson 14- Holiday
    • Lesson 13- Holiday
    • Lesson 12- Five Senses
    • Lesson 11- Thanksgiving
    • Lesson 10- Animals in Fall
  • 1st Grade
    • Lesson 22- Helpers and Heroes
    • Lesson 21- Community Helpers & Valentine's Day
    • Lesson 20- Chinese New Year
    • Lesson 19- Community Helpers
    • Lesson 18- Winter Fun
    • Lesson 17: Planets
    • 1st Semester >
      • Lesson 16- Winter Weather
      • Lesson 15- Holiday & Typing
      • Lesson 14- Holiday
      • Lesson 13- Holiday
      • Lesson 12- Five Senses
      • Lesson 11- Thanksgiving
      • Lesson 10- Animals in Fall
      • Lesson 8: Fall >
        • Lesson 7: Constellations
  • 2nd Grade
    • Lesson 21: Sound
    • Lesson 19: Sound
    • Lesson 14- Holiday
    • Lesson 5: Properties of Matter
    • Lesson 6- What is Matter?
    • Lesson 7- Changes in Matter
  • 3rd Grade
    • Lesson 20- 21 Building Bridges
    • Lesson 17-18 Forces and Motion
    • Lesson 16: Gravity
    • Lesson 13- Computer Programming
    • Creating an Avatar
  • 4th Grade
    • Lesson 21: Nutrition
    • Lesson 18-20: Nutrition
    • Lesson 17: Static Electricity
    • Lesson 16: Electric Circuits
    • Lesson 13- Computer Programming
    • Creating an Avatar
    • Powtoons: 4th Grade
  • 5th Grade
    • Lesson 21: Forces & Motion : Bridges
    • Lesson 19-20: Coasters
    • Lesson 17-18: Forces and Motion
    • Lesson 15-16: Gravity and Forces
    • Lesson 13- Computer Programming
    • Powtoons: 5th Grade
    • Creating an Avatar
  • AU
    • Lesson 22- Helpers and Heroes
    • Lesson 21- Community Helpers & Valentine's Day
    • Lesson 20- Community Helpers
    • Quarter 2 >
      • Winter >
        • Lesson 19- Winter & Matter
        • Lesson 18- Winter Fun
        • Lesson 17- Winter Animals
        • Lesson 16- Winter
      • Holiday & 5 Senses >
        • Lesson 15- Holiday & Typing
        • Lesson 14- Holiday
        • Lesson 13- Holiday
        • Lesson 12- Five Senses
        • Lesson 11- Thanksgiving
    • Quarter 1 >
      • Fall >
        • Lesson 10- Animals in Fall
        • Lesson 9- Apples
        • Lesson 8: Fall
      • Farms >
        • Lesson 7: Farm Animals
        • Lesson 6: Farm Equipment
      • Transportaion >
        • Lesson 6: Water Transportation
        • Lesson 5: Air Transportation
        • Lesson 4: Water Transportation
        • Lesson 3: Land Transportation
        • Back to School >
          • Lesson 2: School Drills
          • Lesson 1: Back to School

Focus Area: Byte Into Science
5th Grade 
Day 14-15 Loops


1. Vocabulary:
  1. Loop:  Part of a program that executes multiple times as long as its condition is true.

2. Lesson: 

​
1. Watch Loops video safeshare.tv/w/miVAZKzToqU

2. Create a forever loop, a while loop (repeat until) and repeat # of times.




Show the Sorcerer’s Apprentice  https://www.youtube.com/watch?v=Ait_Fs6UQhQ   Play 26:00-28:00, skip to 29:10- 30:00


This is an example of a loop. The broom only does what he told it to (fill up the bin). What type of loop is this? What type of loop would be best suited to this activity?

2. https://scratch.mit.edu/projects/80311662/

Open example of the wizard and the loop. The broom never stops.

Show simple examples of each type of loop.
  • Infinite (Forever)
  • Repeat Until Answer = [something]
  • Repeat Number of Times

Brainstorm what types of programs these would be good for

Point out that the repeat until doesn’t have to be an ask statement.

3. Activity:

Go to  https://scratch.mit.edu/  
Username: lunch number
Password: lunch number with initials at end

PAIR UP, go back to computers and make loop program from Fantasia Broom located on Scratch under ByteintoCS account
Click on 'See Inside' then click 'Remix' to save under your account



  • Make a program to “correctly” do what Mickey wanted.


  • It must show the following:

    • Broom moved from well to cistern.

    • Once at cistern, it asks, “Am I done”

    • When user types “yes”, it is done.


4. Wrap-Up:

  • What did you learn in today's lesson?




5. Extension: 

Create their own programs using the three loops we studied in one program.
  • It has to have three different sprites on the screen at the same time.
  • The program uses each of the three loops. One must be a Repeat Until that isn’t an ask statement. For example: Loop stops when sprites touch.
Powered by Create your own unique website with customizable templates.