Create classes to support a playing cards game according to
Create classes to support a playing cards game according to the attached and making use of the Collections framework. Playing Cards Deck 1. Write a class named Card which can represent a card from a card deck. It should contain two pieces of information: o Card Suits: Hearts, Diamonds, Spades, and Clubs. o Card Face value: Ace, Jack, Queen, King, or numbers 2 through 10 2. Write a class named Deck to create a deck of cards. o Constructor should create a deck of 52 Card objects to create a full deck of cards Bonus: replace 2 deuces with the big and little jokers o Provide a method to shuffle the deck Use the Collections static shuffle method o Provide a method to deal a card from the top of the deck 3. Write a class named CardPlayer that keeps a list of Card objects that have been dealt to the player: o Provide a getCard method to accept a reference to a Card object o Provide a showCards method to display the hand of cards 4. Create an executable class that creates a shuffled deck, deals 5 cards to two players, then displays the players hands. Create the program described in the attached and submit the eclipse solution folder. Generics Exercise Create a class named RandomPermutation that contains a static and generic method named randomize which: 1. Takes a generic list as a parameter and returns a like list. a. The list returned should be a copy of the original list with the elements loaded in a random order. 2. Call the method from main passing a list of strings, then a list of integers. 3. Print the original list, then the randomized list. e.g.: Here is the original string list: [Ann, Billy, Carol, Douglas, Greg, Harriet, Jennifer, Patrick, Zoe] Here is the randomized version: [Carol, Zoe, Ann, Harriet, Jennifer, Patrick, Douglas, Billy, Greg] Here is the original list of numbers: [10, 20, 30, 40, 50, 60, 70, 80, 90, 100] Here is the randomized version: [40, 100, 70, 80, 30, 10, 60, 90, 20, 50]
Collepals.com Plagiarism Free Papers
Are you looking for custom essay writing service or even dissertation writing services? Just request for our write my paper service, and we'll match you with the best essay writer in your subject! With an exceptional team of professional academic experts in a wide range of subjects, we can guarantee you an unrivaled quality of custom-written papers.
Get ZERO PLAGIARISM, HUMAN WRITTEN ESSAYS
Why Hire Collepals.com writers to do your paper?
Quality- We are experienced and have access to ample research materials.
We write plagiarism Free Content
Confidential- We never share or sell your personal information to third parties.
Support-Chat with us today! We are always waiting to answer all your questions.
