Find Jobs
Hire Freelancers

Specialized Poker game

$30-5000 USD

Completed
Posted almost 21 years ago

$30-5000 USD

Paid on delivery
Write a C program that will do the following: a. Print out your name and the filename. b. You will be gathering data on common poker hands, so you will be dealing 5 cards to create 10 hands in each deck and dealing 100 decks of cards to accumulate your data. You will initialize your random number generator with a seed generated from your birthday, mine is 6250 for 6-2-50. Print out the seed number used. c. Use rand to generate a deck of cards by getting a random integer and saving it in deck[0][0] through deck[51][0]. At the same time you will be saving an integer value in deck[0][1] through deck [51][1] using the counter value%13 (where the counter starts at 0 and stops after 51). This ensures that you have 52 cards with 4 zeroes, 4 ones, 4 twos ?. 4 twelves contained in the second column of your deck matrix. d. Use and/or modify the sort.c function attached, to reorder (or shuffle) each deck before dealing out the 10 hands. (Arranging the random integers in ascending order will effectively shuffle the card numbers in the other column). Pass the matrix to your sort function and reorder the rows based upon the integers in the first column. e. Count the number of hands that have the following characteristic and print out how many of the possible 1000 hands you dealt had the characteristic assigned to you. Use the month of your birthday to determine which hand is the one you count. December - a hand with no face cards (face cards being cards numbered 0, 9, 10, 11 and 12) ## Deliverables 1) Complete and fully-functional working program(s)(ONLY IN C, not C++) in executable form as well as complete source code of all work done. Readable and writable so that comments can be added... ## Platform UNIX, visual C++, any .c program. running on school ethernet to Dell Optiplex computers with Pentium III processors...Windows NT.
Project ID: 2931481

About the project

10 proposals
Remote project
Active 21 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
See private message.
$1 USD in 14 days
5.0 (3 reviews)
1.9
1.9
10 freelancers are bidding on average $73 USD for this job
User Avatar
See private message.
$25.50 USD in 14 days
4.9 (212 reviews)
5.8
5.8
User Avatar
See private message.
$25.50 USD in 14 days
5.0 (29 reviews)
4.7
4.7
User Avatar
See private message.
$32.30 USD in 14 days
4.9 (79 reviews)
4.7
4.7
User Avatar
See private message.
$25.50 USD in 14 days
5.0 (35 reviews)
4.6
4.6
User Avatar
See private message.
$11.05 USD in 14 days
4.2 (111 reviews)
4.4
4.4
User Avatar
See private message.
$32.30 USD in 14 days
5.0 (19 reviews)
3.2
3.2
User Avatar
See private message.
$8.50 USD in 14 days
0.0 (0 reviews)
0.0
0.0
User Avatar
See private message.
$506.60 USD in 14 days
0.0 (1 review)
0.0
0.0
User Avatar
See private message.
$59.50 USD in 14 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED STATES
United States
5.0
1
Member since May 2, 2003

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.