Answered step by step
Verified Expert Solution
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started