Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

Bring out the limitations of planning.

Answered: 1 week ago

Question

Why should a business be socially responsible?

Answered: 1 week ago

Question

Discuss the general principles of management given by Henri Fayol

Answered: 1 week ago

Question

Detailed note on the contributions of F.W.Taylor

Answered: 1 week ago