Tuesday, January 15, 2019

Grade 5 Codes - Lesson 2

Lesson 2:The Maze (using conditionals)

What is a condition?

Conditions (conditional expressions) are the second of three basic flow control structures in programming. Like sequence, conditions influence a computer program’s decision-making process.

“If, then” Statements

Also known as “if, then” logic statements, conditions enable a computer program to act differently each time it is executed; depending on if an input is evaluated to be either true or false.
In a programming language, conditions are classic “if, then” logic statements and possess both a hypothesis and conclusion.

How can Rock, Scisssors and Paper teach us about conditionals?

We used the conditional lessons in The Maze game below to understand more about those commands.

No comments: