Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Statistics and Probability Expert

Question: In the game of craps, a pass line bet proceeds as follows: Two six-sided dice are rolled; the first roll of the dice in a craps round is called the "come out roll." A come out roll of 7 or 11 automatically wins, and a come out roll of 2, 3, or 12 automatically loses. If 4, 5, 6, 8, 9, or 10 is rolled on the come out roll, that number becomes "the point." The player keeps rolling the dice until either 7 or the point is rolled. If the point is rolled first, then the player wins the bet. If a 7 is rolled first, then the player loses. Write a program that simulates a game of craps using these rules without human input. Instead of asking for a wager, the program should calculate whether the player would win or lose. The program should simulate rolling the two dice and calculate the sum. Add a loop so that the program plays 10,000 games. Add counters that count how many times the player wins, and how many times the player loses. At the end of the 10,000 games, compute the probability of winning [i.e., Wins / (Wins + Losses)] and output this value. Over the long run, who is going to win the most games, you or the house?

Statistics and Probability, Statistics

  • Category:- Statistics and Probability
  • Reference No.:- M92417503
  • Price:- $15

Priced at Now at $15, Verified Solution

Have any Question?


Related Questions in Statistics and Probability

You have just leased a car that has monthly payments of 365

You have just leased a car that has monthly payments of $365 for the next 4 years with the first payment due today. If the APR is 6.84 percent compounded monthly, what is the value of the payments today?

Tossing a fair coin three times whats the probability that

Tossing a fair coin three times, what's the probability that at least one head will occur?

You have a bag with three fair dice one is 4-sided one is

You have a bag with three fair dice. One is 4-sided, one is 6-sided, and one is 12-sided. You reach into the bag, pick one die at random, and roll it. The outcome of the roll is 4. What is the probability that you rolled ...

For planning purposes truss manufacturers must try to

For planning purposes, truss manufacturers must try to predict the number of hurricanes that will hit the eastern seaboard of the United States in any given year. If this area is hit with an average of 6 hurricanes per y ...

Question suppose you have applied to three graduate schools

Question: Suppose you have applied to three graduate schools: A, B, and C. The odds of getting into A are 20%, into B are 40%, and into C are 60%. What is the probability you get rejected at all three schools? Get accept ...

Suppose you are a statistics consultant hired to study

Suppose you are a statistics consultant, hired to study whether a tax on alcohol has decreased average alcohol consumption in Australia. For a given sample of randomly selected individuals, you are able to obtain the dif ...

An egg farmer wanted to determine if increasing the amount

An egg farmer wanted to determine if increasing the amount of time the lights were on in his hand house would increase egg production. For example of 8 chickens he determined the production before and after increasing th ...

Consider a binomial probability distribution with p03

Consider a binomial probability distribution with p=0.3. Complete parts a through c below. a. Determine the probability of exactly four successes when n=5 P(4)=

Past data from a specialized lung cancer clinic show that

Past data from a specialized lung cancer clinic show that 10% of patients entering the clinic have lung cancer. Data also shows 5% of the patients are smokers. Additionally, it is found that 7% of the patients are smoker ...

Show your worksheel inc has 7 percent coupon compounded

Show your work Sheel INC. has 7 percent coupon ( compounded semiannually) bonds on the market with 10 years to maturity, and the par value of $1,000. At what price should bonds be selling for if the YTM is 5%? Had the bo ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As