The program should also contain a static method to display


This game is meant for two or more players.  In this game, the players take turns flipping a coin.  Before the coin is flipped, players should guess if the coin will land heads up or tails up.  If the player guesses correctly, the player gets a point.  If a player guesses incorrectly, then the player loses a point.  The first player to score five points is the winner.

You have been provided with a coin class and a player class (copy and paste the code into your own project).  Do not modify the classes.  Use these two classes to create a coin object and two player objects in an application that allows players to play the heads or tails game.

The program (application) should allow the players to play against each other. The game should be played until one player wins.  This program should have a main method that creates the objects and allows the game to continue until complete.  The program should also contain a static method to display the round number, a static method to allow the player to make a guess, a static method to check the guess, a static method to display the points, and a static method to display the winner. **HINT:  There will be a need to pass objects to the static methods. **

Solution Preview :

Prepared by a verified Expert
Business Management: The program should also contain a static method to display
Reference No:- TGS01675253

Now Priced at $15 (50% Discount)

Recommended (91%)

Rated (4.3/5)