Question: Create an Intellij application that fills an array with 1,000 random integer elements, each integer element array must be between the values of 1 and

Create an Intellij application that fills an array with 1,000 random integer elements, each integer element array must be between the values of 1 and 10.

You Program should sort the numbers in the Array and Print the results. The program should first print the unsorted version of the array and then the sorted version of the array. When printing both the sorted and unsorted versions of the array, each element should be delimited by a line feed.

After printing both versions of the array, your program should then perform a frequency count of the elements in the array. The program should print how many elements are equal to 1, how many are equal to 2, etc. for all 10 possible values.

Finally, your program should also calculate the average of the values in the array.

You Program cannot use predefined Classes or methods in Java that perform frequency counts such as ArrayList, HashMap, Set, or Map and their associated methods. Students must design and develop their own algorithms to solve the problem.

Your application should output a neatly formatted summary report to a text file with the summary results, not the entire array. Your program should exhibit good modular development.

In your lab report, you should describe how the results compared to what you expected the results to be.

The Use of the Array class object or the ArrayList class object is also not permitted

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!