Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Design For Mere Mortals

Authors: Michael J Hernandez

4th Edition

978-0136788041

More Books

Students also viewed these Databases questions

Question

What is linear transformation? Define with example

Answered: 1 week ago

Question

Why is the System Build Process an iterative process?

Answered: 1 week ago