TECHNOLOGEPH

A Computer Science Curriculum for Kids




Lesson 1: Nested Loops




Unplugged Activites


  1. Write a nested loop that prints out the following:

    • #
    • X
    • #
    • #
    • X
    • #
    • #
    • X
    • #
    • #
    • X
    • #
  2. Write a nested loop that prints out the following pyramid:

    • #
    • # #
    • # # #
    • # # # #
    • # # # # #
  3. Write a program that takes work work and prints true if no letter is repeated nand false if otherwise.

Plugged Activites


  1. Using variables like the time, whether you are hungry, and whether you have school to create a simulator of your everyday routine. The students should have at least two compound conditionals. For example if the time is less than 1000 (10:00) and hungry is true, print “time for breakfast”! Encourage the kids to get creative using integers, bools, and strings to represent states of the parts of their mornings.