hw-03 | programming language design - 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/available tools, i.e., eclipse/visual studio.

You'll practice the fundamentals of programming using imperative and object-oriented language abstraction mechanisms in C++ and C# | Java to compose an application using multiple functions/methods/classes.

problem
You'll modify the given application which counts the frequency of set of patterns as sorted in ascending order for each sequence as follows:
      -> dna filenames : dna-filenames.txt

      [ input sequences -
        dna-00 :
        ATCTCTAGTCATA
        TATCTATCTCTCT
        ACTCCTCTTCTCG

        dna-01 :
        .
        .
        .
      ]

      -> patterns filename : patterns.txt


      [
        dna-00 :

        atc - 3
        tc - 10
        .
        .
      ]

      [
        dna-01 :

        atc -
        tc -
        .
        .
      ]
      
  • Filename for the given datafiles and patterns are read in, interactively, using command-line/console.
  • The whole file is processed as one sequence for frequency count.
  • For each sequence do the counting for each pattern in ascending order.
  • You'll do this repetitively until user decides as N, interactively for the datafiles given.
  • You'll create one output file per input file with multiple patterns in ascending order counted.
  • Modularization by functional decomposition and composition is the essence of the solution, as well as correctness.
  • You will use and reuse C#, Java, and C++ collections.
credit : 20 points due February 27 by 11pm presented on your students website using given template .

Valid XHTML 1.0 Transitional