Wiki Page, AP CSP: Module 9 More complex control of execution (compound Boolean expressions and nested if/elses)

Wiki Page
2016-07-21T11:18:37-06:00

Module 9 is continuing to learn about conditional behaviors at decision points in computer programs (e.g. “I will do this, but only if a particular condition holds”) by using If-else statements (green blocks or tiles).

In this case, you will learn to tell the computer to execute or run some code based on a combination of checks of state in the world -- compound Boolean expressions; compound expressions are made up of more than one part.

We will learn two different ways that we can handle complex conditions under which we want to execute code -- using compound Boolean expressions and by "nesting" if/else statements (or putting one inside the other).

Things you will learn in this module:

1. We can create programs where execution is controlled (using if/else statements) by complex sets of conditions.

2. One way we can express these complex conditions is by combining with the Boolean operator andand the Boolean operator or.

3. Another way we can express complex conditions is by using multiple if/else statements -- sometimes one after another and sometimes with one "nested" inside part of another.

Assignments, Quizzes, Labs and Problems to be Completed

You will complete the assignments, quizzes, labs and programming problems for Module 8 using mathematical functions and expressions.

Module 9 Questions Assignment

Mod 9 Alice World Submission: LastNameFirstInitial-M9-Magnets-pg2-Compound.a2w

Mod 9 Alice World Submission: LastNameFirstInitial-M9-Magnets-pg3-Nested.a2w

Mod 9 Alice World Submission: LastNameFirstInitial-M9-DropShip-pg4-Compound.a2w

Mod 9 Alice World Submission:LastNameFirstInitial-M9-DropShip-pg5-Nested.a2w

Module 9 Clicker Quiz.

Module 9 Clicker Participation Discussion Questions.

Lab 9 Alice World Submission

Lab 9 Answers to Questions.

Remember, grammar and punctuation counts!

We will be learning a lot of new things this week. Keep track of the assignments and the time you need to complete them!