Computer Science, asked by aisiri21, 7 months ago

Ram is checking the validity of this statement: There are equal chances of getting a Heads or a Tails during a coin toss. To be able to achieve this, he has tossed a coin 200 times and documented the results. Write a java program for this scenario. Display the number of heads observed, number of tails observed and whether there is an equal chance of getting heads or tails. There is an equal chance if number of heads = number of tails.

Answers

Answered by ramandeepdhadli9
0
Given character C and an integer N representing N number of coins in C position where C can be either head or tail. We can flip the coins N times, wherein the ith round the player will flip the face of all the coins whose number is less than or equal to i. The task is to determine the total number of head and tail after flipping N possible times.
Similar questions