If necessary, create a new project named TryThis16 Project and save it in the Cpp8Chap13 folder. Enter

Question:

If necessary, create a new project named TryThis16 Project and save it in the Cpp8\Chap13 folder. Enter the C++ instructions from Figure 13-15 into a source file named TryThis16.cpp. Change the filename in the first comment to TryThis16.cpp. Save and then run the program. Test the program using the data shown in Figure 13-15 in the chapter. Now, modify the program so the user enters the last name followed by a comma, a space, and the first name. The program should display the first name followed by a space and the last name. Be sure to modify the comments that document the program’s purpose. Save and then run the program. Test the program appropriately.

Figure 13-15

1 //Rearrange Name.cpp - displays the last name 2 //followed by a comma, a space, and the first name 3 //Created/revised by  on  4 5 #include  6 #include  7 using namespace std; 9 int main() 10 { string firstlast = string first =

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: