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 number 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started