IN C++ Back Alley Dice Rolling Your task is to create a game in which you roll t
ID: 3690291 • Letter: I
Question
IN C++
Back Alley Dice Rolling 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. 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 (user input is underlined): 2 happened 2.7849% 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.1616% 13 happened 0.0057% 14 happened 0.0002%Explanation / Answer
Program:
OR)
METHOD 2: