COM3113 -- Fundamentals of Programming
College of Computer Science -- Northeastern University
Fall Quarter 2001
Some examples
Example 1
Entering Test ("if else" statement)
Translate DNA -> AA sequence.
- (HW of week3) Counts on the number of x's
- Use dotplot here? refer to dicussion note 6/26/01
Examples:
Sample 1
More details
DS. Page 84
Using Applet and show graphics.
inputField.getTest()
Draw lines for the special sequences
Example 2
"for" Loop Applet
(Counts on numbers of x's)
for (height=50, height <=200, height+=20)
g.drawRect()
g.setColor()
Examples:
Sample 1
Notes:
Pay attention to totalNumber() function in the source code.
Use drawLine--No array is needed here.
More details
Using Applet and show graphics.
Draw column bars for the special sequences
Return to COM3113 homepage.