Lesson 2: Conditionals
and Logic
Complete the following problems on "Java If Statements and Logical Operators 01" on CodeHS (Pages 18 to 23 in Textbook Below)
-01 Swimming (Page 19)
-02 Swimming Temperature (Page 20)
-03 Driver's License (Page 20)
-04 Letter Grade (Page 21)
-05 Swimming Temperature Range (Page 21)
-06 Rent a Car (Page 22)
-07 Play Tennis (Page 22)
-08 Sleep In (Page 23)
-09 Youtube Success (Page 23)
Complete the following problems on "Java If Statements and Logical Operators 02" on CodeHS: (Pages 24 to 34 in Textbook Below)
-Small or Big (Page 24)
-Positive, Negative, or Zero (Page 25)
-Find the Max (Page 26)
-Are These Numbers Equal (Page 27)
-Increasing, Decreasing, or Neither (Page 28)
-Solid, Liquid, Gas (Page 29)
-Driver's License (Page 30)
-Speeding Ticket (Page 31-32)
-Rounding Algorithm (Page 33)
-Even or Odd (Page 34)
Resources:
Presentation on Conditionals and Logic
Presentation on Datatypes, User Input, and Printing
Video 07a Work Together with Conditionals and Logical Operators 01 (Below)
Video 07b Work Through Scenarios 01 to 04 (Below)
Video 07c Java If Statements and Logical Operators Exercise 02 (Below)