Lesson 5

How random is random?

In this lesson, students will refine their app to ensure that it recommends a unique activity each time a button is clicked. They will examine how random decisions could result in an outcome that does not appear random. They then create a variable to track the previous activity that a user was recommended. Finally, students will use control structures including an if-else conditional and a loop to compare two values and set a new value if they are equal.

school
Grade 6
local_library
Subject Health
schedule
Length of lesson 50 minutes

Learning objective

Students will refine their app to respond to users’ needs.

Standards

National Health Education Standards

  • 2.8.3: Analyze how various influences affect the health and well-being of people and communities in different ways.
  • 5.8.2: Determine when health-related situations require the application of a thoughtful decision-making process.
  • 8.8.1: Analyze opportunities to advocate for the health and well-being of individuals, families, and communities.

CSTA Standards

  • 2-AP-10: Use flowcharts and/or pseudocode to address complex problems as algorithms
  • 2-AP-11: Create clearly named variables that represent different data types and perform operations on their values.
  • 2-AP-13: Decompose problems and subproblems into parts to facilitate the design, implementation, and review of programs
  • 2-CS-01: Recommend improvements to the design of computing devices, based on an analysis of how users interact with the devices.
  • 3-AP-14: Use lists to simplify solutions, generalizing computational problems instead of repeatedly using simple variables.

Multi-lesson projects

Lesson contents

Scratch projects

My anti-app

Student resource

Multi-lesson project

Students will use the same project across multiple lessons