<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.  The programwill the output  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> Your program should allow for user who give no middle name or middle initial.  In that case, the output, of course, contains no middle nameor middle initial.  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>
-
Engineering 2022-05-15 21:04:59