Question: Programming Language: C++ Have the user be prompted to type in their full name. When the user types in their full name, their full name
Programming Language: C++ Have the user be prompted to type in their full name. When the user types in their full name, their full name will be stored in a char array, the program will split the name into first last and last name depending on where the user put a space. The program will then display their first name, and then their last name. Additionally, if the user has entered no space (meaning no last name), the program should not mention it. The program only exits when the user types in 'exit'.
Example Output:
Please type in your full name:
Jack Rock
Thank you, your first name is 'Jack' and your last name is 'Rock'.
Please type in your full name:
Roller
Thank you, your first name is 'Roller'.
Please type in your full name:
exit
The program has exited.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
