Lesson 4.5 Conditionals explore
9/21 (A day) 9/22 (B day)
9/21 (A day) 9/22 (B day)
Code.org Assignment
Wrap Up -
Comparison operators: <, <=, >, >=, ==, !=
Boolean value: a data type that is either true or not true (false) that can be compared
Boolean Logical Operator: && - both must be true,
| |- either may be true
! NOT - gives the opposite of the given
Using Programming Patterns and a step-by-step approach students make their own version of a Photo Liker app. At the beginning of the lesson students are able to explore a working version of the app. They are then given the design elements of the app but begin with a blank screen. A progression of levels guides students on the high level steps they should use to develop their app but leaves it to them to decide how to write the code. At the end students submit their apps which can be assessed using a provided rubric.
This lesson is an opportunity for students to take on the "blank screen" and build the code that runs an app entirely from scratch. Guidance provided throughout the lesson helps students break down the large task of "building an app" into more incremental steps that they can use on future projects, including this unit's final project and the Create PT.
CSP Conceptual Framework
AAP-2 - The way statements are sequenced and combined in a program determines the computed result. Programs incorporate iteration and selection constructs to represent repetition and make decisions to handle varied input values.
CSTA K-12 Computer Science Standards (2017)
AP - Algorithms & Programming
2-AP-10 - Use flowcharts and/or pseudocode to address complex problems as algorithms.
3A-AP-15 - Justify the selection of specific control structures when tradeoffs involve implementation, readability, and program performance and explain the benefits and drawbacks of choices made.