U3Ch1L6_Functions Top Down Design

Purpose: Students will improve the code they have previously written by incorporating Top Down Design.

Vocabulary: Top Down Design, Efficient, Abstraction, Function,
Def. “Top Down Design”: A problem solving approach in which you repeatedly divide a system into simpler subsystems.

 Journal: First, define efficiency. Second, imagine that you wrote two programs to draw the diamond shape (last class). One relies on functions and the other relies purely on commands. Which is more efficient? Create an argument as to why one is more “Efficient” than the other.

Activity: Top Down Design
Handout: “Top Down Design” - Crosses! (partners)

    1. Write a solution on handout.
    2. Present to class.
      1. Do any of you see that a fellow classmates design is more “Efficient”?

Log on to Code.org Lesson #2 of U3Ch1L6
Enter the “Top Down Design” code you just wrote to create the shape.

Handout: “Top Down Design” -3x3 Shape.

  1. Design a more efficient code using functions.
  2. Write it on the Handout

Log on to Code.org_Lesson#3 of U3Ch1L6

Journal: Abstraction

  1. Define “Abstraction.”
    Making something complex...Simple!
  2. How is the use of a Function an example of Abstraction?