Question: 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!