Find Jobs
Hire Freelancers

Classes

$30-5000 USD

Completed
Posted about 22 years ago

$30-5000 USD

Paid on delivery
Create a class called GAMBLE with private members GUESS, FLIP, BET,and BANK is initialized to $100. Code the following member functions: PLACE-BET captures BET amounit from the user. FLIP-COIN simulates a coin flip with a random number generator and returns FLIP. GUESS captures a guess of heads or tails predicting the outcome of the flip. UPDATE adds BET to BANK or subtracts BET from BANK depending on whether GUESS matches FLIP. SHOW-BANK displays current contents of BANK. Example: You have $100 Do you want to bet? Please enter Bet amount: 10 Please enter Guess ( H for heads,T for tails):H Flip is HEADS! You win! You have $110 Do you want to bet? Please enter Bet amount:20 Please enter Guess ( H for heads,T for tails):H Flip is TAILS You lose You have $90 Do you want to bet?N ## 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 MS Visual C++ ## Deadline information keep coding simple i need this for tomarrow so i'd like to have it sometime tonight so bid accordingly. thanks
Project ID: 2838936

About the project

5 proposals
Remote project
Active 22 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.
$17 USD in 14 days
5.0 (15 reviews)
3.9
3.9
5 freelancers are bidding on average $19 USD for this job
User Avatar
See private message.
$17 USD in 14 days
5.0 (2 reviews)
5.4
5.4
User Avatar
See private message.
$15.30 USD in 14 days
5.0 (35 reviews)
5.1
5.1
User Avatar
See private message.
$33.99 USD in 14 days
5.0 (5 reviews)
2.5
2.5
User Avatar
See private message.
$12.75 USD in 14 days
4.7 (6 reviews)
1.6
1.6

About the client

Flag of UNITED STATES
United States
5.0
6
Member since Dec 6, 2001

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.