Question: Please help me to complete the Game Zone 2a, 2b, and 2c exercise on page 590 of Java Programming 8th Edition by Joyce Farrell. (ISBN:

Please help me to complete the Game Zone 2a, 2b, and 2c exercise on page 590 of Java Programming 8th Edition by Joyce Farrell. (ISBN: 9781337046718). This is a required programming project for class, it is long and had me completely mystified. I need as much help as possible with this, it is due by April 23, 2017.

Here is the problem-

2a)

Create an abstract CardGame class similar to the one described in this chapter. The class contains a "deck" of 52 playing cards that uses a Card class that holds a suit and value for each Card object. It also contains an integer field that holds the number of cards dealt to each player in a particular game. The class contains a constructor that initializes the deck of cards with appropriate values (e.g., "King of Hearts"), and a shuffle() method that randomly arranges the positions of the Cards in the array. The class also contains two abstract methods: displayDescription(), which displays a brief description of the game in each of the child classes, and deal(), which deals the appropriate number of card objects to one player of a game. Save file as CardGame.java.

2b)

Create two child classes that extend CardGame. You can choose any games you prefer. For example, you might create a poker class or a Bridge class. Create a constructor for each child class that initializes the field that holds the number of cards dealt to the correct value. (For example, in standard poker, a player receives five cards, but in bridge, a player receives 13). Create an appropriate displayDescription() and deal() method for each child class. Save each file using an appropriate name--for example, Poker.java or Bridge.java.

2c)

Create an application that instantiates one object of each game type and demonstrates that the methods work correctly. Save the application as PlayCardGames.java

Step by Step Solution

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 Databases Questions!