Find Jobs
Hire Freelancers

Write some Software .

$10-100 USD

Closed
Posted over 7 years ago

$10-100 USD

Paid on delivery
This program should allow a user to play four different games and keep track of the total winnings or losses for each game. In addition, the casino will add the following percentage of winnings to each player: Total Winnings: Additional Percentage of Winnings: $[url removed, login to view] or less 1.3% $[url removed, login to view] to $[url removed, login to view] 1.7% $[url removed, login to view] to $[url removed, login to view] 2.2% More than $600 3.3% The Games: 1. Roulette: A roulette wheel has slots numbered from 1 to 36 along with a 0 slot and a 00 slot. Allow the user to either bet on a specific slot which pays 35 to 1 (that is, for ever $1 bet, the user wins $35) or allow the user to bet on even or odd which pays 1 to 1. If an even or odd bet is placed and the wheel comes up 0 or 00, the player loses. 2. Chuck-a-luck Five dice are rolled. The user bets on a specific number from 1 to 6. Count the number of the five dice that match the user's number. If there is at least one matching number, the user wins the number of matching numbers * bet amount. If none of the 5 dice match the user's number, the user loses their bet. For example, if the user bets on 4 and the dice come up 2 4 2 4 5, the user wins two times the bet amount. 3. Pick 4: The user selects four digits from 0 to 9 to bet on. Four random numbers from 0 to 9 are then picked and the number of matching numbers are found. If the user gets no matching numbers, the user loses their met. If the user gets 1 matching number, the user breaks even, If the user gets 2 matching numbers, the user wins double their bet amount. If the user gets 3 matching numbers, the user wins four times their bet amount. If the user gets all 4 matching numbers, the user wins fifty times their bet amount. For example, the user picks 7, 1, 4, 2 and the random numbers come up as 7, 4, 1, 2, the user matched two numbers and wins double their number. 4. A Game of Your Choice (Creativity Chance): Please include documentation (comments) stating the rules for your game and how the betting is done. ------ For each game, first ask the user how many times they would like to play the game along with their full name. Please make sure to include output for each of the four games. For each game, print out the player's name, the results of each game played, the total winnings/losses, the additional winnings paid by the casino if any, and the total winnings/losses with the additional winnings paid by the casino if any. The program should use virtual functions including at least one pure virtual function with polymorphism. The program should have one class for each game along with a base-class that contains the appropriate data members and methods. I have added a few example programs. Price: $100 Due Date: Thursday, December 8th at 12 PM PST Sample Output for Roulette, the other 3 games should be similar: What is your full name? Joe Gambler How many times would you like to play Roulette? 3 Roulette Game 1 How much would you like to bet? 10 Would you like to bet on a specific number (N) or on odd/even (O)? N What number would you like to bet on? 25 The wheel came up on 12. You lose $[url removed, login to view] Roulette Game 2 How much would you like to bet? 30 Would you like to bet on a specific number (N) or on odd/even (O)? O Are you betting on even (E) or odd (O)? O The wheel came up on 17. You lose $[url removed, login to view] Roulette Game 3 How much would you like to bet? 10 Would you like to bet on a specific number (N) or on odd/even (O)? N What number would you like to bet on? 00 The wheel came up on 33. You lose $[url removed, login to view] Final results for Joe Gambler after 3 games of Roulette: Joe Gambler won a total of $[url removed, login to view] The casino will add a bonus of 1.3% to your winnings The casino bonus is $[url removed, login to view] Joe Gambler total winnings are $[url removed, login to view]
Project ID: 12310306

About the project

8 proposals
Remote project
Active 7 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
8 freelancers are bidding on average $108 USD for this job
User Avatar
I m software engineer. I have read the description and i want to work for you for further details please inbox me. Thank you
$150 USD in 1 day
4.9 (55 reviews)
5.9
5.9
User Avatar
You have already posted this project. What was wrong? Is it deadline today? Do you have description for 4th game? Can you attach some files?
$100 USD in 0 day
0.0 (0 reviews)
0.0
0.0
User Avatar
I'm a C proficient with many years of proven experience in the industry. I'm ensuring you to deliver a perfect project in the agreed time.
$100 USD in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
i will deliver it in time with best wffort. I am new here but i am very good at my work. hope u give me a try
$100 USD in 5 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED STATES
placentia, United States
5.0
1
Payment method verified
Member since Dec 8, 2016

Client Verification

Other jobs from this client

Hire a C++ Programmer
$10-30 USD
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.