1. Chapter 3: Program Statements Presentation slides for Java Software Solutions for AP* Computer Science by John Lewis, William Loftus, and Cara Cocking Java Software Solutions is published by Addison-Wesley Presentation slides are copyright 2002 by John Lewis, William Loftus, and Cara Cocking. All rights reserved. Instructors using the textbook may use and modify these slides for pedagogical purposes. *AP is a registered trademark of The College Entrance Examination Board which was not involved in the production of, and does not endorse, this product.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12. Logic of an if statement condition evaluated false statement true
13.
14.
15. Logic of an if-else statement condition evaluated statement1 true false statement2
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
27.
28.
29.
30.
31.
32.
33.
34.
35.
36.
37. Logic of a while Loop statement true condition evaluated false
38.
39.
40.
41.
42.
43.
44.
45. Logic of a for loop statement true condition evaluated false increment initialization