In C++ consider rolling two six-sided dice. While the result ofeach throw is independent of all rolls that have come before, wecan still calculate the odds of rolling any given number between 2and 12. This program will calculate those odds by generating alarge number (10,000) of random values (i.e. “rolling the dice”)and storing the results in an array. When all values have beenrolled, we will display the results to the user (as percent with 2decimal place precision).
Array: x x 2 3 4 5 6 7
PayPal Gateway not configured
PayPal Gateway not configured