homework9 - Benjamin Jones 03/02/08 Homework 9 7.39 / * /...

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

View Full Document Right Arrow Icon
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
Background image of page 1

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

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 3

homework9 - Benjamin Jones 03/02/08 Homework 9 7.39 / * /...

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

View Full Document Right Arrow Icon
Ask a homework question - tutors are online