Question: java: Pat Smith and Kelly Jones are engaged. What are possible last name combinations for the married couple ( listing Pat first ) ? Run

java: 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. Note the use of variable firstNames to hold both first names of the couple.
Extend the program to define and use a variable lastName similarly. Note that the print statements are neater. Run the program again.
Extend the program to print two more options that abut the last names, as in SmithJones and JonesSmith. Run the program again.

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!