header

Homework 1

Early dot-matrix printers had a print head consisting of a vertical column of seven pins. An inked ribbon ran between the print head and the paper. When one of these pins was "fired" it struck the ribbon which hit the paper and left a dot.

The print head (as seen in the top view) moved left to right and at any given print position, or column, any combination of the seven pins could be fired. The print head would then move a small distance to the next column. Each letter and numeral was created within a 5x7 dot-matrix (5 dots wide and 7 dots high).  A blank column separated one character from the next. For example, the numeral "29" could be represented as shown below. The upper representation is on the same scale as the drawing above. The lower representation uses "pins" that are exactly one pixel in size.

1. Create a 5x7 dot-matrix representation of each of your initials (first name, middle name, and last name). Use only capital (uppercase) letters.

2. Create a Java project named "Hmwk01" and within that project create an application also named "Hmwk01" that displays each of your initials in a 5x7 matrix using the asterisk character to represent a dot. For example, a program displaying the numeral "29" would look like this:

Dot-Matrix Output

Submitting Your Work

Send me your Hmwk01.java file as an attachment to an email message whose subject is "Hmwk01".