Question: Can someone please help me. I need this in Dr Java. Lab 06 Heads or Tails? Objective: Write a program that gives the statistics of
Lab 06 Heads or Tails? Objective: Write a program that gives the statistics of a coin flipped some number of times! The user puts in the number of times the coin is flipped. Then use a random number generator that picks only the number 0 (which represents heads) and 1 (which represents tails) and keep tally on each of those. Give the overall winner at the end or if they tied. Example Dialog Welcome to the hails or tails simulator! Enter a number of flips! 100 Heads! Heads! Heads! Heads! Heads! Tails! Heads! Heads! Heads! Tails! Tails! Tails! Tails! Tails! Tails! Heads! Heads! Heads! Tails! Tails! Tails Heads! Tails! Tails! Heads! Tails! Heads! Heads! Tails! mo
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
