ATCG Content of Multiple Gene Sequences using C++
This is a simple tutorial for computing ATCG contents of multiple gene sequences using the classes, objects, and members in C++. In this tutorial, I have used Dev C++ v5.11 software for compiling the C++ program. Program Design A. Define a class to represent a gene sequence data. Include the following members: Data members: Gene name Gene ID Length A, T, G, C content Member functions: To read data for a gene To compute A, T, G, C content To display all the details of a gene B. Write a main program to test the program by reading n gene sequences data. Source Code /* Computing ATCG Content of Multiple Gene Sequences */ #include <iostream> #include <iomanip> #include <conio.h> #include <string.h> #include <stdlib.h> class gene { char r, gene_name[20][20], gene_seq[20][200], gene_id[20][20], id[20]; int gene_length, a, t, c, g, o, n, i, j, m, substr_eq, substr_rem; std::str...