Laboratory Seven

# Laboratory Seven - 0618-231 Technical Programming I...

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

0618-231 Technical Programming I Fall 20071 Laboratory Assignment Seven Random Array Learning Objectives: This lab assignment allows you to demonstrate the use of C++ functions, arrays and the random number generator. You are to post your response NLT 11:59pm on October 28, 2007 . A portion of this assignment will be checked by the lab instructor during the lab period. Pre-Laboratory Activities: 1. Review the course materials posted at the myCourses web site. 2. Read Chapters 1 – 6 and Chapter 11 in the textbook. 3. Write a program in which main() prompts the user to enter eight integer numbers and stores them in an array named values[8]. The main() function should then call a function which totals the eight numbers and calculates their average. The total and average are returned to main() which neatly displays the numbers, their total and their average. (40%) Main Problem Description: Write a program that simulates the rolling of two dice. The program should use rand( ) to roll the first die and should use rand( ) again to roll the

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 note was uploaded on 01/10/2012 for the course ENG 0618-301 taught by Professor Christman during the Fall '07 term at RIT.

### Page1 / 2

Laboratory Seven - 0618-231 Technical Programming I...

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

View Full Document
Ask a homework question - tutors are online