Due Date:
Friday, 15 January 2021
File(s) to be submitted:
WhoAmI.java
Synopsis
For this assignment, you must create a Java program (WhoAmI) that prints out your given name in large letters, followed by a bit more information about you. For example:
Who Am I -------- CSCI 1228 -- Winter 2021 * * * **** * * ** ** * * * * * * * * * ***** **** *** * * * * * * * * * * * * * * * * A00000000: Mark YoungThe required letter-forms are here.
If your given name is more than 11 characters long then you should abbreviate it. (Otherwise the output line would be more than 80 characters long, which would make it look very ugly.)
If your given name has six characters in it, then your lines seven to eleven will be 40 characters wide -- fourteen characters wider -- meaning that you should have eight spaces at the beginning and end of your line five.
If the number of extra spaces is odd, then the extra space should go in front (on the left). For example, my line thirteen is 21 characters wide -- five characters shorter than my lines seven to eleven. I put three spaces in front of the text, and two in back.
It is possible that your line five or thirteen is actually longer than the lines with your LARGE name on it. In that case, you are to indent your LARGE name so that it is centred between lines five and thirteen. For example:
And while that is all your program must do, keep in mind that it must still satisfy the standard style guidelines In particular, that means:
If your given name is more than seven characters long, then you really need to look out for this -- you can't fit more than seven of the wide characters on the same line as the System.out.println command. You will need to split your command onto two lines. If your name is more than nine characters long, you may need to split the command onto three lines.