Question: IN C++ PLEASE Problem B: Simulating the dice game Knock-out (20 Points) Problem Introduction Probabilistic simulations are an important computational tool used in a variety

IN C++ PLEASE

IN C++ PLEASE Problem B: Simulating the dice game "Knock-out" (20 Points)

Problem Introduction Probabilistic simulations are an important computational tool used in a

variety of areas. Suppose we have a random process and take N

random samples for some positive integer N. Then we take N more

Problem B: Simulating the dice game "Knock-out" (20 Points) Problem Introduction Probabilistic simulations are an important computational tool used in a variety of areas. Suppose we have a random process and take N random samples for some positive integer N. Then we take N more random samples of the same process. How close do we expect the average of the first set of samples to be to the second set of samples? For example, if the numbers are randomly drawn from a uniform distribution between 0 and 100. what is the chance that the average of 100 random samples differs by more than 0.25 or0.5 from the average of the next 100 samples. Researchers who study probability have derived some powerful theoretical results about questions like these. But another (less rigorous but still useful) way to study such questions is though computational simulations. This problem requires you to write a C++ programs that simulates sets of random samples The Problem: In this problem, you will write a program that simulates the dice game: "Knock-out", defined here mes/#Knock Out ame for To control the execution of this "randomly-behaving" program, you need to initialize the random number generator so that it will generate the same sequence of numbers it time it is run (executed) - this will enable us you (and us) to test (and debug) your program. To accomplish this, your program will ask the user to input a number used as a seed for the (of type int) for the predefined random number generator function rand, and call the random number seeding function srand with that input number as its argument. Specifically, right after the variable declarations in your program and before entering the program continuation loop your prog statements: ram should have the following sequence of cout seed; srand (seed) The statements above should only be executed once during the execution of your program Your program should then behave as follows: 1. Prompt for a score that be met or exceeded to win the game. The range of acceptable winning scores is 13 seed; srand (seed) The statements above should only be executed once during the execution of your program Your program should then behave as follows: 1. Prompt for a score that be met or exceeded to win the game. The range of acceptable winning scores is 13

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!