Find Jobs
Hire Freelancers

Characters of the West C++ Program

$10-30 USD

Annulé
Publié il y a presque 7 ans

$10-30 USD

Payé lors de la livraison
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]>
N° de projet : 14044803

Concernant le projet

12 propositions
Projet à distance
Actif à il y a 7 ans

Cherchez-vous à gagner de l'argent ?

Avantages de faire une offre sur Freelancer

Fixez votre budget et vos délais
Soyez payé pour votre travail
Surlignez votre proposition
Il est gratuit de s'inscrire et de faire des offres sur des travaux
12 freelances proposent en moyenne $63 USD pour ce travail
Avatar de l'utilisateur
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 en 2 jours
4,9 (459 commentaires)
8,5
8,5
Avatar de l'utilisateur
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 en 1 jour
4,9 (63 commentaires)
6,7
6,7
Avatar de l'utilisateur
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 en 2 jours
4,8 (71 commentaires)
6,4
6,4
Avatar de l'utilisateur
need an A grade? contact me
$96 USD en 1 jour
5,0 (28 commentaires)
5,6
5,6
Avatar de l'utilisateur
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 en 5 jours
4,7 (42 commentaires)
4,9
4,9
Avatar de l'utilisateur
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 en 1 jour
5,0 (25 commentaires)
4,2
4,2
Avatar de l'utilisateur
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 en 1 jour
4,9 (8 commentaires)
3,7
3,7
Avatar de l'utilisateur
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 en 2 jours
0,0 (0 commentaires)
2,2
2,2
Avatar de l'utilisateur
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 en 1 jour
0,0 (0 commentaires)
0,0
0,0
Avatar de l'utilisateur
A proposal has not yet been provided
$30 USD en 1 jour
0,0 (0 commentaires)
0,0
0,0
Avatar de l'utilisateur
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 en 1 jour
0,0 (0 commentaires)
0,0
0,0
Avatar de l'utilisateur
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 en 1 jour
0,0 (0 commentaires)
0,0
0,0

À propos du client

Drapeau de UNITED STATES
Folsom, United States
5,0
1
Méthode de paiement vérifiée
Membre depuis mars 13, 2017

Vérification du client

Merci ! Nous vous avons envoyé un lien par e-mail afin de réclamer votre crédit gratuit.
Une erreur a eu lieu lors de l'envoi de votre e-mail. Veuillez réessayer.
Utilisateurs enregistrés Total des travaux publiés
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Chargement de l'aperçu
Permission donnée pour la géolocalisation.
Votre session de connexion a expiré et vous avez été déconnecté. Veuillez vous connecter à nouveau.