In: Computer Science
Task: Craps is a popular game played in casinos. Design a program using Raptor Flowcharts to play a variation of the game, as follows:
Roll two dice. Each dice has six faces representing values 1, 2, 3, 4, 5, and 6, respectively. Check the sum of the two dice. If the sum is 2, 3, or 12(called craps), you loose; if the sum is 7 or 11(called natural), you win; if the sum is another value(i.e., 4, 5, 6, 8, 9, or 10), a point is established. Continue roll the dice again, if the same point value is rolled, you win, otherwise, you loose. Please use Raptor Flowcharts to make the program
Your program should allow user play as many runs as wanted and display each run status and result. And display total number of runs user played and number of runs user won.
Here is a sample output:
Run 1:
You rolled 5 + 6 = 11
You Win!!!
Run 2:
You rolled 1 + 3 = 4
Point is 4, you have another try to win this run.
Rolled Again 2 + 4 = 6
You loose
Run 3:
You rolled 4 + 4 = 8
Point is 8, you have another try to win this run.
Rolled Again 2 + 6 = 8
You win!
Run 4:
You rolled 6 + 6 = 12
You loose
Total Runs: 4
User Won 2 of the 4 runs.
Please combine screenshot....
/*****************output*************/
Run 1
You rolled 6 2
Point is: 8, you have another try to win this run.
Rolled Again 6+1=7
You loose
Run 2
You rolled 2 3
Point is: 5, you have another try to win this run.
Rolled Again 1+2=3
You loose
Run 3
You rolled 4 4
Point is: 8, you have another try to win this run.
Rolled Again 2+2=4
You loose
Run 4
You rolled 4 1
Point is: 5, you have another try to win this run.
Rolled Again 5+3=8
You loose
Run 5
You rolled 5 4
Point is: 9, you have another try to win this run.
Rolled Again 6+4=10
You loose
Run 6
You rolled 1 4
Point is: 5, you have another try to win this run.
Rolled Again 6+4=10
You loose
Run 7
You rolled 4 4
Point is: 8, you have another try to win this run.
Rolled Again 2+5=7
You loose
Run 8
You rolled 6 +5
You Win
Run 9
You rolled 5 5
Point is: 10, you have another try to win this run.
Rolled Again 1+6=7
You loose
Run 10
You rolled 5 1
Point is: 6, you have another try to win this run.
Rolled Again 5+1=6
You Win
Run 11
You rolled 5 1
Point is: 6, you have another try to win this run.
Rolled Again 4+6=10
You loose
Run 12
You rolled 4 1
Point is: 5, you have another try to win this run.
Rolled Again 4+3=7
You loose
Total run 12
User Won 2 of the 12 runs.
----Run complete. 185 symbols evaluated.----
Please let me know if you have any doubt or modify the answer, Thanks :)