CSCI-1320 Homework 08: Ascii Art

Instructor: Todd Dole

Purpose Statement

This assignment makes use of both loops and String methods to create interestingly formatted output.

Instructions

W
 E
  L
   C
    O
     M
      E

        T
         O

           L
            A
             B

               D
                A
                 Y
                  !
        

Your program should allow the user to enter a sentence and then use a loop to display the sentence in all caps in a diagonal format, one character per line.

You should use spaces in front of the character for positioning--zero spaces on the first line, one space on the second line, two spaces on the third line, etc.

(Hint - there are several different ways to do this. Think through the tools we've covered and pick one that will work!)

For this program, you may NOT use System.out.printf -- only System.out.print and System.out.println

Example Input and Output:

 Please Enter a Message:  Hello, World!!
H
 E
  L
   L
    O
     ,

       W
        O
         R
          L
           D
            !
        
Name your class FancyMessage, and upload your FancyMessage.java source code file to the assignment in Canvas.