Question: (10 points) Suppose I want you to write a Java program that represents a deck of cards. A deck of cards has 52 cards, each
(10 points) Suppose I want you to write a Java program that represents a deck of cards. A deck of cards has 52 cards, each of which has a value that is one of {A, 2, 3, 4,5,6, 7,8,9, 10, J, Q, K], and a suit that is one of C, D, H, St. I want to implement the following methods: shuffle(), which returns all previously drawn cards to the deck and shuffles the cards into a random order, and draw(int n), which returns the top n cards and removes them from the deck. Sketch the code for a set of Java objects that matches this problem. (You should provide the class definition(s), class properties, method definitions, method parameters, and a verbal description of what each method does.)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
