This lab exercise should help you understand character manipulation a bit better. (It will use functions from at least one library.)
Write a program to print the user's monogram. One common monogram form places the middle initial (capitalized) first, then the first initial (lower case), and finally the last initial (capitalized). Don't worry about special users who don't have a middle name, they can make up one or not use our program! (*grin*) Make your program print its results neatly.
As an example, you might have the program interaction look something like (the parts in this color are typed by the user):
$ ./monogram.out
Welcome to the Monogram Layout Program!!!
What are your initials? A B C
Thank you!!
Your monogram will be B.a.C.
Thank you for using the MLP!!
Endeavor to have a magnificent day!
$
This assignment is (Level 1.5).
Add (Level 1) to add another display for the users monogram. Another common monogram form places the middle initial first, then the first initial, and finally the last initial. The middle and last initials are placed on a level and the first initial is placed lower down (see example below). Make your program print its results neatly..
$ ./monogram.out
Welcome to the Monogram Layout Program!!!
What are your initials? A B C
Thank you!!
We can style this monogram as either: B.a.C.
Or:
B C
A
Let the cashier know which style you prefer today!
Thank you for using the MLP!!
Endeavor to have a magnificent day!
$
Add (Level 1) to force the user to enter their initials in the usual way (with periods after each initial).
The program interaction might now look something like (the parts in this color are typed by the user):
$ ./monogram.out
Welcome to the Monogram Layout Program!!!
What are your initials? A.B.C.
Thank you!!
Your monogram will be B.a.C.
Thank you for using the MLP!!
Endeavor to have a magnificent day!
$
If you did all above options, this lab could be worth as much as (Level 3.5).