Write a program that will ask a user for their entire name


Computer Science: C++ Assignment

Functions

Write a program that will ask a user for their entire name (first, middle, and last) as a single input. Then write a function that will separate the input into the first, middle, and last names with the first letter of the first and last names capitalized and the remaining letters in lower case. The middle name will be converted to a middle initial only, followed by a period, and in upper case.

Example: If the input wast John Roe Doe, the output would be DOE, John R.

However if the input is John Doe, then the output would be DOE, John.

Solution Preview :

Prepared by a verified Expert
C/C++ Programming: Write a program that will ask a user for their entire name
Reference No:- TGS02305249

Now Priced at $25 (50% Discount)

Recommended (97%)

Rated (4.9/5)