Question: -Prompt the user to enter five integer numbers (Range: one through six inclusive on both ends) -Each time the user enters a valid number, place
-Prompt the user to enter five integer numbers (Range: one through six inclusive on both ends)
-Each time the user enters a valid number, place it into a multiset of integers -Create and use a set of integers with your data to determine if it is a Yahtzee! (5 of a kind)
-Create this set and also create a map of integer keys and integer values to determine the rest of the possible results:
-Display to the user the best of the six possible results that they have achieved with the result of their turn 5 of a kind (Ordered best to worst) 4 of a kind Full house (3 of a kind plus a pair) 3 of a kind, Large straight, Small straight, or Nothing
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
