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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started