

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Material Type: Lab; Class: Programming & Problem Solving I; Subject: Computer Engr & Computer Sci; University: California State University - Long Beach; Term: Fall 2003;
Typology: Lab Reports
1 / 2
This page cannot be seen from the preview
Don't miss anything!


The program you wrote for Project 5 works fine for a small class where the number of scores that needs to be entered is sufficiently small. This project is designed to handle larger classes. The specification of this project extends from Project 5 in four ways:
Data file used in the above sample output: 55 80.5 37 98 91.5 67.9 88 74 81.05 62. 33.7 93 95 84 73 81 77.5 70.2 90 55 74 66 73 79 62 84 86 76.5 91 64 New features needed : Declare and use arrays. Pass array as a parameter in function call. Header file
Do the following: Name your program file lab6.cpp and place it in your 174 subdirectory. Document your program following the Program Documentation Guide which may be accessed through http://www.cecs.csulb.edu/~lam/cecs174/course-notes.html Make sure your program’s output matches the sample dialogue given above. Use script to get a typescript file that captures: a) cat lab6.cpp b) g++ lab6.cpp c) a.out < data (This command instructs UNIX to get input from the file named data instead of from the standard input, i.e., the keyboard.) Print and hand in a hardcopy of the typescript file. Demo your program on the due date.