Variables, Conditionals, and Functions - Lesson 13: Project- Decision Maker App Part 2

Overview

Students translate the plans they documented in Part 1 of the Practice PT to a working program in through a series of steps.

Goals

Students will be able to:

  • See rubric (Refer to Unit4 Lesson12 or supplemental document) for guidance in measuring student learning

Purpose

The Practice PT gives students the opportunity to design and program an app from scratch. Welcome to The Decision Maker App! Students demonstrate mastery of variables, conditionals, and functions by combining these elements into a useful program designed to solve the problem of making a decision.

Resources

Supplemental Code.org material

For the students

Getting Started (2 minutes)

Teaching Tip

Short Intro: The Warm Up today is short and light. Students should spend the maximum amount of time working on their projects.

Remarks

  • Today we are continuing work on the Decision Maker App. You will follow a series of steps while constructing your app.

Activity (43 minutes)

Teaching Tip

Supporting students in Practice PT Lessons

At this point in the project attention shifts to Quorum Studio where students design and program their app. Continue to circulate the room and check in with students as needed to make sure instructions are clear and students understand expectations.

What should you expect?

  • Planning Guides out on desks or tables so students can reference them while setting up their apps
  • A healthy buzz in the classroom as students collaboratively debug
  • There may be some student confusion on the steps to take in building their app. Direct students back to the instructions, and make sure they haven't skipped any of the steps.

Do This: Students now transition to Quorum Studio where they will build their app. Students should use the Unit_Project_Template project to build their apps.

Display: Share the steps for today with students.

Step 1: Design the App

  • Students create the screens they designed in Step 6 in the Planning Guide.

Step 2: Create the Variables

  • Using the list of variables from Step 4 in the Planning Guide students create their variables.

Step 3: Create the Function

  • This is most likely the trickiest step.
  • Students create an UpdateScreen function with a conditional statement
  • Students should reference the flowchart in Step 5 of the Planning Guide to help craft the Boolean expression(s) for the conditional statement.
  • A comment is added to explain what it does (purpose) and how it does that (functionality)

Step 4: Handle Events

  • Students should add code to the event handling actions to update the appropriate variables and add a call to the UpdateScreen function.
  • Students don't need to add code to all of the event handling actions, only the ones they need for their app.

Wrap Up (0 minutes)

No wrap up today. All time should be spent on the project.

Standards Alignment

  • CSTA K-12 Computer Science Standards (2017): 2-AP-10, 2-AP-11, 3A-AP-16, 3B-AP-14

Next Tutorial

In the next tutorial, we will discuss CSP Unit 4 Lesson 14 Project - Decision Maker App Part 2, which describes Unit Project Day 3.