3 3.04 Ascii Art Instructions

User Manual:

Open the PDF directly: View PDF PDF.
Page Count: 1

Download3 3.04 Ascii Art Instructions
Open PDF In BrowserView PDF
3.04 ASCII Art Instructions
Creating ASCII art can be very tedious and time consuming, so keep it simple for your first
effort.
First, prepare your artwork.




Make a line drawing of the artwork you want to produce with pencil and paper. This is
much easier if you use a piece of graph paper with grid spaces large enough to place a
symbol in.
Next, superimpose keyboard symbols on top of the drawing in horizontal rows. If you
need to use the backslash, double quotation marks, or single quotation marks remember
to use them with the escape character.
Your artwork should use at least 10 rows of symbols.

Second, create a new class for this assignment.




Create a new project called 3.04 ASCII Art in the Mod03 Assignment folder.
Create a new class called ArtWork in the newly created project.
Delete everything between the curly braces; add the main() method header and a pair
of opening and closing curly braces.

Third, transform your artwork into Java code.


Assign each horizontal line of characters to a separate String object as was done in the
Surprise_v1 class. For example, the top row of “APCS” is shown below.
String row1 = "





*

*****

*****

*****”;

Add statements to print each String object. (Use the Surprise_v1 class as a model.)
However, you may only use the print() method, not the println() method. Which
escape sequence causes a carriage return?
Debug the program as needed.
Assign your name to a String object and sign your ASCII art by printing a String literal.



Source Exif Data:
File Type                       : PDF
File Type Extension             : pdf
MIME Type                       : application/pdf
PDF Version                     : 1.5
Linearized                      : Yes
Author                          : bjordan
Company                         : FLVS
Content Type                    : Document
Create Date                     : 2009:06:03 16:39:41-03:00
Modify Date                     : 2009:06:03 16:51:29-03:00
Source Modified                 : D:20090602194654
Language                        : EN-US
Tagged PDF                      : Yes
XMP Toolkit                     : Adobe XMP Core 4.2.1-c041 52.342996, 2008/05/07-20:48:00
Creator Tool                    : Acrobat PDFMaker 9.0 for Word
Metadata Date                   : 2009:06:03 16:51:29-03:00
Producer                        : Acrobat Distiller 9.0.0 (Windows)
Format                          : application/pdf
Creator                         : bjordan
Title                           : 3
Document ID                     : uuid:2ae52d28-f0f4-4d4c-a7d4-490a09148499
Instance ID                     : uuid:3a5a88c0-8dfc-461d-abe8-fd4f96c8b371
Subject                         : 2
Page Layout                     : OneColumn
Page Count                      : 1
EXIF Metadata provided by EXIF.tools

Navigation menu