Question: write in c++ please In this project, you are asked to design and code a guessing game. The game works as follows: the player deposits

 write in c++ please In this project, you are asked to

write in c++ please

In this project, you are asked to design and code a guessing game. The game works as follows: the player deposits and initial $1000. Then he can bet anywhere between 1/10 of the money he has or all of it (so in increments of 1 to 10, where 1 would be a tenth of his money, 2 would be 2/10 of his money and so on 10 would be all his money. The guessing is about a number between 1 and 10 (don't confuse this with the amount he bets); if the player guesses the correct number (a number between 1 and 10) randomly generated by the computer, then he wins 10 times what he bet, otherwise he loses his bet. #include srand(time(0)); int n = rand(%10 + 1;// int between 1 and 10; cout

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!