Cancelled

Characters of the West C++ Program

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 <[url removed, login to view]>

Skills: C++ Programming

See more: program c++ online, program c# online, program c++ freelance, cannot run program c users leila appdata local android sdk tools android bat createprocess error 2 the system cannot find the fi, program c online, program c, freelance linux program c, wild west game characters, lowest score quiz, wild west characters low poly, wild west characters, model wild west characters, winmugen full game characters, replace game characters, can find mini moving game characters, sample java program finding highest lowest score, download winmugen game characters, flash game characters, indian characters, flash special characters xml

About the Employer:
( 1 review ) Folsom, United States

Project ID: #14044803

12 freelancers are bidding on average $63 for this job

Yknox

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 continousl More

$103 USD in 2 days
(459 Reviews)
8.5
szymszteinsl

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
(63 Reviews)
6.7
hbxfnzwpf

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 environ More

$150 USD in 2 days
(71 Reviews)
6.4
asadrana91

need an A grade? contact me

$96 USD in 1 day
(28 Reviews)
5.6
shahidost

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 pr More

$100 USD in 5 days
(42 Reviews)
4.9
sujanttt

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 fr More

$25 USD in 1 day
(25 Reviews)
4.2
soumenmurmu

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
(8 Reviews)
3.7
Vadiklk

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 More

$30 USD in 2 days
(0 Reviews)
2.2
adaptivesam

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 Reviews)
0.0
kaypeedub

A proposal has not yet been provided

$30 USD in 1 day
(0 Reviews)
0.0
andrewhess7

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 pr More

$25 USD in 1 day
(0 Reviews)
0.0
paunelcosmin

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 Reviews)
0.0