CS 12300 - Programming Assignment 1

This assignment is due Monday, August 27.

This assignment makes use of the files contained in this zip file.

Write a Java class called Hw1.java which contains a main() method that prints the following picture.

***************
 *           *
  *         *
   * Hello *
  *         *
 *           *
***************

The output of your program should exactly match this picture. Your program will consist of a sequence of println() statements, one for each line of the picture. Don't print any unneeded characters. The main purpose of this assignment is to make sure you have the Java JDK installed properly and to get you started using DrJava.

After you have completed Hw1.java, take a screenshot of DrJava with your program open in the "Definitions Pane" and your program's output visible in the "Output Pane". Your screenshot should show all of your program's code (including the appropriate comment at the beginning of the code) and all of its output. In the zip file there is a sample screen shot to give you an idea of what it should look like. After you take a screenshot, you need to use an image viewing program to save the screenshot as an image file. I like to use the free program IfranView, but you can also use the Windows Paint program.

Turn in a zip file called CS123Hw1Surname.zip (where Surname is your last name) containing your version of Hw1.java and your screenshot, Hw1.png.

This assignment is due Monday, August 27.