Write a program that will manipulate a person's name. Write a program that passes three blank character arrays into a function, asks for the user's first, last and middle name and stores each in its own character array. Upon returning to the main program create a fourth array, maipulate and combine the three array values storing the user's name in the following manner: last name, followed by a comma and space, then the user's first name and middle initial only (followed by a period), separated by a space. For example, if your name is "Jill Saint John", the value stored in the fourth array should be "John, Jill S." Display the contents of the fourth array on the screen
Answer msut be in C++
-
Write a
program that will manipulate a person's name. Write a program that passes three blank character arrays into a function, asks for the user's first, last and middle name and stores each in its own character array. Upon returning to the main program create a fourth array, maipulate and combine the three array values storing the user's name in the following manner: last name, followed by a comma and space, then the user's first name and middle initial only (followed by a period), separated by a space. For example, if your name is "Jill Saint John", the value stored in the fourth array should be "John, Jill S." Display the contents of the fourth array on the screen.
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images