Thursday, August 11, 2011

Write pseudocode for an algorithm to create an array representing a deck of cards.?

Write pseudocode for an algorithm to create an array representing a deck of cards. Each card should be a string describing the card, with denomination (2-10, jack, queen, king, or ace) and suit (clubs, diamonds, hearts, spades) plus two jokers. You may use the pseudocode operator "+" to concatenate two strings. Do NOT use 54 declarations or the equivalent to initialize the array elements; instead, use a loop or loops.

No comments:

Post a Comment