Topic 5 - If Statements

This section will cover how to use if statements to run different blocks of code depending on the state of various conditions.  This allows our programs to make basic decisions that can change their behavior.

Topic 5 - If Statements

What To Do?

1 - Complete the tutorial Topic 5.1 - Basic If Statements, including programming tasks.  There is a link to solutions with the tutorial.

2 - Complete the tutorial Topic 5.2 - If and Else Statements, including programming tasks.  There is a link to solutions with the tutorial.

3 - Complete the tutorial Topic 5.3 - Multiple Conditions, including programming tasks.  There is a link to solutions with the tutorial.

4 - Complete and hand in Topic 5 - If Statements Programming Assignments.

5 - Complete the Topic 5 - If Statement Worksheet.  There are solutions for you to check your answers.

For more information of If statements, here is a good website:

https://www.w3schools.com/cs/cs_conditions.asp


What to Hand In?

1 - Submit the Program.cs file from Topic 5 - If Statement Programming Assignments.

Topic 5 - Programming Assignments

Topic 5 - If Statement Programming Assignments.pdf

Files