User Tools

Site Tools


assignments:2017nsci580a5assignment1

ASSIGNMENT 1


Due date: 9/26/17 by 10 am

Exercise 1

Write a script that:
a) prompts the user for a DNA sequence
b) assigns the sequence to a variable
c) prints the sequence to the terminal with an informative message (e.g. You entered: ACTGCA)

Exercise 2

Write a script that:
a) prompts the user for the diameter and height of a petri dish (two separate prompts)
b) calculates the volume (V=3.14*h*r^2)
c) prints the result to the terminal

Exercise 3

Write a script that:
a) prompts the user for a codon sequence (3-nt DNA sequence)
b) tests if the codon is a start codon
c) prints the result to the terminal

Exercise 4

Write a script that:
a) prompts the user to enter a sequence
b) prompts the user to enter the complement of the sequence
c) prints the sequences to the terminal on separate lines with bars between the base paired nucleoditeds as shown below:
ACTGAAA
|||||||
TGACTTT

To submit your assignment, combine the scripts into one text file with each exercise clearly labeled and upload it to Canvas.

assignments/2017nsci580a5assignment1.txt ยท Last modified: 2017/09/25 15:04 by tai