# homework9 - Benjamin Jones Homework 9 7.39 File dice.cpp...

This preview shows pages 1–2. Sign up to view the full content.

Benjamin Jones 03/02/08 Homework 9 7.39 / / *********************************************************************** // File: dice.cpp // // Random Dice Rolls - Program randomly rolls two dice 36,000 times and keeps // track of the sum of the each roll of the dice. Program // outputs the number of possible roll combinations. // // Author: Benjamin Jones // Created: 24 Febuary 2008 // Updated: 2 March 2008 – Changed array to vector // // Assignment: Lab 5 // Compiler: MinGW32 G++ 3.4.2 (GNU) // // Inputs: None // // Contraints: Nones // // Outputs: The program will display in tabular format the following: // Roll: 2 3 4 5 6 7 8 9 11 12 // Results: . . . . . . . . . . // Where . represents the number of each sum // // ********************************************************************* // // Design: // // I. Initialize array, and random seed // // II. Compute and track 36,000 rolls of two dice // II.A While number of rolls is less than 36000 // II.A.1 Determine a random roll for die 1 // II.A.2 Determine a random roll for die 2

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

## This homework help was uploaded on 04/18/2008 for the course ECEE 120 taught by Professor Carter during the Winter '08 term at University of Cincinnati.

### Page1 / 3

homework9 - Benjamin Jones Homework 9 7.39 File dice.cpp...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online