Write an application that runs 1,000,000 games of craps
Write an application that runs 1,000,000 games of craps (Fig. 6.8) and answers the following questions:
a) How many games are won on the first roll, second roll, …, twentieth roll and after the twentieth roll?
b) How many games are lost on the first roll, second roll, …, twentieth roll and after the twentieth roll?
c) What are the chances of winning at craps? [Note: You should discover that craps is one of the fairest casino games. What do you suppose this means?]
d) What is the average length of a game of craps?
e) Do the chances of winning improve with the length of the game?
Answers
Status NEW
Posted 22 May 2017 06:05 AM
My Price 8.00
-----------
Attachments
file 1495435206-Answer.docx preview (1132 words )
W-----------rit-----------e a-----------n a-----------ppl-----------ica-----------tio-----------n t-----------hat----------- ru-----------ns -----------1,0-----------00,-----------000----------- ga-----------mes----------- of----------- cr-----------aps----------- (F-----------ig.----------- 6.-----------8) -----------and----------- an-----------swe-----------rs -----------the----------- fo-----------llo-----------win-----------g q-----------ues-----------tio-----------ns:----------- a-----------) H-----------ow -----------man-----------y g-----------ame-----------s a-----------re -----------won----------- on----------- th-----------e f-----------irs-----------t r-----------oll-----------, s-----------eco-----------nd -----------rol-----------l, -----------…-----------, t-----------wen-----------tie-----------th -----------rol-----------l a-----------nd -----------aft-----------er -----------the----------- tw-----------ent-----------iet-----------h r-----------oll-----------? -----------b) -----------How----------- ma-----------ny -----------gam-----------es -----------are----------- lo-----------st -----------on -----------the----------- fi-----------rst----------- ro-----------ll,----------- se-----------con-----------d r-----------oll-----------, â-----------€¦,----------- tw-----------ent-----------iet-----------h r-----------oll----------- an-----------d a-----------fte-----------r t-----------he -----------twe-----------nti-----------eth----------- ro-----------ll?----------- c-----------) W-----------hat----------- ar-----------e t-----------he -----------cha-----------nce-----------s o-----------f w-----------inn-----------ing----------- at----------- cr-----------aps-----------? [-----------Not-----------e: -----------You----------- sh-----------oul-----------d d-----------isc-----------ove-----------r t-----------hat----------- cr-----------aps----------- is----------- on-----------e o-----------f t-----------he -----------fai-----------res-----------t c-----------asi-----------no
Not Rated(0)