Question: 1 . 1 2 C + + example: Married - couple names zyDE 1 . 1 2 . 1 : Married - couple names. Pat

1.12 C++ example: Married-couple names
zyDE 1.12.1: Married-couple names.
Pat Smith and Kelly Jones are engaged. What are possible last name combinations for the married couple (listing Pat first)?
Run the program below to see three possible married-couple names.
Extend the program to print the two hyphenated last name options (Smith-Jones, and Jones-Smith). Run the program agair
Load default template...
cout "What is the second person's first name?" endl;
cin firstName2;
cout "What is the second person's last name?" endl;
cin lastName2;
cout "Here are some common married-couple names:" endl;
cout firstName1" and " firstName2"" lastName1 endl;
cout firstName1" and " firstName2"" lastName2 endl;
// FIXME: Print two hyphenated last name options, with either last name
I/ appearing first. (A hyphen can be written as "-")
return ;
}
 1.12 C++ example: Married-couple names zyDE 1.12.1: Married-couple names. Pat Smith

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!