Chapter 3
Program Statements (p.121)

Chapter Objectives

* Discuss basic program development steps.
* Define the flow of control through a program.
* Learn to use if statements.
* Define expressions that let us make complex decisions.
* Learn to use while and for statements.
* Use conditionals and loops to draw graphics.
Day 1
Program development If statemen else statement
PowerPoint
Wages.java
MinOfThree.java


HW
Reading: Pgs 127-135
Do project 3.2 on page 183.
Day 3
Booleans and truth tables
PowerPoint

read page 135-137
Do Lab project 3.2 on page 183.

HW
Reading: Pgs 138-147.
Self Review:p176 multiple choice 3.1 and 3.2 Also short answer p181-3.5
Day 4
While loops -increment
PowerPoint

HW (OLD)
Reading: Pgs.147-157
short answer p181-3.7 and p182 -3.12Type in and run Counter on page 143-(Bring in code)

HW
Reading: 157- to end of chapter.
programming project 3.13 on page 185, Do part a only.

run the programs below try to figure out how they work

WinPercentage.java p147
PalindromeTester.java
p151

Day 5 11/03
Nested loops - stringTokenizer-for statement
PowerPoint

CountWords.java
Counter.java

Counter2.java

LAB p183 -3.8

HW
Reading: Pgs.
Self Review:

Day 7..
LAB

PowerPoint
Multiples.java

lab p184 3.11HI-LO

HW
Reading: Pgs.
Self Review:

Day 8..
Lab+ Program development-Applets



lab p184 3.11HI-LO

HW
Bullseye.java

Day9
Program development-Applets
ExamGrades.java


Bumper cars intro
HW

Reading: Pgs.
Self Review:

Day 10 11/23
Graphics

Mini lab -faces

Boxes.java

HW
Reading: Pgs.
Self Review:

int max, number;
System.out.print ("Enter an integer: ");
max = Keyboard.readInt();
for (int count = 2; count <= 10; count++)
{
System.out.print ("Enter another integer: ");
number = Keyboard.readInt();
if (number > max)
max = number;
}
System.out.println ("The highest value is :" + max);