hw-04 | programming language design - spring'2008, dr. s. yurttas - solution
rationale
This is your last 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++ | C# | Java to compose an application using multiple functions/methods/classes.

problem
You'll write an application to extract and create two new files as 0-leading and 1-leading from the set of the given data which is composed of only {0,1} digit characters as follows:
      -> data filenames : data-filenames.txt

      [ input sequences -
        data-00 :
        0100100110111
        1101000110010
        0111010110110

        data-01 :
        0010100110110
        0101000110011
        1101010110110
        .
        .
        .
      ]

      -> output filename 0-leading : out-0.txt

        out-0.txt
      [
        0100100110111
        0111010110110
        0010100110110
        0101000110011
        .
        .
        .

      ]

      -> output filename 1-leading : out-1.txt

        out-1.txt
      [
        1101000110010
        1101010110110
        .
        .
        .

      ]
      
  • Filename for the given datafiles are read in, interactively, using command-line/console.
  • The collection of given data-files are processed as one
  • You'll extract and store 0-leading and 1-leading sequences into two separate files.
  • You'll do this repetitively until user decides as N, interactively for the datafiles given.
  • 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 March 3 by 11pm presented on your students website using given template .

Valid XHTML 1.0 Transitional