Question: Tuesday by 8am Points 2 Submitting a file upload Available after Mar 7 at 9:30 f Cards Lab.docx e File Preview Deck of Cards Lab
Tuesday by 8am Points 2 Submitting a file upload Available after Mar 7 at 9:30 f Cards Lab.docx e File Preview Deck of Cards Lab Create and display a deck of 52 cards: 1) Begin with your Card class from the Card Class Lab. Write a new main program which creates a deck of cards as a two-dimensional array deck/41/13J. Display the deck like this: Spade Ace Spade 2 Spade 3 Spade 4 Spade 5 Spade 6 Spade 7 Spade 8 Spade 9 Spade 10 Spade Jack Spade Queen Spade King Heart Ace Heart 2 Heart 3 Heart 4 Heart 5 Heart 6 Heart 7 Heart 8 Heart 9 Heart 10 Heart Jack Heart Queen Heart King Diamond Ace Diamond 2 Diamond 3 Diamond 4 Diamond 5 Diamond 6 Diamond 7 Diamond 8 Diamond 9 Diamond 10 Diamond Jack Diamond Queen Diamond King Club Ace Club 2 Club 3 Club 4 Club 5 Club 6 Club 7 Club 8 Club 9 Club 10 Club Jack Club Queen Club King Separate your class definition and main program from part 2 into two files. Ensure you can build and run your program. 2) 3) Rewrite your main program using a vector for deck rather than a two-dimensional array. Do you prefer vectors or arrays for this problem? Why? Tuesday by 8am Points 2 Submitting a file upload Available after Mar 7 at 9:30 f Cards Lab.docx e File Preview Deck of Cards Lab Create and display a deck of 52 cards: 1) Begin with your Card class from the Card Class Lab. Write a new main program which creates a deck of cards as a two-dimensional array deck/41/13J. Display the deck like this: Spade Ace Spade 2 Spade 3 Spade 4 Spade 5 Spade 6 Spade 7 Spade 8 Spade 9 Spade 10 Spade Jack Spade Queen Spade King Heart Ace Heart 2 Heart 3 Heart 4 Heart 5 Heart 6 Heart 7 Heart 8 Heart 9 Heart 10 Heart Jack Heart Queen Heart King Diamond Ace Diamond 2 Diamond 3 Diamond 4 Diamond 5 Diamond 6 Diamond 7 Diamond 8 Diamond 9 Diamond 10 Diamond Jack Diamond Queen Diamond King Club Ace Club 2 Club 3 Club 4 Club 5 Club 6 Club 7 Club 8 Club 9 Club 10 Club Jack Club Queen Club King Separate your class definition and main program from part 2 into two files. Ensure you can build and run your program. 2) 3) Rewrite your main program using a vector for deck rather than a two-dimensional array. Do you prefer vectors or arrays for this problem? Why
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
