Question: C++ (Please read carefully the instruction and do not copy of other answers) ** The code should be written in only C++** And the ouput

C++ (Please read carefully the instruction and do not copy of other answers)

** The code should be written in only C++**

And the ouput of the code should be exactly like the output in the below instruction. Thanks,

C++ (Please read carefully the instruction and do not copy of otheranswers) ** The code should be written in only C++** And the

Problem A: Dice game (20 points) Suppose you have a game where you roll two dice, that follow these rules: Roll 1-11: Get that value Roll 12: Reroll and add one to the value The "roll 12" rule can be hit multiple times. For example, if you roll (6,6) then (6,6) then (1,1), your total value for that game will be 4 (as 1+1+2-4). Write a program that simulates one iteration of this game. After making this part, ask the user how many times you want them to simulate the game. Then simulate the game the requested amount of times and show what percentage each game value occured. Note: Make sure you use srand(time(0)) or srand(time(NULL)) (same thing) at the start of your main once and never again Example 1 (user input is underlined, but values are random for low input): How many simulations? 1 11 happened 100%

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!