// >>> Yousef Rabah   Assignment 6    Oct 2, 2001    >>>Drawer 1602


#include "CS35lib.h"
using namespace std;

int main()
{
	const int SIDE_FACE = 6;
	int rolls, number, counter, counter_2; 
	
	cout<<"You are Rolling two dies, each with 6 sides.\n";
	
	cout<<"How many rolls would you like? ";
	cin>>rolls;
	random_start ();
	
	counter = 0;
	counter_2 = 0;
	while (counter < rolls )
	{
		counter++;
		number= random_int (1, SIDE_FACE) + random_int(1, SIDE_FACE);
		if ( number == 7)
		{
			counter_2 = counter_2 + 1;
		}
	}
	cout<<"Of those "<<rolls <<", "<<counter_2 <<" summed to 7, so ";
	cout<<(counter_2*100)/rolls<<"% of the rolls summmed to 7. \n";
		
	
	return 0;
}




/*
Run 
[rabahyo@quark CS35]$ ./a.out
You are Rolling two dies, each with 6 sides.
How many rolls would you like? 8
Of those 8, 3 summed to 7, so 37% of the rolls summmed to 7.

*/



	
	

