Create a folder called Unit99 and put your source file in this folder.

Create a Java program file called Unit99_Prog1.java and place it in the Unit99 folder.

The program will generate 100 random integers between 0 and 9 (Hint: use Math.random()). The program will then display the count for each random number. You will need to use an array and loops. The output should look something like the following and will be different every time you run the program.

*** Here are the counts of the random numbers ***
Number of times 0 appeared: 10
Number of times 1 appeared: 12
Number of times 2 appeared: 16
Number of times 3 appeared: 9
Number of times 4 appeared: 12
Number of times 5 appeared: 7
Number of times 6 appeared: 7
Number of times 7 appeared: 8
Number of times 8 appeared: 10
Number of times 9 appeared: 9
Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.