Practice: Starting Programming

1) Read and understand the problem

2) Create the comment stating the problem.

3) Insert the Java boilerplate.

/** Program that ...
 * @author Cam Moore
 */
public class <ProgramName> {
  /** Does something.
   * @param args the command line arguments.
   */
  public static void main(String[] args) {
    // pseudo code
  }
}

4) Write the steps in pseudo code.

5) Refine the pseudo code.

Problem 1

Write a program that prints out “Java is great!”.

Problem 2

Write a program that prints out the following multiplication table:

  1 2 3
1 1 2 3
2 2 4 6
3 3 6 9