// Programmer: INSERT YOUR NAME // COMP 14 // Assignment: Program 3A // INSERT YOUR PLEDGE HERE /******************************************************************** * 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; public static final int CARD_PER_SUIT = 13; // member variabes // INSERT MEMBER VARIABLES HERE /****************************************************** * Card Constructor * * Takes as parameters the face and suit of the card ******************************************************/ public Card(int face, int suit) { // INSERT CODE HERE } /****************************************************** * Card Constructor * * Takes as parameter the card number ******************************************************/ public Card (int cardno) { // INSERT CODE HERE } /****************************************************** * toString * * Returns a String representation of the card ******************************************************/ public String toString() { // return a String that contains a text representation of the card // INSERT CODE HERE } /****************************************************** * getFace * * Returns the card's face value ******************************************************/ public int getFace() { // return the face // INSERT CODE HERE } /****************************************************** * getSuit * * Returns the card's suit value ******************************************************/ public int getSuit() { // return the suit // INSERT CODE HERE } /****************************************************** * getCardNo * * Returns the card number ******************************************************/ public int getCardNo() { // return the card number // INSERT CODE HERE } } // end of class Card