Question: Java language and please include the screenshot of the output ory Bookmarks Tools Window Help Home | Hacker101 https://blackboard stockt Unit II Practical Attached Files:
ory Bookmarks Tools Window Help Home | Hacker101 https://blackboard stockt Unit II Practical Attached Files: BallToss java (955 8) pps/blackboard/content/listCo asearch For this exercise, assume 100 balls are thrown and each ball lands in one of the 10 cups at random. Cups are numbered from 0-9. Note: each execution of the program should yield different results. At the end of the simulation, report the contents of each cup (the number of balls in each), the cup with the most balls (max), the cup with the least balls (min), and the range (difference between max and min quantities) Your program output should match the following format. Ordered list of quantities (starting from cup 0, through cup 9). 2. 1. Max quantity observed and the cup it was in. 3. Min quantity observed and the cup it was in. 4. Range of observed quantities Example Output [8, 5, 8, 11, 13, 16, 10, 12, 11, 6] MAX: 16 found in cup 5 MIN: 5 found in cup 1 Range: 11 6 MacBook Air
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
