// Programmer: INSERT YOUR NAME // Assignment: Program 4 /******************************************************************** * Card * * Member Variables: * INSERT DESCRIPTION OF MEMBER VARIABLES * Private Methods: * INSERT DESCRIPTION OF PRIVATE METHODS (IF ANY) * Public Methods: * INSERT DESCRIPTION OF PUBLIC METHODS (IF ANY) *******************************************************************/ public class Card { // constants representing the suits public static final int HEARTS = 0; public static final int CLUBS = 1; public static final int DIAMONDS = 2; public static final int SPADES = 3; // constants representing the named faces public static final int JACK = 11; public static final int QUEEN = 12; public static final int KING = 13; public static final int ACE = 14; // member variabes /* INSERT MEMBER VARIABLES HERE */ /****************************************************** * Card Constructor * * INSERT DESCRIPTION OF CONSTRUCTOR HERE ******************************************************/ public Card (int face, int suit) { // initialize the card /* INSERT CODE HERE */ } /***************************************************** * toString * * INSERT DESCRIPTION OF METHOD HERE *****************************************************/ public String toString () { // return a String that contains a text representation of the card // examples: King of Spades, 2 of Hearts /* INSERT CODE HERE */ } /****************************************************** * getFace * * INSERT DESCRIPTION OF METHOD HERE ******************************************************/ public int getFace() { /* INSERT CODE HERE */ } /****************************************************** * getSuit * * INSERT DESCRIPTION OF METHOD HERE ******************************************************/ public int getSuit() { /* INSERT CODE HERE */ } } // end of class Card