Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using c++ create a analysis program for a text file of DNA strings. The program will accept a text file as a command line argument

Using c++ create a analysis program for a text file of DNA strings.

The program will accept a text file as a command line argument of 1000 DNA strings. There will be one string per line of the file with varying capitalization of characters.

Compute the sum, mean, variance, and standard deviation of the lengths of the strings. Compute the frequency of each nucleotide (A,C,T,G) and the frequency of each pair(AA,AC,AT,AG,CA, etc.)

Output the labeled results to a text file.

After outputting the results generate 1000 DNA strings with lengths following a standard bell curve with the same mean and variance previously calculated.

Append the strings to the output text file.

Ask the user if they want to process another file, if use ask for the name of the next file, process it, and output the results to the output file. If not end the program. NO DATA STRUCTURES MAY BE USED, only primitive data types and std strings. No arrays, lists, vectors etc. Build this program using OOP.

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

Database 101

Authors: Guy Kawasaki

1st Edition

0938151525, 978-0938151524

More Books

Students also viewed these Databases questions