| hw-00 | programming language design - summer'2008, dr. s. yurttas - solution |
| rationale |
|
This is your first assignment to practice and show that
you're able to compile and execute 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#, and Java to compose an application using multiple functions/methods/classes. You'll rewrite the given code in ruby language. |
| problem |
You'll compile and run the given application
which counts the frequency of any pattern
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 :
.
.
.
]
-> input pattern : tc
-> range begin : 2
end : 6
[
dna-00 :
ATCTCTAGTCATA - 2
TATCTATCTCTCT - 1
ACTCCTCTTCTCG - 1
TAGACTAGGACCT - 0
TCTTATCTATTCG - 0
GCCTTGTGGACCC - 0
dna-01 :
.
.
.
]
|
| credit : 10 points due June 13 by 11pm presented on your students website using given template . |