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

This assignment is due Tuesday, September 10.

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

Write a Java program called Hw3.java that uses for-loops to draw the following picture.

##############################
$=$$=$$=$$=$$=$$=$$=$$=$$=$$=$
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
"<[]>""<[]>""<[]>""<[]>""<[]>"
012345678901234567890123456789
    *    *    *    *    *    *
$=$$=$$=$$=$$=$$=$$=$$=$$=$$=$
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
"<[]>""<[]>""<[]>""<[]>""<[]>"
##############################

The output of your program should exactly match this picture (which is in the zip file as hw3_picture.txt). Your program should draw this picture in a specific way. Each line of the picture should be drawn by a single for-loop. The body of each for-loop should be a single System.out.print statement. Each call to System.out.print should print the shortest string it possibly can. In between each for-loop you will need a System.out.println() statement to end a line of output and get ready for the next output line. Notice that some of the output lines are repeated. But you should not repeat any code. So some of your for-loops should be in static methods that can be called more than once. Do not write any methods that are not really needed (if one of your methods is called only one time, then that method was not really needed). Make sure you do not repeat any block of code (this includes a block of method calls).

Notice that in some of your output strings you will need to use an "escape sequence". These are described on pages 15-16 of the textbook (see Table 1.3).

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

This assignment is due Tuesday, September 10.