Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a simple UML that contains class name, data members, and member functions for the belowAlter the driver program ( changes highlighted in yellow -

Create a simple UML that contains class name, data members, and member functions for the belowAlter the driver program (changes highlighted in yellow -- changes start with #16)
Instantiates two Cards. Use different constructors.
Declares an array of three elements of your Card class.
Declares a pointer to your Card class. (Do not allocate memory.)
Instantiate a Card object that uses another object for initialization.
Allocates memory for the pointer (from #3).
Pass a Card by value to a function.
Pass a Card by reference to a function.
Pass a Card by const-ref to a function.
Pass a Card by pointer to a function.
Pass the array of Cards (from #2) to a function.
Create a function that instantiates a local Card object and then returns that object from the
function.
Deallocates the memory referenced by the pointer.
Instantiates a Deck object using its default constructor.
Pass a Deck by value to a function.
Return a Deck by value from a function.
In a single statement allocate a Deck and set it equal to a deck returned by ref from a function
(something like Deck deck = ReturnDeckByRef(someOtherDeck); )
In a single statement set a previously allocated Deck equal to a deck returned by ref from a
function (something like deck = ReturnDeckByRef(someOtherDeck);
In a single statement allocate a De/rand set it equal to a deck returned by value from a
function (something like Deck deck ???? ReturnDeckByValue();
In a single statement set a previously allocated Deck equal to a deck returned by value from a
function (something like deck = ReturnDeckByValue();
Call the DisplayDeck function to display all of the cards in the deck.
Call Deck.Shuffle() then call the DisplayDeck function to display all of the cards in the deck.
Call Deck.Shuffle() then call the DisplayDeck function to display all of the cards in the deck.Ccc
image text in transcribed

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_2

Step: 3

blur-text-image_3

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

Structured Search For Big Data From Keywords To Key-objects

Authors: Mikhail Gilula

1st Edition

012804652X, 9780128046524

More Books

Students also viewed these Databases questions

Question

Have you laid out a timeframe for refreshing the data regularly?

Answered: 1 week ago

Question

LO2 Discuss important legal areas regarding safety and health.

Answered: 1 week ago