Skip to content

Activity 2 #3 is incorrect. #3

@CrazedCoderNate

Description

@CrazedCoderNate

"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];

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions