Find Jobs
Hire Freelancers

Characters of the West C++ Program

$10-30 USD

Anulowano
Opublikowano prawie 7 lat temu

$10-30 USD

Płatne przy odbiorze
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]>
Identyfikator projektu: 14044803

Informację o projekcie

12 ofert
Zdalny projekt
Aktywny 7 lat temu

Szukasz sposobu na zarobienie pieniędzy?

Korzyści ze składania ofert na Freelancer.com

Ustal budżet i ramy czasowe
Otrzymuj wynagrodzenie za swoją pracę
Przedstaw swoją propozycję
Rejestracja i składanie ofert jest bezpłatne
12 freelancerzy składają oferty o średniej wysokości $63 USD dla tej pracy
Awatar Użytkownika
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 w 2 dni
4,9 (459 opinii)
8,5
8,5
Awatar Użytkownika
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 w 1 dzień
4,9 (63 opinii)
6,7
6,7
Awatar Użytkownika
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 w 2 dni
4,8 (71 opinii)
6,4
6,4
Awatar Użytkownika
need an A grade? contact me
$96 USD w 1 dzień
5,0 (28 opinii)
5,6
5,6
Awatar Użytkownika
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 w 5 dni
4,7 (42 opinii)
4,9
4,9
Awatar Użytkownika
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 w 1 dzień
5,0 (25 opinii)
4,2
4,2
Awatar Użytkownika
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 w 1 dzień
4,9 (8 opinii)
3,7
3,7
Awatar Użytkownika
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 w 2 dni
0,0 (0 opinii)
2,2
2,2
Awatar Użytkownika
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 w 1 dzień
0,0 (0 opinii)
0,0
0,0
Awatar Użytkownika
A proposal has not yet been provided
$30 USD w 1 dzień
0,0 (0 opinii)
0,0
0,0
Awatar Użytkownika
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 w 1 dzień
0,0 (0 opinii)
0,0
0,0
Awatar Użytkownika
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 w 1 dzień
0,0 (0 opinii)
0,0
0,0

O kliencie

Flaga UNITED STATES
Folsom, United States
5,0
1
Zweryfikowana metoda płatności
Członek od mar 13, 2017

Weryfikacja Klienta

Dziękujemy! Przesłaliśmy Ci e-mailem link do odebrania darmowego bonusu.
Coś poszło nie tak podczas wysyłania wiadomości e-mail. Proszę spróbować ponownie.
Zarejestrowani Użytkownicy Całkowita Liczba Opublikowanych Projektów
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Wczytywanie podglądu
Udzielono pozwolenia na Geolokalizację.
Twoja sesja logowania wygasła i zostałeś wylogowany. Proszę, zalogować się ponownie.