The Dice game of "Pig" can be played with the following rules. 1. Roll two six-sided dice. Add the face values...
The Rules of Pig Pig is a folk jeopardy dice game with simple rules: Two players race to reach 100 points. Each turn, a player repeatedly rolls a die until either a 1 (”pig”) is rolled or the player holds and scores the sum of the rolls (i.e. the turn total). At any time during a player’s turn, the player is faced with two decisions: roll If the player rolls a 1: the player scores nothing and it becomes the...
Suppose you roll two 4 sided dice. Let the probabilities of the first die be represented by random variable X and those of the second die be represented by random variable Y. Let random variable Z be X-Y). The range of Z will be from 0 to 3. 1. (2.5 points) Find E(Z). 2. (2.5 points) Find P(Z = 21Z >1). 3. (2.5 points) What is the probability that you have to play the game 6 times before you roll...
Suppose you roll two 4 sided dice. Let the probabilities of the first die be represented by random variable X and those of the second die be represented by random variable Y. Let random variable Z be (X-Y). The range of Z will be from -3 to 3. 1. (2.5 points) Find E(Z). 2. (2.5 points) Find P(Z =-1|Z < 1). 3. (2.5 points) What is the probability that you have to play the game 3 times before you roll...
Suppose you roll two 4 sided dice. Let the probabilities of the first die be represented by random variable X and those of the second die be represented by random variable Y. Let random variable Z be (X-Y). The range of Z will be from -3 to 3. 1. (2.5 points) Find E(Z). 2. (2.5 points) Find P(Z =-1|Z < 1). 3. (2.5 points) What is the probability that you have to play the game 3 times before you roll...
Suppose you roll two 4 sided dice. Let the probabilities of the first die be represented by random variable X and those of the second die be represented by random variable Y. Let random variable Z be (X+Y). The range of Z will be from 2-8. 1.(2.5 points) Find E(Z). 2. (2.5 points) Find P(Z = 71Z > 5). 3.(2.5 points) What is the probability that you have to play the game 4 times before you roll Z=7? 4. (2.5...
Suppose you roll two 4 sided dice. Let the probabilities of the first die be represented by random variable X and those of the second die be represented by random variable Y. Let random variable Z be (X+Y). The range of Z will be from 2-8. 1.(2.5 points) Find E(Z). 2. (2.5 points) Find P(Z = 71Z > 5). 3.(2.5 points) What is the probability that you have to play the game 4 times before you roll Z=7? 4. (2.5...
Suppose you roll two 4 sided dice. Let the probabilities of the first die be represented by random variable X and those of the second die be represented by random variable Y. Let random variable Z be |X-Y|. The range of Z will be from 0 to 3. 1. Find E(Z). 2. Find P(Z = 1|Z <3). 3. What is the probability that you have to play the game 4 times before you roll Z=3? 4. What is the probability...
Example Consider the following dice game. A pair of standard ( fair ) dice are repeatedly rolled. If a ’ 7 ’ comes up before an ’ 11 ’ , then the player wins, otherwise the player loses. Let W be the event that the player wins. Find P(W). To say the dice are fair is equivalent to assuming that Laplace’s rule holds and the 36 possible outcomes for a throw of the dice are equally likely. For convenience, an...
Please i need helpe with this JAVA code. Write a Java program simulates the dice game called GAMECrap. For this project, assume that the game is being played between two players, and that the rules are as follows: Problem Statement One of the players goes first. That player announces the size of the bet, and rolls the dice. If the player rolls a 7 or 11, it is called a natural. The player who rolled the dice wins. 2, 3...
For your final project you will incorporate all your knowledge of Java that you learned in this class by programming the game of PIG. The game of Pig is a very simple jeopardy dice game in which two players race to reach 100 points. Each turn, a player repeatedly rolls a die until either a 1 is rolled or the player holds and scores the sum of the rolls (i.e. the turn total). At any time during a player's turn,...