Question: Chapter 7 Java Assignment This assignment will focus on the use of loops, random numbers, named constants, and arrays. Assignment 7 Assignment 7 Submission Follow

Chapter 7 Java Assignment

This assignment will focus on the use of loops, random numbers, named constants, and arrays.

Assignment 7
Assignment 7 Submission

Follow the directions below to submit Assignment 7:

1. Create a Java program.

2. The class name for the program should be 'RandomDistributionCheck'.

3. In the main method you should perform the following:

a. You should generate 10,000,000 random numbers between 0 - 19.

b. You should use an array to hold the number of times each random number is generated.

c. When you are done, generating random numbers, you should output the random number, the number of times it occurred, and the percentage of all occurrences. The output should be displayed using one line for each random number.

d. Use named constants for the number of iterations (10,000,000) and a second named constant for the number of unique random numbers to be generated (20).

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!