Module: Control

Programming in the Small part 2.

Dates: Sat, Sep 11 - Sat, Sep 25

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.

Assessments

Q07: Algorithms

Outcome(s) assessed: Learn how to take a problem, figure out the algorithm to solve it, then write the code

Q08: Loops

Outcome(s) assessed: Learn how to take a problem, figure out the algorithm to solve it, then write the code, Understand how looping works in Java

H03: Simulate a pair of dice.

Outcome(s) assessed: Learn how to take a problem, figure out the algorithm to solve it, then write the code, Learn basics of programming with a modern programming language, Java, Learn how to produce robust programs in Java, Employ a good Java development environment

Q09: Branching

Outcome(s) assessed: Learn how to take a problem, figure out the algorithm to solve it, then write the code, Understand how branching works in Java

Q10: Exceptions

Outcome(s) assessed: Learn how to take a problem, figure out the algorithm to solve it, then write the code, Understand Java Exceptions

H04: Processing a file.

Outcome(s) assessed: Learn how to take a problem, figure out the algorithm to solve it, then write the code, Learn basics of programming with a modern programming language, Java, Learn how to produce robust programs in Java, Employ a good Java development environment