ASCII Art

Preferably use the Java IDE provided on our classroom computers but, if necessary, use an online compiler to write a class named ASCIIArt that displays a piece of ASCII art in its main method. The main method must consist of 20 or more System.out.println or System.out.print statements that create an interesting picture.

You must use each of the following escape sequences at least once:

\\

\"

\n

You must also use both the System.out.print and System.out.println at least once each (but a total of at least 20 times.)

Include your first name, last name initial and the current school year somewhere in the output.

The website asciiflow.com could help you come up with an interesting drawing. The website picascii.com can convert a selfie photo or a graphic obtained at image.google.com into ASCII art.

You will be graded on the complexity & interestingness of your picture as well as your program's internal documentation which should explain the main parts of the drawing.

The source code may not look good because of the use of escape sequences such as \\, \" and \n. However, the output will look accurate.

It is recommended that you use single spaces to space out your code rather than presses of the Tab key since different applications and different platforms (Mac, PC, etc.) treat tabs differently.

Your program must follow the class Coding Standards. For this assignment (unlike the HelloWorld program that you may have memorized), you must use a javadoc documentation header like this

/**
 * ASCIIArt
 * @author John Doe Per 1
 */

You must call the instructor to your computer to have him grade the source code and the run-time execution.

You must upload the following files to a location specified by the instructor with your first name and last initial substituted for JohnD:

  • A copy of the source code file named ASCIIArt.java. With jGRASP closed, browse to the ASCIIArt project folder (that should be in your workspace folder.) Identify the file named ASIIArt.java. That is the source code file that must be uploaded to Schoology.

  • The source code file saved as a pdf with the name ASCIIArt.pdf. First turn off Line Numbers (menu command View / Line Numbers.) Then go to the menu command File / Print / JVM Print. Select Open PDF in Preview. Then, save the file with the name ASCIIArt to your computer (e.g. Downloads or Desktop). Finally, upload that file named ASCIIArt.pdf.

  • A cropped screen capture of your program's output named ASCIIArtJohnD2016.png. You can crop, edit, annotate, and resize screen snapshots using web-based tools such as pixlr.com/editor or picresize.com. Or, you can use a graphic editor such as Photoshop that may be installed on the computers in our computer lab. On a Mac in our computer lab, you can hold down the Windows / Shift keys and then strike the number 4 to take a screen snapshot. (On normal Mac keyboards, use the key combination Command Shift 4.) The rectangular cropped graphic will be a file on your Mac Desktop. Rename that file as ASCIIArtJohnD2016.

Examples from former students: Alan L, Mitch G, Abby W, Alex S, Daniel F, Dylan T, Gavin B, James B, James C, Kaitlyn M, Katie C, Kevin C, Liam R, Mark G, Morgan D, Paul G, Tyler A, Zach M, Evan L PeterB MikaylaA JocelynD OliviaL EmilyO