Program 1

Requirements

Write a program that will print your initials to standard output in letters that are nine lines tall. Each big letter should be made up of a bunch of *'s. For example, if your initials were "DJE", then the output would look something like:

******           *************        **********

**    **                **            **

**     **               **            **

**      **              **            ** 

**      **              **            ********

**      **       **     **            **

**     **         **    **            **

**    **           **  **             **   

*****               ****              **********

Discussion

This is a very simple program. It consists of nothing but a sequence of System.out.println statements. The hard part is designing the letters. You have to experiment in your text editor until you get letters that look right to you. Add System.out.println(" at the beginning of the first line, then copy-and-paste it to the beginning of each of the other lines. (You don't need to type it out on each line! Creative use of copy-and-paste can save you a lot of work.) Then add "); to the end of each line. In my program, I've also added a System.out.println() statement at the beginning and the end. The extra blank lines make the output look better.

Program 2

Requirements

Write a program that will print your Forename followed by your Middle name and then your Surname. Each name has its own output line of code, however, all three names should appear in the same line For example, if your Names were "John", "Mathusalem", "Williams" then the output would look something like:

 John Mathusalem Williams

Discussion

Another very simple program. It consists of nothing but a sequence of System.out.print and System.out.println statements.  Remember to add a space between name.


Last modified: Thursday, 21 September 2023, 9:23 AM