C++ DICE PROBABILITY PROGRAM
Purpose: The Purpose of the dice program is to roll an amount of dice inputed by the user then calculate the probability for each number and option to loop the program
judediceroll.zip |
SAMPLE:WELCOME TO THE DICE PERCENT PROGRAM
How Many Times Will You Want To Roll The Dice (1-1000):
1001
Invalid Input Please Try Again
How Many Times Will You Want To Roll The Dice (1-1000):
-1000
Invalid Input Please Try Again
How Many Times Will You Want To Roll The Dice (1-1000):
49
2 5 4 2 6 2 5 1 4 2 3 2 3 2 6 5 1 1 5 5 6 344 3 3 3 2 2 2 6 1 1 1 6 4 2 5 2 5 4 4 4 6 323 3 6
Your probability for the first number: 12.2449%
Your probability for the Second number: 24.4898%
Your probability for the Third number: 18.3673%
Your probability for the Fourth number: 16.3265%
Your probability for the Fifth number: 14.2857%
Your probability for the Last number: 14.2857%
Press 1 if you want to repeat this program, press 2 if you want to end this program:
3
Invalid Input. Please try again
Press 1 if you want to repeat this program, press 2 if you want to end this program:
0
Invalid Input. Please try again
Press 1 if you want to repeat this program, press 2 if you want to end this program:
1
WELCOME TO THE DICE PERCENT PROGRAM
How Many Times Will You Want To Roll The Dice (1-1000):
35
1 6 5 2 3 3 4 3 3 5 2 4 4 3 4 3 6 5 4 2 6 141 4 3 4 3 3 4 3 2 1 1 3
Your probability for the first number: 14.2857%
Your probability for the Second number: 11.4286%
Your probability for the Third number: 31.4286%
Your probability for the Fourth number: 25.7143%
Your probability for the Fifth number: 8.57143%
Your probability for the Last number: 8.57143%
Press 1 if you want to repeat this program, press 2 if you want to end this program:
-2
Invalid Input. Please try again
Press 1 if you want to repeat this program, press 2 if you want to end this program:
2
Thanks for Trying Out My Program
How Many Times Will You Want To Roll The Dice (1-1000):
1001
Invalid Input Please Try Again
How Many Times Will You Want To Roll The Dice (1-1000):
-1000
Invalid Input Please Try Again
How Many Times Will You Want To Roll The Dice (1-1000):
49
2 5 4 2 6 2 5 1 4 2 3 2 3 2 6 5 1 1 5 5 6 344 3 3 3 2 2 2 6 1 1 1 6 4 2 5 2 5 4 4 4 6 323 3 6
Your probability for the first number: 12.2449%
Your probability for the Second number: 24.4898%
Your probability for the Third number: 18.3673%
Your probability for the Fourth number: 16.3265%
Your probability for the Fifth number: 14.2857%
Your probability for the Last number: 14.2857%
Press 1 if you want to repeat this program, press 2 if you want to end this program:
3
Invalid Input. Please try again
Press 1 if you want to repeat this program, press 2 if you want to end this program:
0
Invalid Input. Please try again
Press 1 if you want to repeat this program, press 2 if you want to end this program:
1
WELCOME TO THE DICE PERCENT PROGRAM
How Many Times Will You Want To Roll The Dice (1-1000):
35
1 6 5 2 3 3 4 3 3 5 2 4 4 3 4 3 6 5 4 2 6 141 4 3 4 3 3 4 3 2 1 1 3
Your probability for the first number: 14.2857%
Your probability for the Second number: 11.4286%
Your probability for the Third number: 31.4286%
Your probability for the Fourth number: 25.7143%
Your probability for the Fifth number: 8.57143%
Your probability for the Last number: 8.57143%
Press 1 if you want to repeat this program, press 2 if you want to end this program:
-2
Invalid Input. Please try again
Press 1 if you want to repeat this program, press 2 if you want to end this program:
2
Thanks for Trying Out My Program