Week 3 - Required Home Practice Problems

Complete Review Questions and Exercises on WHILE-loops in Chapter 4 and practice problems on while loops from Handout 5.


   Week 3 - in class examples


Loop practice - print string characters one per line

PrintStringOneCharPerLine.java

Solution to practice problem 3 from Handout 5.

Compute sum, average, product of a set of numbers


SumProductAve.java

This program demonstrates a counting loop used to determine the sum of numbers in a list of 10 numbers.

Min, Max computation.

MinMax.java
Compute the smallest and the largest of all numbers entered by the user:

Examples of conditional loops, solutions to practice from Handout 5 on Loops.

SimpleConditionalLoop.java
- readnumbers until an even number is entered
SimpleConditionalLoop2.java
readnumbers until a number between 0 and 9 is entered