Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In C language DNA is the basis of life here on earth. Every living creature is described by their DNA, which is a very, very

In C language image text in transcribed
DNA is the basis of life here on earth. Every living creature is described by their DNA, which is a very, very long sequence of the bases A, C, GandT. Bioinformatics is a new discipline that uses the power of computers to analyze biological data, to discover new insights about the mysteries of life. For this assignment, you will complete a very simple bioinformatics experiment. The input for your program will be a text file consisting of only the four characters, A, C, G and T. Your program must read the file, character by character, counting the total number of A's, C's, G's and T's. Your program will then output what percentage of the DNA sequence is A's, C's, G's and T's. For example, if the input is the sequence: ACGGGTCGAC then the output will be exactly these five lines of text: The DNA sequence has 10 bases 20.00% of the bases are A 30.00% of the bases are C 40.00% of the bases are G 10.00% of the bases are T The output must display the percentages with exactly two places to the right of the decimal point. The percent signs in the output must all be vertically aligned. If your program successfully completes its task, then the program should return an exit status of 0 to the operating system. The input data file may contain any arbitray "white space

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions