3.8. Map Tour Tutorial

This lesson introduces Lists as a data abstraction using the new Map component in App Inventor to build a tour of destinations.

CSP Framework
Big Idea 3: Algorithms and Programming (AAP)
Enduring Understanding AAP-1: To find specific solutions to generalizable problems, programmers represent and organize data in multiple ways.
Learning Objective AAP-1.A: Represent a value with a variable.
Learning Objective AAP-1.C: Represent a list or string using a variable.
Learning Objective AAP-1.D.a: For data abstraction: a. Develop data abstraction using lists to store multiple elements.
Learning Objective AAP-1.D.b: For data abstraction: b. Explain how the use of data abstraction manages complexity in program code.
Enduring Understanding AAP-2: The way statements are sequenced and combined in a program determines the computed result. Programs incorporate iteration and selection constructs to represent repetition and make decisions to handle varied input values.
Learning Objective AAP-2.D: Evaluate expressions that manipulate strings.
Learning Objective AAP-2.N.a: For list operations: a. Write expressions that use list indexing and list procedures.
Learning Objective AAP-2.N.b: For list operations: b. Evaluate expressions that use list indexing and list procedures.
Enduring Understanding AAP-3: Programmers break down problems into smaller and more manageable pieces. By creating procedures and leveraging parameters, programmers generalize processes that can be reused. Procedures allow programmers to draw upon existing code that has already been tested, allowing them to write programs more quickly and with more confidence.
Learning Objective AAP-3.D: Select appropriate libraries or existing code segments to use in creating new programs.

Professional Development

The Student Lesson: Complete the activities for Mobile CSP Unit 3, Lesson 3.8: Map Tour Tutorial.

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. 
  • Map Tour Tutorial (video or handout)

3.8.1. Learning Activities

Estimated Length: 45 minutes

  • Hook/Motivation (5 minutes): Variables are simple data abstractions. What if we could save more than one item under one variable? For example a list of destinations. How would you know which destination to pull out of memory? (students should be led to numbering items on the list).
    For APIs, go to Wikipedia and search for something. How did the URL change? Can you switch to a different page by just changing the URL? How might Can the app use these URLs?
  • Experiences and Explorations (30 minutes):
    • Walk-through (15 minutes): Lead the students through the Map Tour Tutorial using the video or the text tutorial or the short handout.
    • Lists Go through the lesson write up about lists introducing the new vocabulary, the new blocks, and the corresponding AP pseudocode.
  • Rethink, Reflect and/or Revise (10 minutes): Ask the students do some or all of the enhancements. Students should write a reflection in their portfolio (this may be assigned for homework) and try the interactive exercises. There are also other possible enrichment activities, including a tutorial called Map A Run, in the Enrichment section below.

3.8.2. Professional Development Reflection

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

  • How does this lesson help students toward the enduring understanding that programmers represent and organize data in multiple ways.
    [AAP-1]
    ?

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