JJ logo

Lab 5

. Perfecting the Happy Birthday song

Output the Happy Birthday song
based on the name of the person running your program

------------------------------------
Lab #5.1: Prompt for customer's name
and customize the output of your program.
------------------------------------

Modify the program from Lab #3.1 slightly so
that after it first asks the person running your
program (your customer) for their name it will
output a special message for certain names.

For example, if the person's name is Judy,
your program will output the following
five lines:

Judy, Judy, Judy.
Happy Birthday to you.
Happy Birthday to you.
Happy Birthday to Judy,
Happy Birthday to you.

Another example, if the person's name is Alison,
your program will output the following
five lines:

Happy Birthday to you.
Happy Birthday to you.
Happy Birthday to Alison,
Happy Birthday to you.
My aim is true.

Note that the third line ends with a comma (','), and
all the other lines end with a period ('.').

------------------------------------
Lab #5.2: Make sure that the persons name
is not empty.
------------------------------------

Modify the above program from Lab #5.2 slightly so
that it verifies that the person running your
program (your customer) enters a name that has
at least one character in it.