Question: Remember the good old dice? It has 6 faces with numbers 1-6 on it. Implement a game that asks a user to input two scores
Remember the good old dice? It has 6 faces with numbers 1-6 on it. Implement a game that asks a user to input two scores that represent the numbers on two different dice. If any of the numbers is incorrect, then the game should output invalid dice number and ask for the score again. So after you have your valid inputs, here are the rules: If the sum of the scores on the two dice is even or 3, the program outputs you are a winner and the game ends. If the sum of scores of the two dice is 11 then the program should output you have lost the game and the game ends. If the sum of scores of the two dice is 5, 7, or 9 then the program should output carry on and asks for the scores again (the game begins again).
Write a C++ program
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
