C++ assigment Easy dice game

Completed Posted Oct 2, 2013 Paid on delivery
Completed Paid on delivery

Has to be done before 12.00 CET, 5 october 2013

Assignment, you should develop a C + + program in which the user must challenge the computer in a game of dice. The game is based on the user and the computer will throw two dice at a time in three innings. Whoever strikes the highest individual dice wins the round. Best of three rounds applies, ie .if someone wins two rounds in a row does not need the third round to be played. At the beginning of the program, the user must enter how much money he/she wants to invest, 100$ , 300$ and 500$ . If the user win a game he/she obtained the sum of the user and the computer, but if he/she lose to the computer the bet is lost.

The following requirements must be met in your program:

• For each round must the user and the computer's dice rolls be reported.

• Clearly indicate who won the game overall and who won each round.

• Unnecessary innings will not be played, ie . if someone wins two rounds in a row.

• The user can play as many times as you like and decide when to terminate

the program.

• If the gamer succeed to win a game, then the program will print out the current win and the

Total prize money (if the user has played several times).

• If the computer wins a game, the program will print a comforting message and the

Total prize money that is left.

• The user may play the maximum of $ 5,000 at a time.

• If there is money deposited then the player does not need to put more money in the new game.

• The payment torque can be symbolized for example by information on deducting money from the user's account. Please use an integer reduced and increased depending on

current profits and losses.

• The dices can be symbolized using a predefined random function, for example.

rand( ) that returns a random integer.

Hint: use the following code somewhere in your program:

# include ;

srand (time (0) ), / / Use only once

int random = rand () % 6 + 1;

In order to solve the above requirements, you must identify all sub-problems and then

solve the hidden assumptions and requirements that are not listed in the job description.

In many cases, there is a large margin of interpretation and then you are able to solve

the task on its own best way.

It is important that you write down a small report and describes the hidden assumptions and the requirements which you have identified.

Above assignment has to be done in C++ and must be able to compile and work in in Dev c++ (can be down loaded at Bloodshed)

C++ Programming

Project ID: #4986342

About the project

7 proposals Remote project Active Oct 2, 2013

Awarded to:

vano101

I'm C++ expert, I've installed Dev-C++ and your task looks pretty easy for me and it can be done in 24 hrs

$30 USD in 1 day
(909 Reviews)
7.3

7 freelancers are bidding on average $65 for this job

it2051229

Hi, I am placing my bid on your project because I have read the requirements and I am confident enough with my C++ skills. I am focused mostly on doing computer science homework here in freelancer.com and I would like More

$30 USD in 0 days
(602 Reviews)
7.1
hbxfnzwpf

Send u in hrs. I am very proficient in c, c++. I have 15 years c++ developing experience now, and I have worked for 5 years. My work is online game developing, and mainly focus on server side, the lauguage is c++ unde More

$55 USD in 0 days
(87 Reviews)
6.6
waqararshad

It's a very simple program i can make it in an hour or so in 20USD. Looking forward to hear from you. Regards

$30 USD in 0 days
(3 Reviews)
2.6
Usama2239

Hi, i am a computer scientist, i have made several projects in c/c++, this is really an easy task for me, you will be given a readable easy to understandable and clean code with in your time frame, if you have any qu More

$30 USD in 3 days
(5 Reviews)
2.8
waechtertroll

I can do this assignment for you untill tomorrow. You can tell me if you need a simple, straightforward, serial approach or if your assignment allows/demands the use of C++ classes representing the players. I hope, you More

$30 USD in 1 day
(3 Reviews)
2.5
grabexsofts

Expertise knowledge in C++ Loves game development, puzzles and challenges Prior experience in developing inline algorithms.

$250 USD in 2 days
(0 Reviews)
0.0