Print the percentage of each nucleotide, JAVA Programming

1. In this lab assignment we will be using the vim or emacs editor in addition to the commands we have already learned. Open a shell terminal and create a file named in your home directory (use only lowercase letters). In this lab you will construct a few short Perl programs that perform the actions specified below.

List of tasks

1. The following is a section of a program. Show the value of each variable at each step:

@array = (0, 2..6,"abc");         what is @array?

$a = pop(@array);                  what is $a?

$b = shift (@array);                what is $b?

what is @array?

2. Read each of the words contained in the array @ARGV. Print words and the number of their occurrence to standard output line by line (note: case matters here). For example, if your script is called "count.pl", then executing ./count.pl the test program Test the word generates

test                  1

Test                 1

the                   2

word                 1

program           1

3. Read in the file dna.seq (in ~afigueroa/csci2344/lab9) and count the number of As, Ts, Cs. and Gs. Print the percentage of each nucleotide. Note: your program should be case insensitive.

Posted Date: 3/1/2013 5:46:42 AM | Location : United States







Related Discussions:- Print the percentage of each nucleotide, Assignment Help, Ask Question on Print the percentage of each nucleotide, Get Answer, Expert's Help, Print the percentage of each nucleotide Discussions

Write discussion on Print the percentage of each nucleotide
Your posts are moderated
Related Questions
PART1: Write a class with the header public class OrderedPair > implements Comparable > instance variables private Key x private Key y constructor publicOrd

Explain the Basic Applet Life Cycle ? 1. The browser reads the HTML page and seraches any tags. 2. The browser parses the tag to search the CODE and possibly CODEBASE att

JMS is asynchronous in nature. Therefore not all the pieces need to be up all the time for the application to function as a whole. Even if the receiver is down the MOM will kept th

Describe the if statement in Java ? All but the most trivial computer programs required to form decisions. They test a condition and operate in a different way based on the out

#questiongfjnkdfn..

Project Description: I'm using a php script called phpfox on my site its work as social network . So I need is to use this script as CMS for my application. What users wil

What is the purpose of garbage collection in Java, and when is it used? The purpose of garbage collection is to identify and discard objects that are no longer required by a pr

What are the advantages that Java's layout managers provide over traditional windowing systems ?

The Remote interface serves to recognize interfaces whose methods may be invoked from a non-local virtual machine. Any object that is a remote object must directly or indirectly ex

What are the conditions for exiting the while loop?