Question: C++ write a separate library called data.hpp, and write another program named as part2.cpp. The file part2.cpp should include the data.hpp library, together with others.
C++ write a separate library called data.hpp, and write another program named as part2.cpp. The file part2.cpp should include the data.hpp library, together with others. The data.hpp library should include all data related functions, e.g.: a. The function to generate data b. The function to create the next combination using the current combination c. The function to count the number of occurrences in the data for a given combination d. The function to print the outputs in a separate file called analysis.csv, in a comma separated format; each entry must be followed by a line feed. For example, three lines in the file could look like this: ACCC, 42421 ACCG, 44211. You should use call by reference for all functions above, when permissible, and use loops and arrays, where possible;
[CODE];
#include
char rna[4] ={'A','C','G','T'}; //4 possible characters char rString[5]; //string for random characters srand(time(NULL));//source for the random generator int count=1000000;//try amount char genererateStrings[256][5];//number of total combinations= 256 including repeated characters int patternCount[256]; int currentCount=0; //current string number bool present=false; //false f in list or not for(int i=0;i<256;i++){ patternCount[i] = 0; //all counters set to 0 } for(int j=0;j
Step by Step Solution
There are 3 Steps involved in it
The question seems incomplete because it abruptly ends midsentence in the code snippet and does not provide enough context or goals regarding the C li... View full answer
Get step-by-step solutions from verified subject matter experts
