<p>Write a program that read's in a person's name in the following format: first name, then middle name or initial, and then last name. &#160;The programwill the output &#160;the name in the following format: <br />Last_Name, First_Name Middle_Initial.</p><p><br />For example, the input<br />Mary Average User<br />should produce the following output:<br />User, Mary A.<br />The input:<br />Mary A. User<br />should also produce the same output.</p><p><br />Your program should work the same and place a period after the middle initial even if the input did not contain a period.</p><p>&#160;Your program should allow for user who give no middle name or middle initial. &#160;In that case, the output, of course, contains no middle nameor middle initial. &#160;For example:<br />The input:<br />Mary User<br />should output:<br />User, Mary<br />Please use C++ -strings for this assignment, not C-Strings.</p>


Are there any questions left?
New questions in the section Engineering
Sign up for the IQClass
Answers from experts with no ads!
Sign up
Develop soft skills on BrainApps
Complete the IQ Test
Made with love
This website uses cookies to make IQClass work for you. By using this site, you agree to our cookie policy

Pleased to see you again

IQClass unlocks the learning potential of every child
  • Master useful skills
  • Improve learning outcomes
  • Share your knowledge
Create an account
Sign in
Recover lost password
Or log in with

Create an account

IQClass unlocks the learning potential of every child
  • Master useful skills
  • Improve learning outcomes
  • Share your knowledge
Create an account
Sign Up
Or sign up with
By signing up, you agree to the Terms of use and Privacy policy.
Looking for an answer to a question you need help with?
you have баллов