Create a structure that will represent a deck of cards, Programming Languages

We want to create a structure that will represent a deck of cards  (not necessarily full). Each card has a character (between  '2'  to  '9' and  'T',  'J',  'Q',  'K',  'A') and a suit (diamonds, hearts, clubs, spades):

a)  Choose a representation for each card and also for the deck of cards (it can be empty or non-empty)

b)  Define an add_card predicate that takes a card and a deck and adds the card if it is not already there (i.e. no duplicates) creating a new deck of cards. If the card is not of a valid suit or number this predicate will simply do nothing.

Posted Date: 3/22/2013 5:57:08 AM | Location : United States







Related Discussions:- Create a structure that will represent a deck of cards, Assignment Help, Ask Question on Create a structure that will represent a deck of cards, Get Answer, Expert's Help, Create a structure that will represent a deck of cards Discussions

Write discussion on Create a structure that will represent a deck of cards
Your posts are moderated
Related Questions
I do have an assignment in operating systems programming ... how can i attach my file?

Write a java program for inserting a particular node.

I need someone to make an ER diagram.

How do you print triangles using for loops and if statements

Objective: to show if the sizes of the clusters influence the communication cost among a set on nodes Write a K-Means  program  for a set of M points randomly distributed on an

Normal 0 false false false EN-US X-NONE X-NONE MicrosoftInternetExplorer4

what is a microprocessor? types of microprocessors? advantages disadvantages

Normal 0 false false false EN-US X-NONE X-NONE MicrosoftInternetExplorer4


Develop a socket program in UNIX/Linux that uses (i) TCP as the transport protocol and  (ii) UDP as the transport protocol for transferring  a short message between a client and  s