C3.1 Solve problems and create computational representations of mathematical situations by writing and executing code, including code that involves conditional statements and other control structures.

Activity 1: Conditional Statements in Everyday Life


Use unplugged coding using the "if, then, else" command.

If I come to a STOP sign while driving, then I stop, otherwise I continue driving.

If it's cold outside, then I wear a coat, if it's not, then I wear a sweater.

Discuss with students the various conditional statements.

Ask the student to write everyday situations that have the structure of "if, then, else" and then to write using pseudocode.

Activity 2: Financial Literacy and Conditional Statements


Communicate the following situation to students:

Aline would like to buy a television for her bedroom and her parents agree. However, she is responsible for raising the money for it.

Have students record the following information:

  • Aline's parents give her $100 as a start-up sum.
  • From Monday to Friday, Aline has chores to do at home and her parents give her $25 a week when she does them.
  • Aline helps her neighbor with outside work every weekend. Her neighbor gives her $20.
  • Aline has an online subscription to listen to the music. The fee is $10 per month.

Using the above information, write a code that calculates Aline's income and expenses over a period of time until she is able to purchase a tv for her bedroom.

Have students write the code in a program with which they are familiar.