I am working on a dice rolling simulator for school that wants program to simulate rolling of 2 dice, use rand roll fist die and second die, sum of both dice should be calculated now
each die show integer value from 1 to 6
Program should roll dice 36000 times using 1 dimensional array to tally the number of times each possible sum appears
print tabular format.
Here is what I have so far but my program has a problem with me loop any help would be awesome thank you.
#include <iostream>
#include <time.h>
using namespace std;
int main()
{
int dIe1=0;
int dIe2=0;
I don't have much time to type this out right now, but in my opinion, you are going about this extremely wrong. I would try a different approach, any loop for 0 to 36,000 is not the correct method. When I get home in a couple of hours I'll try to write out some code to get you started. For now, I would mathematically think of how you could accomplish this is a more reasonable manor.