Skip Top Navigation Bar

Boolean Expressions and Relational Operators Lesson Plan

Overview

In this lesson, students will learn how to use ternary conditional operator instead of if statements in programs.

Learning Objectives

Skills

Student Outcomes

Students will be able to:

Duration: 1 class periods

Resources

Warm-up / Motivate

Think-Pair-Share:

Consider this question: How does the program make these comparisons?

Learn

Practice

You can have students submit the answers to the practice for a grade or review it as a group.

Wrap-up / Extension

Have students revisit the comparisons they wrote at the start of class. Have them create variables with sample values and write expressions to represent these comparisons.