computer science: c++ (QT) Hw

profile1252244

Functions, part 2

 

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

 

    • 9 years ago
    • 5
    Answer(1)

    Purchase the answer to view it

    blurred-text
    • attachment
      functions.zip
    Bids(1)