hw-02 | object-oriented programming, software engineering - spring'2008, dr. s. yurttas - solution
rationale
This is your another assignment to practice and show that you're able to maintain/adapt a given application using existing tools, i.e., command-line and/or visual studio 2005 with new functions.

You'll practice the fundamentals of programming using imperative language abstraction mechanisms in C++ to compose and structure an application using multiple functions and headers.

problem
You'll find and replace a given pattern in each and every sequence of all data files.
      -> dna filenames : dna-filenames.txt

      [ input sequences -
        dna-00 :
        AAGTCTAGTACCC
        CAGAGTAGGACCT
        AAGAGTAGGACCG
        AAGACTAGGACCA
        CAGAAGTTGTCGT
        GCCTTGTGGACCC

        dna-01 :
        .
        .
        .
      ]

      -> existing pattern : AGA

      -> replaced pattern : GGA

      [ input sequences -
        dna-00 :
        AAGTCTAGTACCC
        CGGAGTAGGACCT
        AGGAGTAGGACCG
        AGGACTAGGACCA
        CGGAAGTTGTCGT
        GCCTTGTGGACCC

        dna-01 :
        .
        .
        .
      ]

      
  • For each set of given files: replace the existing pattern with replacement pattern.
  • Filename for the given datafiles read in, interactively, from command-line.
  • You'll do this repetitively until user decides as N, interactively, from the command-line.
  • Structuring and composition multiple functions in C++ will be the essence of grading, as well as correctness.
  • You will use and reuse C++ collections.
credit : 10 points due February 20 by 11pm.