Question: 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!