Question: I need help, this is a lab for my java class. If you can do this i'd be very grateful. Please go to the wikipedia

I need help, this is a lab for my java class. If you can do this i'd be very grateful.

Please go to the wikipedia page and go through the activity.

---> http://www.apcs.mathorama.com/index.php?n=Main.ElevensLab

Exercises

1.) The file Deck.java, found in the Activity4 Starter Code folder, is a correct solution from Activity 2. Complete the Deck class by implementing the shuffle method. Use the efficient selection shuffle algorithm from Activity 3.

Note that the Deck constructor creates the deck and then calls the shuffle method. The shuffle method also needs to reset the value of size to indicate that all of the cards can be dealt again.

2.) The DeckTester.java file, found in the Activity4 Starter Code folder, provides a basic set of Deck tests. It is similar to the DeckTester class you might have written in Activity 2. Add additional code at the bottom of the main method to create a standard deck of 52 cards and test the shuffle method. You can use the Deck toString method to "see" the cards after every shuffle.

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!