COSC 1435 Lab 9

Purpose: This lab explores opening and using numeric data from a file.

Due: Before class on April 8, 2013

Requirements: Do the following:

1. Write a program that will do the following:

To assist you in building this program, use the fileIn.cpp program I wrote in class. We will review this at the start of the lab.

2. This lab requires a lab report/documentation package. All of these items are not typically in the same file (source code and sample output should definitely be in their own files), but the main lab report file must reference each item by file name. Here is a sample lab report. The main lab report must either be a text file (with a .txt extension) or a Microsoft Word file (with a .doc or .docx extension). The lab report must includes the following or references (the file name that was attached to the mail) to the following information:

Program Submission. You will be submitting this lab via Blackboard. The teaching assistant will provide further instructions on how to accomplish this. Prepare the following:

  • Your program source code. This file should be called lab09***.cpp, where the *** is replaced with your initials.
  • A copy of your program output saved as a file. This file should be called lab09***.txt, where the *** is replaced with your initials. The .txt signifies that this is an ASCII text file.
  • A lab report as described above. The lab report may be in a Microsoft Word document, with a .doc suffix or an ASCII text file with a .txt suffix. Make sure it contains all of the required items. This file should be called either lab09***doc.txt for a text file or lab09***doc.doc for a Microsoft Word file, where the *** is replaced with your initials.

Submit via blackboard following the instructions given during the lab.

Grading Criteria: 100 points available for this lab.