Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a test driver that creates five random cards (i.e. uses the default constructor) and outputs them. Then creates five more cards of specific face/rank

Write a test driver that creates five random cards (i.e. uses the default constructor) and outputs them. Then creates five more cards of specific face/rank and suit values (i.e. uses the first constructor) and outputs them. The specific cards should include two with boundary values: i.e. face 1, suit 1 and face 13, suit 4. The final card should use invalid face and suit values, such as 15 and 5. You should not need to prompt the user for anything, just hard-code the calls like Card card6 = new Card(1,1);

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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