PRG/421 Week 5 Java 5.9 LAB: All permutations of names

Availability: In stock

Regular Price: $7.00

Special Price: $3.00

OR

PRG/421 Week 5 Java 5.9 LAB: All permutations of names

Double click on above image to view full picture

Zoom Out
Zoom In

More Views

Quick Overview

PRG/421 Week 5 Java 5.9 LAB: All permutations of names


Write a program that lists all ways people can line up for a photo (all permutations of a list of Strings). The program will read a list of one-word names (until -1), and use a recursive method to create and output all possible orderings of those names, one ordering per line.


When the input is:
Julia Lucas Mia -1


then the output is (must match the below ordering):
Julia Lucas Mia
Julia Mia Lucas
Lucas Julia Mia
Lucas Mia Julia
Mia Julia Lucas
Mia Lucas Julia

Regular Price: $7.00

Special Price: $3.00

Details

PRG/421 Week 5 Java 5.9 LAB: All permutations of names

Write a program that lists all ways people can line up for a photo (all permutations of a list of Strings). The program will read a list of one-word names (until -1), and use a recursive method to create and output all possible orderings of those names, one ordering per line.

When the input is:
Julia Lucas Mia -1

then the output is (must match the below ordering):
Julia Lucas Mia
Julia Mia Lucas
Lucas Julia Mia
Lucas Mia Julia
Mia Julia Lucas
Mia Lucas Julia

Additional Information

Special Price $3.00

Product Tags

Use spaces to separate tags. Use single quotes (') for phrases.