Not Yet Answered # Game Project

Discussion Starter malugirl4 OK, so HostGator for some reason no longer allows gcc/g++ access unless you have a Designated Server account, which is a lot of money to spend just to compile my "Hello World" program. Thus I figured I'd compile at home, then upload. Program is your regular old bare-bones Hello World ...

0

Guiding Questions:

--What is the probability that you will land on the GO TO JAIL space on your first time around the board?

--What is the probability of landing on Boardwalk on the first time around the board?

Method for solving:

A) Design and write a computer-based simulation to find an empirical probability for landing on GO TO JAIL/Boardwalk. (For ease of programming, you may assume that if landing on a Community Chest or Chance card, you are not sent to another space).

B) Write a method for finding the exact theoretical probability for landing on Boardwalk.

C) Use the method developed in B) to find this exact probability.

When given a difficult problem to solve, it is often useful to find the answer to a simpler (yet related) problem. Answer the following questions before solving Part 1.

1.) What is the probability of landing on Mediterranean Avenue on the first time around the board?

0

2.) What is the probability of landing on Baltic Avenue on the first time around the board?

2/36

3.) What is the probability of landing on Reading Railroad on the first time around the board?

1/9

4.) What is the probability of landing on Vermont Avenue on the first time around the board?

1/6

5.) What is the probability of landing on Virginia Avenue on the first time around the board?

1/12

PART 2 ‐ In the Jailhouse now.

Answer the following questions regarding JAIL in Monopoly.

1.) What is the probability of not having to pay to get out of jail?

1/6

2.) What is the probability of having to pay to get out of jail?

5/6

3.) What is the Expected Value for the amount you pay to get out of jail?

4.) What is the Expected Value for the amount of rolls it takes to get out of jail?

As of now, I have just come up with the probabilities of those questions. I just need help in doing it in java, basically how to set it up. Would I do functions of each of those into one code?

This article has been dead for over six months. Start a new discussion instead.

Recommended Articles

I don’t want at this stage work on a big separate project as I've already got plenty ...

Hi. I have a form with list box : lst_product, datagridview : grd_order and button: btn_addline. lst_product has a list of product ids selected from database (MS Acess 2013) , grd_order is by default empty except for 2 headers and btn_addline adds rows to grd_order.

btn_addline :

`Private Sub btn_addline_Click(ByVal ...`