Computer Science I (CS 170)
Dr. William J. Joel, WS 110, 7-9353
Project No. 4 (10 points)
(Due Monday, April 16, 2001)

Problem: To create a program that will read in student data from one file, and write out this data in a second file in the form of a report.
Task:
  • Review the use of input and output streams (pp. 221-254)
  • Create a class, cIndexCard
  • Include member variables for ...
    • first name 
    • last name
    • major
    • graduation year
  • Include member functions to ...
    • initialize an object as a "blank index card" (constructor)
    • read in data for an object from a file, with a single input stream argument for the input file
    • write out object data to a second file in the form of a report, with a single output stream argument for the output file
  • Input data is located in the file student4.dat

  • (Note: There is data for three (3) students in the file)
  • Output file format should look like ...

  •            Name                Major                Grad. Year 
                Doe, John         Chemistry         2003
                        :                        :                    :
     

  • Submit your assignment according to Project Submission Guidelines.
Notes:
  • Remember! Be sure you've completed this project as described above. If you wish to do more, you will neither receive extra points if you succeed, nor lose points if you you are unsuccessful, but you will receive feedback when the project is graded.