Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need as soon as possible. please use class. thanks Deck of Cards Lab 1) Program a Card class with these member variables . number

I need as soon as possible. please use class. thanks

image text in transcribed

Deck of Cards Lab 1) Program a Card class with these member variables . number an integer between 1 and 13 suit -an enumerated data type with values Spade, Heart, Diamond, Clubl . description a string with card name for example "Spade Ace" or "Heart 5" A card object with number 1 is an Ace. Number 11 represents a Jack, 12 represents a Queen, and 13 represents a King Your class should have set and get member functions to update and return the value of each member variable 2) Write a main program which creates and displays a deck of 52 cards. The display should look something 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 Diamond8 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 3) Separate your class definition and main program from part 2 into two files. Ensure you can build and run your program

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Joe Celkos Data And Databases Concepts In Practice

Authors: Joe Celko

1st Edition

1558604324, 978-1558604322

More Books

Students also viewed these Databases questions

Question

What is the Definition for Third Normal Form?

Answered: 1 week ago

Question

Provide two examples of a One-To-Many relationship.

Answered: 1 week ago