Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

design c++ program A player rolls two dice. Each die has 6 faces. These faces co

ID: 3763379 • Letter: D

Question

design c++ program

A player rolls two dice. Each die has 6 faces. These faces contain 1, 2, 3, 4, 5, and 6 spots. After the dice have come to rest, the sum of the spots on the two upward faces are calculated. If the sum is 7 or 11 on the first roll, the player wins. If the sum is 2, 3, or 12 on the first roll, the player loses. If the sum is 4, 5, 6, 8, 9 or 10 on the first roll, the sum becomes the player’s “point.” To win, you must continue rolling the dice until you “make your point.” The player loses by rolling a 7 before making the point.

Explanation / Answer

#include #include #include #include int main () { int i,d1,d2,sumd,sumd2; double winf = 0, lostf = 0, winp = 0, lostp = 0; cout