Print the percentage of each nucleotide, JAVA Programming

Assignment Help:

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.


Related Discussions:- Print the percentage of each nucleotide

Illustrate jdbc, JDBC stands for Java Database Connectivity: It is an ...

JDBC stands for Java Database Connectivity: It is an API which gives easy connection to a wide range of databases. To connect to a database we have to load the appropriate dri

Elaborate vector or object oriented graphics, Elaborate Vector or Object or...

Elaborate Vector or Object oriented graphics along with at least one example. Object Oriented Graphics are the graphics that are commonly oriented towards the objects and have

What is an intelligent system, What is an intelligent system? Intellige...

What is an intelligent system? Intelligent system is a SW programs or SW and HW systems designed to perform complex tasks employing strategies in which mimic some aspect of hum

Explain traversing through a collector using iterator, Explain traversing t...

Explain traversing through a collector using Iterator. Ans. We can access each element in Collection by using Iterators regardless of how they are organized in collector. Ite

File and random access file classes, Difference between the File and Random...

Difference between the File and Random Access File classes? Ans) The File class encapsulates the files and directories of the local file system. The Random Access File class giv

Linked list, i want code for to print prime numbers in the linked list queu...

i want code for to print prime numbers in the linked list queue and stack and array in java programming

Servlet, i nedd servlet basics

i nedd servlet basics

How much cpu time does an applet get, How much CPU time does an applet get?...

How much CPU time does an applet get? One of the few legitimate concerns about hostile applets is excessive use of CPU time. It is possible on a non-preemptively multitasking s

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd