Question: Frequency Table Make a program called FrequencyTable.java in the assignment3 package. This program will generate x integers between 1 and n where x and

Frequency Table Make a program called FrequencyTable.java in the assignment3 package. This program will generate x integers between 1 and n where x and n are values supplied by the user through Scanner. Your program should create a frequency table, counting the number of times that each number is randomly generated. Think carefully about how you can use an array for this purpose. How big should our array be? Can we define a relationship between the random values that are generated and how we count them in the array? Example Output: Frequencies for 100 randomly generated values between 1 and 10 1: 10 2: 9 3: 10 4: 9 5: 10 6: 6 7: 15 8: 15 9: 8 10: 8
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
