C++ assigment Easy dice game
$30-250 USD
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)
Project ID: #4986342
About the project
Awarded to:
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
7 freelancers are bidding on average $65 for this job
It's a very simple program i can make it in an hour or so in 20USD. Looking forward to hear from you. Regards
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
Expertise knowledge in C++ Loves game development, puzzles and challenges Prior experience in developing inline algorithms.