ahmed sami

ahmed sami

  • NA
  • 64
  • 200.8k

Write an application that simulates coin tossing

Dec 10 2012 5:20 PM
Write an application that simulates coin tossing. Let the program toss the coin each time the user presses the "Toss" button. Count the number of times each side of the coin appears. Display the results. The program should call a separate method Flip that takes no arguments and returns false for tails and true for heads.
[Note: If the program realistically simulates the coin tossing, each side of the coin should appear approximately half of the time.]

Answers (1)