Lab Assignment 4

Arrays

A frequency distribution table shows how often particular values occur.  In this case you are to write a program which will simulate 1000 rolls of a pair of dice.  The sum of the dice have 11 different possibilities. (Think about it.) Your program should output the value that occurs most often. 

(Hint:  Check your program by outputting how many times each value occurs.  The total number should add up to 1000.)

Evaluation:

Documentation                                  /4
File Handling                                    /4
Use of Arrays                                  /4
Correct Solution to Test Data           /4

Total                                              /16

Submission method:  Electronically to the class submissions folder

 

 

Hosted by www.Geocities.ws

1