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.
You can place an order similar to this with us. You are assured of an authentic custom paper delivered within the given deadline besides our 24/7 customer support all through.
Latest completed orders:
# | topic title | discipline | academic level | pages | delivered |
---|---|---|---|---|---|
6
|
Writer's choice
|
Business
|
University
|
2
|
1 hour 32 min
|
7
|
Wise Approach to
|
Philosophy
|
College
|
2
|
2 hours 19 min
|
8
|
1980's and 1990
|
History
|
College
|
3
|
2 hours 20 min
|
9
|
pick the best topic
|
Finance
|
School
|
2
|
2 hours 27 min
|
10
|
finance for leisure
|
Finance
|
University
|
12
|
2 hours 36 min
|