Need Help Assignment Task Write Program Accepts List Five Numbers One Six Representing Fiv Q37114180

I need help with this assignment:

Your task is to write a program that accepts a list of fivenumbers between one and six (representing five dice) and appliesYahtzee scoring rules to determine the best outcome. (Assume thisis the final combination of values; there is no re-rolling orreplacing.)

We are only concerning ourselves with the bottom half of theYahtzee scoring sheet, with scoring is as follows:

  • Yahtzee (5 of a kind) – 50 points
  • Large Straight (either 1-2-3-4-5 or 2-3-4-5-6) – 40 points
  • Small Straight (4 sequential numbers) – 30 points
  • Full House (2 of one number and 3 of another number) – 25points
  • Four of a Kind
    OR
    OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.