Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribedimage text in transcribed

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 options

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

1 2 3 Data Base Techniques

Authors: Dick Andersen

1st Edition

0880223464, 978-0880223461

More Books

Students also viewed these Databases questions

Question

7. It is advisable to do favors for people whenever possible.

Answered: 1 week ago

Question

9. Power and politics can be destructive forces in organizations.

Answered: 1 week ago