Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

must be in C# L4.7-The Palindrome Dice Game The Palindrome Dice game is a number game which is played by a single players The Game

must be in C#
image text in transcribed
L4.7-The Palindrome Dice Game The Palindrome Dice game is a number game which is played by a single players The Game is played with three dices, which are tossed simultaneously and used to form a three digit number. For example, if the three dice retum 4, 6, 4 respectively, the three digit number form is 464 The formed three digit number is then check to see if it is a palindrome number, if it is then the player earns a score of 10. The player is then prompted to double that score. If they decide to double the score, then the three dice is cast again, and a three digit number like the one mentioned above is formed. If the three digit number is a palindrome the players score of 10 is double, otherwise the player loses that score. The game console is deared and a play statistics like the one below is displayed BRRRRRrGame Statistics BEBE Number of Palindromes: 20 Number of Throws: 100 Game Score: 170 The game ends when the number of times you've tossed the three dice reaches a 100. You will win the game if your score is greater than the number of throws, otherwise you lose. After the game is complete the play statistics is displayed and a message indicating a win or lose is played, see example below: **** **Game Statistics Number of Palindromes: 20 Number of Throws: 100 Game Score: 170 You WON the game! Additional Information A palindromic number (also known as a numeral palindrome or a numeric palindrome) is a number (such as 121) that remains the same when its digits are reversed. In other words, it has reflectional symmetry across a vertical axis. See the flowchart below for reversing a number

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

Databases On The Web Designing And Programming For Network Access

Authors: Patricia Ju

1st Edition

1558515100, 978-1558515109

More Books

Students also viewed these Databases questions

Question

What is the key analytical issue in deciding this bailment case?

Answered: 1 week ago

Question

What is Ramayana, who is its creator, why was Ramayana written?

Answered: 1 week ago

Question

To solve by the graphical methods 2x +3y = 9 9x - 8y = 10

Answered: 1 week ago

Question

Why does sin 2x + cos2x =1 ?

Answered: 1 week ago

Question

What are DNA and RNA and what is the difference between them?

Answered: 1 week ago