Competency 07-2: Sifflet Conditional Expressions

Identifier: SiffCond

Prerequisites: SiffNum

Conditional (if) expressions in Sifflet

Learning Objectives

Students should be able to define and interpret Sifflet functions that use the if expression.

Lesson

Reading

Sifflet Tutorial Lesson 3

Lecture

Available in Oncourse Modules

Practice

Define and test a Sifflet function that classifies the age of a person as follows: if the person's age is 19 or less, the person is "young"; otherwise "old". The function should return the string "young" or "old".

Solution

Assessments

Lab 5