Unit 4: Day 10
START DATE:DUE DATE:STATUS:Open
Tasks
This lesson has been designed with flexibility in mind. You can:
- Give catch up time
- Introduce concepts from the Theory Unit.
- Etc...
49.1 P5 Assign 2.4 Dice Game Assignment
- Instructions for this assignment can be found in the folder: 1.4 - Year 1: Programming Part 2
- Note, this can be quite a challenging assignment. You may want to walk them through the set up and/or create an easier version to differentiate for students of different levels.
- If you have not specifically discussed the concept of NESTED IF STATEMENTS before, you might want to have a discussion about it as it is required in this assignment.
- A nested IF statement is one that is inside another. For example:
if(today==="Friday"){
if(class === "Math"){
print("I have a test");
}
}
- In the code above, the IF statement regarding Math does not even get run unless today is Friday.
- In the Dice Game Assignment, the students will need to check for the W key to test for the winner. The outer IF statement checks for the W key. The nested/inner IF statement will check which player wins.
49.2 Tracing Code #2
- Instructions for this assignment can be found in the folder: 1.4 - Year 1: Programming Part 2
- This activity used Khan Academy to ensure students are used to reading code in the same format as the exam.
Continue to Unit 4: Day 11 »