5.2. Logo Part 2

This lesson introduces the concept of parameters as a means of creating procedures that can be more easily reused in a program. Students use an updated version of the Logo app that includes parameters for the forward and turn procedures to change the size of the angles allowing the creation of more complex shapes.

Professional Development

The Student Lesson: Complete the activities for Complete the activities for Mobile CSP Unit 5: Lesson 5.2 Logo Part 2.

Materials

  • Presentation system (LCD projector/Interactive whiteboard)
  • Access to computer, laptop, or Chromebook (install the Companion app on Chromebooks)
  • Access to mobile device with the Companion app installed or access to the emulator installed on the computer or laptop. 
  • Logo Part 2 Tutorial (video or handout)
  • Graphing paper - You can print graph paper from www.printablepaper.net

5.2.1. Learning Activities

Estimated Length: 45 minutes

  • Hook/Motivation (5 minutes): Discuss the Logo Part 1 tutorial and its limitations. First ask the students to summarize what the program did. Then ask the students what they think might make the program better. Hopefully students were frustrated by the weakness of the forward and move commands in the previous lesson and will be receptive to introducing parameters into the forward(N) and turn(D) procedures.

    Another possible hook is to go through the song This Old Man and have students point out the repeated lines and then create parameterized procedure calls for each verse like verse("one","thumb"), verse("Two","shoe"), etc. to introduce procedural abstraction with parameters.

  • Experiences and Exploration (30 minutes):
    • Parameters Introduction (15 minutes): Introduce the concept of parameters for the forward and turn procedures. On the board, develop new algorithms for different sized squares or have the students rewrite their drawFace procedure from the previous lesson using the more powerful set of procedures. Discuss how parameters make the procedures more general (more abstract) and why this is useful. Discuss how the students have begun to evaluate the Logo 1 algorithms for efficiency. As they will see, there are more efficient ways to write algorithms and they should check that the algorithms they will write for the Logo 2 lesson are efficient and clear.
    • Programming (20 minutes): Have the students open the Logo Part 2 (with parameters) tutorial and have them complete the exercises on their own. You may need to go over angles. The shapes are drawn using exterior angles where 360/number of sides. So for a triangle, it's 360/3 sides = 120 degree turns. See solution file below under Assessments.
  • Rethink, Reflect, and Revise (10 minutes): Review the lessons learned about algorithms and procedural abstraction. Have students post a reflection on their portfolio and complete the interactive exercises. One of the main lessons should be that our abstractions — i.e., the particular set of procedures we use — have an enormous impact on our algorithms. Procedural abstraction makes it easier an algorithm by raising the level of abstraction. To illustrate this, ask them to think about what the algorithm for a face would if we had to describe it completely in terms of just forward and turn rather than in terms of square, triangle, and circle.

AP Classroom

The College Board's AP Classroom provides a question bank and Topic Questions. You may create a formative assessment quiz in AP Classroom, assign the quiz (a set of questions), and then review the results in class to identify and address any student misunderstandings.The following are suggested topic questions that you could assign once students have completed this lesson.

Suggested Topic Questions:

  • Topic 3.9 Developing Algorithms
  • Topic 3.12 Calling Procedures
  • Topic 3.13 Developing Procedures

Assessment Opportunities and Solutions

Solutions Note: Solutions are only available to verified educators who have joined the Teaching Mobile CSP Google group/forum in Unit 1.

Assessment Opportunities

You can examine students’ work on the interactive exercise and their reflection portfolio entries to assess their progress on the following learning objectives. If students are able to do what is listed there, they are ready to move on to the next lesson.

  • Interactive Exercises:
  • Portfolio Reflections:
    LO X.X.X - Students should be able to ...
  • In the XXX App, look for:

Differentiation: More Practice

If students are struggling with lesson concepts, have them review the following resources:

Background Knowledge:

Teaching Tips: Meaningful Parameter Names

This lesson is a good time to reinforce the use of meaningful names for variables, including parameters. Students should avoid the use of ambiguous letters (such as x or y) as parameter names and choose something that is easily recognizable and understandable - and indicates the kind of data that it represents. One clue for students is that if they are using good names, their block will read out aloud like sentences in English.

5.2.2. Professional Development Reflection

Discuss the following questions with other teachers in your professional development program.

    I am confident I can teach this lesson to my students.
  • 1. Strongly Agree
  • 2. Agree
  • 3. Neutral
  • 4. Disagree
  • 5. Strongly Disagree