Question: Please answer in C++ Write a program that prompts the user for two words with exactly 3 characters. Your program should behave as follow: 1.
Please answer in C++
Write a program that prompts the user for two words with exactly 3 characters. Your program should behave as follow:
1. Display a welcome message.
2. Store the users two words in two different variables of type string.
3. Echo back to the user the word entered with the length of each word.
4. Use a new string to merge two words, following the sequence: 1st character of the first word + 1st character of the second word + 2nd character of the first word + 2nd character of the second word + 3rd character of the first word + 3rd character of the second word.
5. Display the resulting new word.
6. Display the new word with the 2nd letter and 2nd to last letter after swapping.
7. Display a farewell message, so that the user knows that the program has terminated normally
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
