Need to get homework done ASAP

CLOSED
Bids
31
Avg Bid (USD)
$92
Project Budget (USD)
$30 - $250

Project Description:
Using the provided PlayingCard class, I'm attempting to write code that simulates a game that deals 5 cards to two players. The game will be scored using basic poker hands and a winner will be determined from the initial 5 card draw. Continue playing multiple games by asking the user if they wish to play again. If they do not wish to play again, exit the game. For each game, display what suit and values each of the 5 cards are for each player and indicate the winner and what hand they have. Utilize arrays to store your hands and utilize the enums provided to indicate suits and values.

Here is the provided code:

import java.util.Random;

public class PlayingCard
{
public static enum Suit { HEART, DIAMOND, CLUB, SPADE }

public static enum Value {TWO, THREE, FOUR, FIVE, SIX, SEVEN,
EIGHT, NINE, TEN, JACK, QUEEN, KING, ACE }

private Suit cardSuit;
private Value cardValue;



public PlayingCard()
{
cardSuit = Suit.SPADE;
cardValue = Value.ACE;
}

public PlayingCard(Suit s, Value v)
{
cardSuit = s;
cardValue = v;
}

public Suit getSuit()
{
return cardSuit;
}

public Value getValue()
{
return cardValue;
}

public void SetCard(Suit s, Value v)
{
cardSuit = s;
cardValue = v;
}

public static PlayingCard getRandomPlayingCard()
{
PlayingCard returnCard = new PlayingCard();
Random random = new Random();
returnCard.SetCard(Suit.values()[random.nextInt(Suit.values().length)],
Value.values()[random.nextInt(Value.values().length)]);
return returnCard;
}
}

Skills required:
Java
About the employer:
Verified
Public Clarification Board
Bids are hidden by the project creator. Log in as the employer to view bids or to bid on this project.
You will not be able to bid on this project if you are not qualified in one of the job categories. To see your qualifications click here.


$ 105
in 1 days
$ 124
in 1 days
$ 99
in 0 days
$ 99
in 1 days
$ 84
in 3 days
$ 154
in 3 days
$ 34
in 0 days
$ 77
in 2 days
$ 206
in 3 days
$ 35
in 1 days