hw-03 | programming language design - fall'2007, dr. s. yurttas - solution
rationale
problem
This is your first assignment to practice and show that you're able to compose an application using given components by adapting/extending to new uses as class based.

You'll practice the fundamentals of programming using object-oriented language abstraction mechanisms in C++ to design and implement classes to compose and structure an application using multiple classes and functions.

problem
You'll write an application program in C++ that will tabulate the results of a simple search and count operations from a given set of files: 310-students.txt, 332-students.txt, and 438-students.txt.
  • Count for the number of students with U3 or U4 categories separately as CPSC, CECN, INEN, ELEN, and others.
                      U3   U4
              CPSC
              CECN
              INEN
              ELEN
              Other
          
  • Output the results as a table.
  • Filenames of I/O files are given interactively.
  • Structuring and composition as classes/functions and header files and abstraction, modularization will be the essence of grading, as well as correctness.
  • Structuring and composition multiple classes/functions in C++ will be the essence of grading, as well as correctness.
  • You will use and reuse C++ collections.
credit : 20 points due November 2 by 11pm.