Question: Problem Description: Write a program that generates 10 random integer numbers from 1 and 100 and stores the values in an array. Create the following

 Problem Description: Write a program that generates 10 random integer numbers

Problem Description: Write a program that generates 10 random integer numbers from 1 and 100 and stores the values in an array. Create the following methods: getLowest: This method should accept the above array as an argument and returns the lowest value in the array. getHighest: This method should accept the above array as an argument and returns the highest value in the array. getAverage: This method should accept the above array as an argument and returns the average value in the array. getSum: This method should accept the above array as an argument and returns the sum of the values in the array. Display the length and contents of the array. Display the lowest, highest, average and sum values. Create two separate java files, one containing the above methods and the other containing the main method. Important Note: Always design your program before coding. It will save you time in coding and debugging. Additional Notes/Requirements: Use variables instead of hardcoded values. For example: the size of array should be declared in a variable with 'final' keyword. Add comments

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 Databases Questions!