Question: Write an application called BabyNameComparison that prompts the user for three first names and concatenates them in every possible two - name combination so that

Write an application called BabyNameComparison that prompts the user for three first names and concatenates them in every possible two-name combination so that new parents can easily compare them to find the most pleasing baby name.
An example of the program is shown below:
Enter a name >> John
Enter a second name >> Beth
Enter a third name >> Taylor
The combinations are:
John Beth
John Taylor
Beth John
Beth Taylor
Taylor John
Taylor Beth
Task 01: Create the BabyNameComparison class.
Task 02: The BabyNameComparison program displays every combination of three baby names.

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!