Create a program on C++ that will enable the user to input first name, middle initial, and last name all in upper cases. with a 22-character limit that also includes spaces in between the names on the ID card. The following conditions/limitations are observed:
Create a program on C++ that will enable the user to input first name, middle initial, and last name all in upper cases. with a 22-character limit that also includes spaces in between the names on the ID card. The following conditions/limitations are observed:
A. If the first name, second name, middle initial, and last name exceed the character limit, use the first name initial and last name.
B. If the last name’s character count is greater than or equal to the character limit, omit the second name and middle initial. Use the first name initial and truncate the last name to fit the character limit.
C. The spaces in between the first name, second name, middle initial, and last name should not be included in the input.
D. If there is no second name or middle initial, input 0.
E. Omit any space in the last name.
Trending now
This is a popular solution!
Step by step
Solved in 2 steps