Module: Control

Programming in the Small part 2.

Dates: Sat, Jan 27 - Sat, Feb 10

Learning Outcomes

Learn how to take a problem, figure out the algorithm to solve it, then write the code

The student will:

Understand how looping works in Java

The student will:

Understand how branching works in Java

The student will:

Understand Java Exceptions

The student will:

Readings

Text: Ch. 3.1 - 3.2, Control

Blocks, Loops and Branches

SC: Ch. 3.1 - 3.2

Blocks, Loops, and Branches

Text: Ch. 3.3 - 3.4, Control

Loops

SC: Ch. 3.3 - 3.4

Loops

Text: Ch. 3.5 - 3.6, Control

Branches

SC: Ch. 3.5 - 3.6

Branches

Text: Ch. 3.7 - 3.9, Control

Exceptions, Arrays, GUI Programming

SC: Ch. 3.7 - 3.9

Exceptions, Arrays, GUI Programming

Experiential Learning

Practice Looping and Branching

Writing simple while loops with if statements.

Practice: More Loops

Programming with loops

H03: Simulate a pair of six sided dice.

Write a program that answers the question how many times must you roll the dice?

Practice: Branching

Practice: Exceptions

Working with exceptions

H04: Processing a file.

Write a program to process a text file.