The Most Rapid Essay Writing Service For Your Academic Success

Become a better student and get high grades with our professional writers.

Welcome to the #1 paper writing service, where each essay writer knows your needs and saves you from endless tasks!

  • We cover all disciplines and academic styles.
  • We meet your deadlines and formatting requirements.
  • We ask nothing but your “thank you” in return.

Entrust our essay writing service with your homework today—and forget about dull tasks and poor grades forever.

shuffle java

PeopleShuffleSort.java – Create a program that takes four to eight one-word Strings as a command line arguments, creates/initializes an array of those strings stored in reverse and displays them, shuffles and displays the values, and then sorts the array and displays them alphabetically.
Use the args.length() method to make sure there are at least four command line arguments, but no more than eight. You can also use it to figure out how big to make the array…

Terminal output should look something like this…
java-introcs PeopleShuffleSort Peter Paul Mary Joe Jane
Initializing…
Jane Joe Mary Paul Peter
Shuffling…
Paul Jane Mary Joe Peter
Sorting…
Jane Joe Mary Paul Peter

You will use at least THREE loops, each of which goes through the whole array:
Initialize each of the values of the array to it’s REVERSE input position
Shuffle each of the values in the array to a RANDOM position
Sort each value in the array to it’s English ALPHABETIC position
Run the test no less than three times, each with several different values, and then copy the output from ALL sessions from the Terminal window to a PeopleShuffleSortOutput.txt file.
You are handing in:
PeopleShuffleSort.java (NOT the CLASS file)
PeopleShuffleSortOutput.txt
Tips:

-Please submit as individual files. Don’t ZIP them.
-Update your header information for the Java files, and ADD header info in your -OUTPUT files so I know whose is whose!
-Add your own comments to the code, explaining what you’ve done
-Collaboration is fine, but HAND IN YOUR OWN WORK.
-Test! If it doesn’t work, I can’t grade it properly.

Both comments and pings are currently closed.
Powered by WordPress | Designed by: Premium WordPress Themes | Thanks to Themes Gallery, Bromoney and Wordpress Themes