Question: C++ coding I have the actual game coded and working properly, just not sure how to keep track of the scores and get the desired
C++ coding
I have the actual game coded and working properly, just not sure how to keep track of the scores and get the desired output

Your task is to create a game in which you roll two dice. Scoring follows the rules below Roll 1-11: Score the total value on the dice Roll 12: Add one to the score and roll again The "roll 12" rule can be hit multiple times. For example, if you roll (6,6) then (6,6) then (1,1), your total score for that game will be 4 (1+1+2-4). Write a program that simulates one round of this game. (Note: You will need to use the srand (time (0)) and rand () functions again). Next, write a loop that simulates 1,000,000 rounds of the game, keeping track of how many times you saw each final score. Then, display the results, showing every score that occurred and what percent of the time the score occurred. Your numbers should be close, but slightly different than the output below Example 1: 2 happened 2.78498 3 happened 5.6273% 4 happened 8.4885% 5 happened 11.3272% 6 happened 14.2608% 7 happened 17.0131% 8 happened 14.3852% 9 happened 11.5054% 10 happened 8.6338% 11 happened 5.8063% 12 happened 0.16168 13 happened 0.0057% 14 happened 0.0002%
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
