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.