Rent A Coder Alert: If you are receiving an error that says: 'page not found', or 'system could not find the file specified' on this site, it is caused by a bug in your browser. Please click here to fix it. (To disable this alert, click here).

    How Software Gets Done  


(No Login on Secured Page)

Custom Software Buyers
Request new bids
Search Coders
My Account
 
My Buyer 'To Do' List
 
My bid requests
  My escrow account
 
My General Info
Verification
 
Help for Buyers
Articles for Buyers
FAQ for Buyers
Latest News
 

Custom Software Coders

Newest open work
Browse all work
Search all work
My Account
 
My Coder 'To Do' List
 
My bids
 
My General Info
  My credit account
 
Help for Coders
Articles for Coders
FAQ for Coders
Latest News
 

Affiliates

My account
 
My pipeline
 
My credit account
 
Help for Affiliates
Latest News
 
Newest Open Bid Requests.
Website Redesign
By kurtk on May 23
Max Bid: Open to fair suggestions


web page sports club
By mdelanders on May 23
Max Bid: Open to fair suggestions


Linux C programming (URGENT!!)
By AcidBurn on May 23
Max Bid: Open to fair suggestions


Logo, Splash, Screen Layout
By Kellog on May 23
Max Bid: $150


Content Management System
By dmillner on May 23
Max Bid: Open to fair suggestions


vb help
By innovate on May 23
Max Bid: Open to fair suggestions


Click here to put this ticker on your own site

Open Work Categories.
Database 
(154 open)
   Access 
(59 open)
   MySQL 
(75 open)
   Oracle 
(9 open)
   SQL Server 
(63 open)
   Other DB 
(22 open)
Documentation / Tech Writing 
(21 open)
Data Entry 
(20 open)
Game Development 
(21 open)
Graphics / Art / Music 
(65 open)
   Graphics 
(67 open)
     3d Animation 
(20 open)
   Art (Misc.) 
(24 open)
   Music 
(17 open)
   3d Modeling 
(17 open)
Language Specific 
(117 open)
   ASP 
(65 open)
   ASP .NET 
(17 open)
   C# 
(33 open)
   C++ / C 
(110 open)
   Carbon (Mac OS) 
(3 open)
   Cocoa / Obj-C 
(1 open)
   Cold Fusion 
(9 open)
   Delphi 
(35 open)
   Java 
(57 open)
   JSP 
(4 open)
   Perl 
(39 open)
   PHP 
(89 open)
   XML/XSL 
(24 open)
   Visual Basic 
(144 open)
   Visual Basic .Net 
(63 open)
   Other 
(54 open)
Misc 
(37 open)
   CAD 
(5 open)
MultiMedia 
(42 open)
Network 
(38 open)
   Network Design 
(10 open)
   Network Implementation 
(12 open)
Platforms 
(71 open)
   Windows 
(156 open)
     MS Exchange 
(3 open)
     MS Office 
(16 open)
     Other 
(13 open)
   Darwin 
(3 open)
   Internet Browser 
(42 open)
   Linux 
(56 open)
   UNIX 
(29 open)
   Hand Held/PDA Programming 
(12 open)
Requirements 
(11 open)
Security 
(33 open)
Testing / Quality Assurance 
(16 open)
Web 
(174 open)
   Page Design 
(91 open)
   Flash 
(63 open)
   Web Services 
(78 open)
   Web (Other) 
(98 open)
Training 
(11 open)
   Computer Based 
(14 open)
 
Other
 
Other Sites

Download the free Rent A Coder IE toolbar!
 
Show Bid Request

C++ Home Work Assignment Help
Bid Request Id: 13213
Bookmark in my 'To Do' list
Posted by: COLLEGE-STUDENT (1 ratings)
(Software buyer rating 10)
Non-action Ratio: Very Good - 18.18%
Posted: Apr 11, 2002
5:04:29 AM EDT
Bidding Closes: Apr 14, 2002
5:06:31 AM EDT
Viewed (by coders): 206 times
Deadline: 4/15/2002
TIME EXPIRED
Phase:
100% of work completed and accepted. Coder has been paid.
Max Accepted Bid: Bidding is closed
Project Type: Personal Project / Homework Help
Bidding Type: Open Auction
Categories: C++ / C
Enter chat room for this bid request
(0 active users at May 23, 2003 9:42:01 PM EDT)

Description:
A program that evaluates a single poker hand. Display the hand and print out what type it is. The ranks of hands are listed below from highest ranking to lowest ranking.

Use a structure for the card, and an array of structures for the hand. Write a function for each type of hand, returning 1 if the hand fits that criterion, and 0 if it doesn&'t.

The structure you will use should look something like the following:
struct card
{
char suit; /* 'C', 'D', 'H', 'S' - for clubs, diamonds, hearts, and spades*/
int value; /* 2…10, Jack, Queen, King,Ace- 2-14 */
};
struct card hand[5];

To test this program create 10 files, one for each ranking hand, and read a single file into the program, but allow more than one file to be tested at any single run of the program. That means you must have a character array for the filename, so that the user may enter different file names within a loop structure.

When you display the hand, you should obviously print out the cards more meaningfully. For instance, C 5 would be the 5 of clubs, S 11 would be the Jack of Spades.

Royal Flush:
A, K, Q, J, 10 all of the same suit.
Straight Flush:
Any five card sequence in the same suit. (Ex: 7, 8, 9, 10, J and A, 2, 3,
4, 5 of same suit).
Four of a Kind:
All four cards of the same value (Ex: J, J, J, J).
Full House:
Three of a kind combined with a pair (Ex: K, K, K, 10, 10).
Flush:
Any five cards of the same suit, but not in sequence.
Straight:
Five cards in sequence, but not in the same suit.
Three of a Kind:
Three cards of the same value (Ex. J,J,J).
Two Pair:
Two separate pairs (Ex: A, A, 8, 8).
Pair:
Two cards of the same value.
High Card

For extra credit

Modify the program you wrote above in a second program to deal out four hands. Declare a struct card deck[52] to represent the whole deck. Initialize the deck with all the cards, perhaps in a file to read needing no user input, and using srand( ) and rand( ) deal out the four hands, evaluating each hand.
Then to deal out four poker hands use random numbers from 0 to 51 for the index values of the array deck. Make sure that you don't deal out duplicate cards - you may need another field in the structure to accomplish that.


Deliverables:
Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.

Complete copyrights to all work purchased.


Platform:
Platform to be used is Microsoft Visual C++ 6.0.
Prgram should be running in it error & warning free.

Must be 100% finished and received by buyer on:
Apr 15, 2002 EDT
Deadline legal notes: All times are expressed in the time zone of the site EDT (UT - 5). If the buyer omitted a time, then the deadline is 11:59:59 PM EDT on the indicated date.


Remember that contacting the other party outside of the site (by email, phone, etc.) on all business projects < $500 (before the buyer's money is escrowed) is a violation of both the software buyer and seller agreements. We monitor all site activity for such violations and can instantly expel transgressers on the spot, so we thank you in advance for your cooperation. If you notice a violation please help out the site and report it. Thanks for your help.
 
Bidding/Comments:
All monetary amounts on the site are in United States dollars.
Rent a Coder is a closed auction, so coders can only see their own bids and comments. Buyers can view every posting made on their bid requests.

See all rejected bids (and all comments)
Name   Bid Amount 
 
Date   Coder Rating  
This bid was accepted by the buyer!
cchristoforos
(2 ratings)
in Larnaca, Larnaca
Cyprus
Bid id: 146,712
 
$15 (USD) Apr 11, 2002
11:59:32 AM EDT
 8.5
(Very Good)
   
Well,

Not much to say here!
Very easy program. Can have it ready to submit within two hours fully commented and fully functional.

cchristoforos.
 




Quick Search
 

 Advanced Search
Newest Open Work
Latest News

 
Credentials


 

 
Rent A Coder upholds the rigorous business practices required to be both a BBB member and Square Trade vendor.
  • All customer issues addressed within 2 days
  • Openly disclosed pricing and return policies
  • Participation in mediation at buyer request
  • Superior selling track record
This site is verified through its parent company, Exhedra Solutions, Inc.
 

Rent A Coder Top Coders.


Securenext
Rated a 9.98 on 99 jobs 
Anuj Gakhar
Rated a 9.98 on 92 jobs 
Codman
Rated a 9.97 on 144 jobs 
Buddies
Rated a 9.82 on 76 jobs 
Andrei Remenchuk
Rated a 10 on 12 jobs 
Michael Sharp
Rated a 9.97 on 178 jobs 
RNA
Rated a 9.92 on 37 jobs 
markesh
Rated a 10 on 22 jobs 
teleCODERS
Rated a 9.93 on 67 jobs 
hernest
Rated a 10 on 109 jobs 

See all top coders...

(What makes a top coder?)

Top Exam Scorers
 
Other
Rent A Coder is PayPal verified through its parent company, Exhedra Solutions, Inc.

Created in partnership with:

 


Affiliate Sites



Latest News | About Us | Kudos | Feedback/Contact    Affiliates | Advertise    Privacy | Legal

Copyright © 2001, Exhedra Solutions, Inc. All rights reserved.
By using this site you agree to its Terms and Conditions.
"Rent A Coder" (tm), "Safe Project Escrow" (tm) and "How Software Gets Done" (tm)
are trademarks of Exhedra Solutions, Inc.