Find Jobs
Hire Freelancers

Characters of the West C++ Program

$10-30 USD

Cancelled
Posted almost 7 years ago

$10-30 USD

Paid on delivery
The program must meet all constraints and needs three bonuses. A bonus for example is an input validation. I need it done as soon as possible. Problem. A Person class holds the first and last name of a person. In addition to it’s constructors, it has a Show() method that displays both names and other class data. It also has a Drink() method which causes the bartender to pour a drink. This method has a 10% chance of getting called every turn. A Gunslinger class derives from the Person class. It has a Draw() method that returns a type double value representing a gunslinger’s draw time (from 1 to 10). The class also has an int member representing the number of notches on the gunslinger’s gun. It has a play() method to generate cards like the PokerPlayer() below. A PokerPlayer class derives virtually from the Person class. It has a Play() method that returns a random number in the range 1 .. 52, representing a card value. The highest card value wins. The PokerPlayer class uses the Person show() function. Define all these classes and methods, along with any other necessary methods. A CardSharp() class is also a child of the Person() class. It has a Draw() method that also returns a draw time, but it is an int ranging from 5 to 15. There is a Play() method which returns a random card, like PokerPlayer(), but part of the time (25%) it will cheat and use a card already used. The Gunslinger() class has a 50% chance of detecting this and shooting the CardSharp(). See the shooting behavior below. Each drink increases the chance of cheating by +5%. Finally, we have a Bartender() class. The Draw() method for this class will cause it to pour a beer. Create a saloon where 4 random players are playing poker. If two players shoot each other, the one with the lowest score wins. Shot players are always killed and replaced with a random player. Every turn display what the various characters are doing while they play poker. The game ends when all the cards are played and the player who has won the most hands is the winner. Constraints. • Include methods for setting object values. • Include in every class a method which will show all the data for that class. • Randomly select a name for each character. • Make sure you have 1 of each class playing to start. Suggested Bonus Features. • Define a Card class with a suit and face value members and use a Card return value for Draw(). The code must run on a Ubuntu 16.04 linux system. It needs to compile with the following g++ -std=c++11 -g -Wall <[login to view URL]>
Project ID: 14044803

About the project

12 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
12 freelancers are bidding on average $63 USD for this job
User Avatar
Hello I'm interesting your project very well I'm a Good C++, xamarin, OpenCV, Math, Jave, Algorithm expert. I m quite well experienced in these jobs. Let's go ahead with me I want to service for you continously. Thanks
$103 USD in 2 days
4.9 (459 reviews)
8.5
8.5
User Avatar
Ready to work !Ready to work !Ready to work !Ready to work !Ready to work !Ready to work !Ready to work !Ready to work !Ready to work !Ready to work !Ready to work !Ready to work !Ready to work !Ready to work !
$100 USD in 1 day
4.9 (63 reviews)
6.7
6.7
User Avatar
I am very proficient in c and c++. I have 16 years c++ developing experience now, and have worked for more than 7 years. My work is online game developing, and mainly focus on server side, using c++ under Linux environment. I made many great projects using c++, for example, I made the tools which could convert java codes into c++ scripts, of course garbage collection included, this was very similar to a compiler, and was very complex. I also made our own mobile game using c++, I can show you the demo of client, if you like. I am very proficient in java also. I have a very good review on Freelancer.com, I never miss a project once I accept the job, you can check my review. Trust me, please let expert help you.
$150 USD in 2 days
4.8 (71 reviews)
6.4
6.4
User Avatar
need an A grade? contact me
$96 USD in 1 day
5.0 (28 reviews)
5.6
5.6
User Avatar
Hi, I hope you will be doing well. I believe on perfect work with 100% satisfaction of my client then payment. I deliver only exceptionally robust and well-designed work as a rule to my client. I understand your project and I am confident that I can do your project with great accuracy and 100% efficiency. I have seven years programming/teaching experience in Java/ C++/ C/Matlab/Software Architecture/ C#/Algorithm Design and Analysis. I am software developer and providing software solutions to my client from last seven years. I will provide you quality work with 100% accuracy. I want to do best to best work for my client, gain 100% satisfaction and quality work. You can trust me and consider me for your project. I am also faculty member (Instructor) at Computer Science and Engineering Department in FAST-NUCES National University Pakistan since February 2013. Thanks! Best Regards, Engr. Shahi
$100 USD in 5 days
4.7 (42 reviews)
4.9
4.9
User Avatar
Hello sir, I am interested in your project. I have been providing my service since 2 years and would like to do the same for you as well. I have read the description about the project. It will take less than 6 hours from now. I am excited for the project, I really want to do it. I am going to use my knowledge of c++ to create the program you need. And yes it will compile on Ubuntu systems with g++. If you have any questions regarding the project or anything please feel free to message me I will be replying you at any time. Thank you.
$25 USD in 1 day
5.0 (25 reviews)
4.2
4.2
User Avatar
i am an experienced c,c++ programmer and developed codes for windows, linux and mac os x platforms. u can visit my profile to view my related tasks.
$30 USD in 1 day
4.9 (8 reviews)
3.7
3.7
User Avatar
From what it looks like its a homework question. I can complete it in a few hours and if awarded quickly can be submitted to you today. It's a really easy task for a C++ software developer like me. You should pick for the communication rather than a pakistani kid.
$30 USD in 2 days
0.0 (0 reviews)
2.2
2.2
User Avatar
Hello, I am confident I can get this done for you by tomorrow. Do you have a link/pdf with more details on the project? Regards, Sam
$42 USD in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
A proposal has not yet been provided
$30 USD in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
I recently completed a small project involving inheritance in C++, so I am familiar with the topic and using virtual methods. Additionally, I can run the program on Ubuntu using the specified command to make sure my program will work on the type of computer you requested.
$25 USD in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
Had a done a lot of programming tasks, during my life. I just graduated uni last year. I started programming when i was 10.
$25 USD in 1 day
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED STATES
Folsom, United States
5.0
1
Payment method verified
Member since Mar 13, 2017

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) & Freelancer Online India Private Limited (CIN U93000HR2011FTC043854)
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.