This lab is inspired by the children's song of the same name that has been learned by young students in order to help them spell the state name "Mississippi."
The objectives of this lab are to reinforce and help teach:
The problem your lab program will solve is that of printing to the screen ascii-art characters that spell out the word MISSISSIPPI.
What is 'Ascii Art?'
Ascii art is when you represent something, in this case larger text letters, using individual ascii characters.
For example, an Ascii-Art uppercase letter M can be printed using the following statements:
System.out.println("M M");
System.out.println("MM MM");
System.out.println("M M M M");
System.out.println("M MM M");
System.out.println("M M");
System.out.println("M M");
System.out.println("M M");
System.out.println("M M");
And an uppercase letter I can be printed using the following statements:
System.out.println(" IIIIII");
System.out.println(" II");
System.out.println(" II");
System.out.println(" II");
System.out.println(" II");
System.out.println(" II");
System.out.println(" II");
System.out.println(" IIIIII");
Note: Observe the padding (extra space) on the left and right of the letter I above. This is purposeful so that it utilizes 8 characters wide and is horizontal centered with the other letters when used to spell words vertically.
Notice how in the middle part of the I there is no trailing white space (extra spaces) after the II characters. The same should be done for your S and P characters…no trailing white spaces.
Following are the instructions and you should follow them carefully:
Following is sample output:
M M
MM MM
M M M M
M MM M
M M
M M
M M
M M
IIIIII
II
II
II
II
II
II
IIIIII
SSSSSS
S S
S
SSSSSS
S
S
S S
SSSSSS
SSSSSS
S S
S
SSSSSS
S
S
S S
SSSSSS
IIIIII
II
II
II
II
II
II
IIIIII
SSSSSS
S S
S
SSSSSS
S
S
S S
SSSSSS
SSSSSS
S S
S
SSSSSS
S
S
S S
SSSSSS
IIIIII
II
II
II
II
II
II
IIIIII
PPPPPPP
P P
P P
PPPPPPP
P
P
P
P
PPPPPPP
P P
P P
PPPPPPP
P
P
P
P
IIIIII
II
II
II
II
II
II
IIIIII
This lab must be AutoLab submitted to the instructor by 11:59pm on the Monday a week after it was assigned. Check AutoLab for the specific due date.