hw-01 | programming language design - spring'2008, dr. s. yurttas - solution
rationale
This is your second 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 in a range(n1throughn2 inclusive) for each sequence as follows:
      -> dna filenames : dna-filenames.txt

      [ input sequences -
        dna-00 :
        ATCTCTAGTCATA
        TATCTATCTCTCT
        ACTCCTCTTCTCG
        TAGACTAGGACCT
        TCTTATCTATTCG
        GCCTTGTGGACCC

        dna-01 :
        .
        .
        .
      ]

      -> patterns filename : patterns.txt

      -> range begin : 2
                 end : 6

      [
        dna-00 : "aga" -
        ATCTCTAGTCATA - 2
        TATCTATCTCTCT - 1
        ACTCCTCTTCTCG - 1
        TAGACTAGGACCT - 0
        TCTTATCTATTCG - 0
        GCCTTGTGGACCC - 0

        dna-01 : "aga" -
        .
        .
        .

      ]

      [
        dna-00 : "cta" -

        .
        .
        .

        dna-01 : "cta" -

        .
        .
        .
      ]


      
  • Filename for the given datafiles and patterns are read in, interactively, using command-line/console.
  • For each file for each pattern for any range do the counting.
  • You'll do this repetitively until user decides as N, interactively.
  • You'll create one output file per pattern.
  • 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 11 by 11pm presented on your students website using given template .

Valid XHTML 1.0 Transitional