Menu

Write Test Driver Creates Five Random Cards E Uses Default Constructor Outputs Creates Fi Q43815510

Write a test driver that creates five random cards (i.e. usesthe default constructor) and outputs them. Then creates five morecards of specific face/rank and suit values (i.e. uses the firstconstructor) and outputs them. The specific cards should includetwo with ‘boundary’ values: i.e. face 1, suit 1 and face 13, suit4. The final card should use invalid face and suit values, such as15 and 5. You should not need to prompt the user for anything, justhard-code the calls like Card card6 = new Card(1,1);

Expert Answer


Answer to Write a test driver that creates five random cards (i.e. uses the default constructor) and outputs them. Then creates fi…

OR