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:
Create an originalarray of a userdefined size
Randomly populate the originalarray with numbers inclusive.
Create a new backwardarray of the same size as the originalarray that stores the values of the originalarray in reverse order by index
Output the originalarray and the backwardarray.
EXACT SPECIFICATIONS:
The main method should contain exactly statements just eight
The main method should not contain print statements!
The main method must call four programmerdefined methods: input process process and output
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 programmerdefined methods methods that you write:
an input nonvoid method that uses a Scanner object
a process nonvoid method that uses a Scanner object, a Random object, and a constant
another process nonvoid method that uses the originalarray of random integers and
an output void method that uses a string to display a descriptive message and a singular array containing either the originalarray 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 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 outputmethod called twice to the four distinct different programmerdefined 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:
Enter the array length:
The input array is:
The output array is:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
