Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I missed my class on vectors and random variables and am very confused as to where I'm supposed to go with this. Any help and
I missed my class on vectors and random variables and am very confused as to where I'm supposed to go with this.
Any help and start-up code would be greatly appreciated. This is all coded in C++ and specifically using if statements, loops, random numbers and vectors.
Yahtzee Implement a portion of the classic Yahtzee game using random numbers. Key programming concepts: if statements, loops, vectors template) Approzimate lines of code: 48 (does not include comments, white space, or any of the code tzee Rules: http://www. hasbro. com/common/instruct/ Yahtzee. pdf Program Inputs Choose seed for Yahtzee simulation: The user will always enter a positive whole number; no error checking needed Select dice to keep: The user will always either y or n separated by a space for all 5 dice. Program Outputs Roll XXX (YYY new dice): zzz Replace XXX with the roll number, YYY with how many dice were rolled, and Zzz with the dice values Full house: XXX Replace XXX with 25 or 0 points Yahtzee: XXX Replace XXX with 50 or 0 points Chance: XXX Replace XXX with the sum of all dice Assignment Details Create a new program that allows the user to play 1 tun of Yahtzee and calculates the different Yahtzee scores for his/her chosen 5 dice. The Yahtzee point system has several scoring options, but we are only interested in calculating points for a Full House, Yahtzee, and Chance. The following table breaks down the various scoring options: Yahtzee Implement a portion of the classic Yahtzee game using random numbers. Key programming concepts: if statements, loops, vectors template) Approzimate lines of code: 48 (does not include comments, white space, or any of the code tzee Rules: http://www. hasbro. com/common/instruct/ Yahtzee. pdf Program Inputs Choose seed for Yahtzee simulation: The user will always enter a positive whole number; no error checking needed Select dice to keep: The user will always either y or n separated by a space for all 5 dice. Program Outputs Roll XXX (YYY new dice): zzz Replace XXX with the roll number, YYY with how many dice were rolled, and Zzz with the dice values Full house: XXX Replace XXX with 25 or 0 points Yahtzee: XXX Replace XXX with 50 or 0 points Chance: XXX Replace XXX with the sum of all dice Assignment Details Create a new program that allows the user to play 1 tun of Yahtzee and calculates the different Yahtzee scores for his/her chosen 5 dice. The Yahtzee point system has several scoring options, but we are only interested in calculating points for a Full House, Yahtzee, and Chance. The following table breaks down the various scoring optionsStep 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