BIOS 546 in-class exercises
1. Create a web page linked to your home page with a
graphics image on it. The image should
contain a circle, a rectangle, and a
hexagon, all labelled with their name and their
coordinates (center and radius for the circle, x and y coordinates of the
corners for the square and hexagon).
2. Create another image file (on the same web page) that
contains a horizontal line that represents a DNA sequence that is 3000 base
pairs (bp) long.
have short vertical tick marks every 500 bp,
and label them. Using different colors,
mark the positions of the following restriction sites on the chromosome line:
Mbo I 344, 786, 822, 1753, 2022, 2118
Eco R1 556, 2782
Hinf I 67, 456, 995, 1441,
1880, 2348
3. Create a CGI program (that is, a form on on HTML page and a program in cgi-bin)
that gives the user a choice of 1. object to draw: square, circle, or hexagon
(use a select list); 2. Color of the
object: red, blue, green, black (use a text box and return an error message if
the user enters something other than these colors--make it case-insensitive);
3. Whether it should be filled or not (use a check box); and 4. Position on the
screen (use 2 sets of radio buttons, for the x and y coordinates, and give the
user 4 choices for each axis).