-
Notifications
You must be signed in to change notification settings - Fork 70
Open
Description
"Create ranks, suits, and pointValues of length 52. Ranks contains 4 1's, 4 2's, 4 3's, ..., up to 4 Ace's. Suits contains 13 hearts, 13 spades, 13 diamonds, and 13 clubs. pointValues contains 4 1's, 4 2's, 4 3's, ..., 16 10's, and 4 11's."
First off,, "4 1's" is inaccurate. There is no card with a value of 1 in this game.
Secondly, this answer is pretty vague, and does not give the specific code, that the lab is probably looking for. The correct answers might look something like this:
String[] ranks = [2, 3, 4, 5, 6, 7, 8, 9, 10, Jack, Queen, King, Ace];
String[] suits = ["Spades", "Hearts", "Diamonds", "Clubs"];
int[] pointValues = [2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10, 11];
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels