Question: This week you will create the beginnings of a Five Crowns program (this is a card game). This program will be built on in future

This week you will create the beginnings of a Five Crowns program (this is a card game). This program will be built on in future projects. 1. You will create a deck of 116 cards (suggested implementation: a vector. This allows you to use push_back to add each card to the vector). a. You should create a class Card that contains the following: i. Two enum types representing faces and suits. ii. Data members face and suit, of enum type. iii. A constructor that receives two enums representing face and suit and uses them to initialize the data members. b. A toString function that returns a string in the form face of suit (eg. three of spades.). Jokers do not have a suit, so they would simply return Joker. 2. After you create the deck, print it out. 3. Then you will use a method you create to shuffle the deck. Here is a suggested algorithm for shuffling: Iterate through the array of Cards. For each Card, randomly select another card in the deck and swap the two Cards. 4. Once you have shuffled, print the deck again. 5. This assignment should have THREE separate files: header, implementation, and main. Here are the details on the 116-card deck: 1. There are five suits: a. Clubs b. Diamonds c. Hearts d. Spades e. Stars 2. Numbers of cards: a. There are 10 (2 of each suit) of 3, 4, 5, 6, 7, 8, 9, 10, Jack, Queen, and King. (i.e. no twos and no aces). b. There are six Jokers (Jokers do not have a suit). (This adds up to 116 cards). 3. Point values: a. Threes have 3 points, fours have 4 points, and so on up to 10 (5 5, 6 6, 7 7, 8 8, 9 9, 10 10) b. Jacks have 11 points. c. Queens have 12 points. d. Kings have 13 points. e. Jokers have 20 points.

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!