Question: no matter what i do i can't seem to get a java program that works with these specifications: DESCRIPTION: 1 . Create an original -

no matter what i do i can't seem to get a java program that works with these specifications:
DESCRIPTION:
1. Create an original-array (of a user-defined size).
2. Randomly populate the original-array with numbers 1-100, inclusive.
3. Create a new backward-array of the same size as the original-array that stores the values of the original-array in reverse order (by index).
4. Output the original-array and the backward-array.
EXACT SPECIFICATIONS:
1. The main method() should contain exactly 8 statements ... just eight (8)!
2. The main method() should not contain print statements!
3. The main method() must call four (4) programmer-defined methods: input(), process1(), process2(), and output().
4. Do not pass the length of the array as a parameter! When you pass in the array, you can use a 'field' of the array to always know the size of it.
FOR FULL CREDIT:
- The constant called MAX must be declared atop the main() method ....
- the main() method must call exactly four of the following programmer-defined methods (methods that you write):
1. an input non-void method that uses a Scanner object ....,
2. a process non-void method that uses a Scanner object, a Random object, and a constant ....,
3. another process non-void method that uses the original-array of random integers ..., and
4. an output void method that uses a string (to display a descriptive message) and a singular array (containing either the original-array or the backward array) to display a message and the contents of the array in ascending order (by index).
the main() method should only contain the following eight (8) statements :
- the Scanner object and a primitive constant declaration (that represents the largest random integer that can be obtained),
- the constant declaration,
- the five method calls (the output-method called twice) to the four distinct (different) programmer-defined methods (the methods that you write), and
- one method call to the Scanner object (that does not read from the input buffer!).
SAMPLE OUTPUT:
Enter the seed:
10
Enter the array length:
10
The input array is:
14819491475798898215
The output array is:
15828998574791948114

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!