Saturday, May 22, 2010

Visual C++ computer help. Decent help gets 10 pts?

I am a bio major that understands nothing of computer programming. It is a requirement for my degree. So if you could please help it would be greatly appreciated.


Write a program to generate five random cards from a deck of playing cards. Have at least two classes (a) a Card class containing the suit and denomination as data members (two files - the .h file and the .cpp file), and (b) a Hand Class containing are array of cards as a data member (two files - the .h file and the .cpp file). There would be a fifth file with the main function. There are 52 cards in the deck. For each card you could generate the card by either of two methods:





Method 1: Generate two random numbers for each card. The first would be between 1 and 4 for the four suits and the second random number would be between 1 and 13 for the denomination in the suit.


Method 2: Generate a random number between 1 and 52. Once that number is generated have the first 13 numbers represent Spades, the next 13 for Hearts, the next 13 for Diamonds and the last 13 for Clubs. The 13 numbers in each category would represent the denomination of the card.








Use random number generation


The numeric values used are generating the card could be either method mentioned above


Make certain that you assure that all five cards are unique


Output the five values of the card.


(e.g. The five cards are: 4 of Hearts, 3 of Diamonds, Jack of Hearts, Ace of Spades, and 7 of Clubs.)

Visual C++ computer help. Decent help gets 10 pts?
That is lot of work, may be you can contact a VC++ expert at websites like http://askexpert.info/ to help you code your project assignment.
Reply:Aren't you going to write just a little bit of code? ... so we can help you rather than do your work for you?

customer survey

No comments:

Post a Comment