Question: PLEASE IN JAVA Write Mr. Coin a program that asks the user how many times he would like his coin to flip (he can flip
PLEASE IN JAVA
Write Mr. Coin a program that asks the user how many times he would like his coin to flip (he can flip up to 1000 times). Then, generate a random integer between 1 and 10 (even = head, odd = tail), and store all the numbers in an array (size set by the number of coin flips). With your newly created array, supply Mr. Coin with the following information:
How many times do each of the 10 random numbers occur
Which number occurred most often
Which side of the coin came up more often
Steps in solving this problem:
Create and use a method that generates a random integer between (and including) integers aand b: random(a,b)
Create and use a method that counts the number of occurrence of a certain value n from a given array arr: count(n,arr)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
