Programming Assignment 5
CS 12300-02 (TR)
Programming I: Java
Fall, 2019

This assignment is due Tuesday, October 15.

This assignment makes use of the files contained in this zip file. This assignment is based on Section 3.1 from the textbook.

In the zip file there is an incomplete program called Hw5.java. You are to complete this program according to the instructions below. When you have correctly completed the file Hw5.java, the program Test_Hw5.java should compile and run. Your output from running Test_Hw5.java should look exactly like the contents of the file Test_Hw5_output.txt from the zip file.

In Hw5.java you need to write the definitions of four methods, drawSquare, drawBox, drawTextSteps, and drawBigZ. For each method, you need to write a method declaration, with appropriately typed and named formal parameters, and a method body. From the file Test_Hw5.java you can see how each method is called. That gives you information about each method's parameters. From the file Test_Hw5_output.txt you can see the output each method call is supposed to produce. That gives you information about each method's body.

In the file Hw5.java there is a method, repeat(char c, int n), already written for you. You should use this method as much as possible in the definitions of your own methods.

Turn in a zip file called CS123Hw5Surname.zip (where Surname is your last name) containing your version of Hw5.java.

This assignment is due Tuesday, October 15.