In C++:
Write a program that simulates the following 2 person game.
The game first generates a particular random number. Then thegame generates 2 random numbers between 0 and 4 (one for eachplayer) until the sum of at least one of the player’s randomnumbers equals the particular random number. If a player’s sum isgreater than the particular random number then the player’s sumgoes back to zero. It is possible that both players’ sums equal theparticular random number at the same time. In this case bothplayers win.
Expert Answer
An answer will be send to you shortly. . . . .