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

Write a function named dicepair that calls the die function to simulate the sum

ID: 3628741 • Letter: W

Question

Write a function named dicepair that calls the die function to simulate the sum of a pair of dice. Test the function by calling it from main 100 times and displaying the resulting numbers.

write a function named gameRound that implements a single round of the game. The function should call dicepair as necessary. The function should return a value of type bool, indicating whether the user won or lost.

the player rolls the two dice, if the sum of resulting die values is 6 or 10 the player wins, if the sum 2, 11 or 12 the player lose, if something else rolled, the player has to roll again to determine the outcome,if the sum of the second roll is the same as what the player obtained in the first roll, the player wins. Otherwise the player loses.

Explanation / Answer

sorry it will be a big program....

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote