Time 24 Hours - Budget Max $45
In PA3 we were asked to design, implement and modify existing functions to create a game called craps which is commonly used in programming assignments to understand functions in general.
An explanation of the game is given below:
The player starts off with an initial bank balance of 1000.
Craps is a game of chance in which a player rolls a pair of dice. After the two dice have come to rest, the numbers of spots on the two upward faces are added together. If the sum is 7 or 11, the player wins. If the sum is 2, 3, or 12, the player loses and the "house" wins. If the sum is 4, 5, 6, 8, 9, or 10 on the first throw, then that sum becomes the player’s point, and the player rolls again. The player continues to roll the dice until either he/she gets the point again (in which case the player wins) or a 7 is rolled, in which case the player loses.
Basically, PA4 builds off of PA3. In this assignment we compute certain statistics for the game of craps using two of the functions from PA3. These statistics include mean, median, standard deviation.
What I am having trouble with is computing the standard deviation of the data, and the part where it asks to run the program 8 different times and save the output files with 2 runs each for 100, 200, 500, and 1000 games. My code is attached as a zip file. You can look at [url removed, login to view] as a reference to understand how the game of craps really works. Also please refer to the "This Assignment", "Deliverables" and "Grading" sections of [url removed, login to view]
Also, I usually use Eclipse 64-bit to build my projects as a whole.