Question: Java example: Married - couple names This material has a series of sections providing increasingly larger program examples. The examples apply concepts from earlier sections.

Java example: Married-couple names
This material has a series of sections providing increasingly larger program examples. The examples apply concepts from earlier sections. Each example is in a web-based programming environment so that code may be executed. Each example also suggests modifications, to encourage further understanding of the example. Commonly, the "solution" to those modifications can be found in the series' next example.
This section contains a very basic example for starters; the examples increase in size and complexity in later sections.
NOTE: This section does not have any activity to be recorded as completed, and thus doesn't count towards a student's activity completion percentages. The example is included by popular request of students, who often ask for more examples -- and research indeed shows that students learn a lot by studying and tinkering with examples.
zyDE 1.11.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 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 Programming Questions!