Laboratory Seven

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

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

View Full Document Right Arrow Icon
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
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 / 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 Right Arrow Icon
Ask a homework question - tutors are online