Question: PP 8.7 Create a Card class that represents a playing card with a face value and a suit. Then create a class called DeckOf

PP 8.7 Create a Card class that represents a playing card with

PP 8.7 Create a Card class that represents a playing card with a face value and a suit. Then create a class called DeckOf Cards that stores 52 objects of the Card class. Include methods to shuffle the deck, deal a card, and report the number of cards left in the deck. The shuffle method should assume a full deck. Create a driver class with a main method that deals each card from a shuffled deck, printing each card as it is dealt.

Step by Step Solution

3.45 Rating (145 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Java Software Solutions Questions!