Question
C++ DNA Analyzer Program Text File TACTTAGTTTTTATACTAGAAGGCTACGATACCCAGGTAAGTTGTGTTAAAGGAGTCGGTAACTAAAACATTCAATGAACAACAGTACCAATAGATTCGA TTTGTGCAAACGTTGGGGGCCCTCTTGTGACCGCATGTACTGAAATGGACCCTACAACGCCTGAACATAGCGCCATTTTATGACATTTTGCCACGGACCT AAATCGGCGAATAACTCCCGTCAGACTCGCACTACCGTTCTCAAAAGCGGTGCCATGTAGCGTGAAAACATATTCTTGAGGCCGAAGCGCCGAGCTTGTC CTGTTAAAGCCGGTAATCTTGAAATGACATACTGTGAACGCGACATGCCCTCGTAACTCATAGGGTCACGGACCCCAGTGGTTATAGCCATTTTACATGG GATTGACCCCTCTATGCTGTTCACCTCTGTATTGGATCAGACCGTGGAGTAACCTGTGGAGACTTCTTCGCATCGGTCAAATCTTTCGCAAATGCATTTT ATGATATGATCTATTTCCTATCTACGGACTGCCTCTCGAGTGGGGCGATCATATGTCTGCCCCCAGCTTATCCCGATAGGCTCACTGCGCTTGAAAAGCT CTTTTGGCTTCAGGTTTCCGTTTTTATTGCGATTCGGGGAAGCCATCTGTGGTAATCGTCGGTAGGCTAAAGGCTTAACAACTATGAGAGTAGTAACTGG TTGATAAACCCTTACCTTTTACGGTAGCGGAAGCGTCGCCAGGCTGGGACGTACGTCTGTGGTATGCCAATCATAACCATAGCTGTTGGTATGACTCAAC CCCAGCACGGCACGAGCGTAGCTACGATACCTTGCCGAGACGCCTTTCGTTAGTATCTACAGTCGCTAAGTAGTGGGAGACGGTCCCCTCGACGCTGGGA GTGATCCGAGGCTTGGACACCGAGTTCAAGTTCGCTGGATATGCCTCGTTGGGAGCGGGCGTTTCCACCTGGCTGGGAAAACCTGATTCCCGAGAAAATG ATGCAGTTACACCTCCCGCGCGAAGAGGCTACAGTGCACATTGTTAGCGCCCCCTGGAGCTGTAGTTCGCCTGTGAGCTCATAATCACGGGCCACACCAA TGCTTCTGAGACGGTTACACCCAGATGCTTGTAGCATACACTCTTAACAAGGTTCCTTAGTACACGTGTTCTTTTGCGAGATTCTGGCTCTGGGTAGAAC CGACCGGCAAATAACAATAGTGAAAGGAACACTAATCAGTAATGTTTGCTACGGGACGTTCGTTACGTCGTGAGTGGGTAGTGAGCCGGCGATAATCAGT ACCGAGCCTCAACTTTACATTTCAGATTGGCCCCGTAGACTCGCAGCGAAAATTGTGACAACCGACGGACGAAAGTTGGGGGTGACGCTCCAGGGGACGG ACAGACCTGAATGCGCGACGACCTACGCAAGCATGGATAAGGCGCACTACGGCAAGCCCCCTTTTAGCGTTGGAATTATGCAACCCGGGCTGACCGATGT TCGGAGCTAGAAAAGTGTCATTCCGTCGACCCGTCCCTGTAATAAATGAGTTTAGGTAAGGTCCTTATTGCCTGGATTATGTGAGTTCTCAGATTTGAGT CGACGGTCGTCAGCATGCCGTGGTTGGTTTTGCGCGCGGCGCGTTAATTTATAGCCGTAACGCGACGGCGTGGAGAGCCGCCATCCTCTGATAACTTTGT CAGGGGGAAGAATCATATGCTACTGTTGACGTGATTTCGAGGTCTAGCTTCGTTACTCAGAAGACCATGGCTTTGTCTACGATATCAGGCTCGCGCGAAT CGTAATGGCTTACGGGGAATTATAGTCGCATCGTTGGGGTTACCCATGCTATTTTAGATAGACAGCCTTTCGATTTCGACCCAGTAGACTACTGCGCGCT
C++ DNA Analyzer Program
Text File
TACTTAGTTTTTATACTAGAAGGCTACGATACCCAGGTAAGTTGTGTTAAAGGAGTCGGTAACTAAAACATTCAATGAACAACAGTACCAATAGATTCGA TTTGTGCAAACGTTGGGGGCCCTCTTGTGACCGCATGTACTGAAATGGACCCTACAACGCCTGAACATAGCGCCATTTTATGACATTTTGCCACGGACCT AAATCGGCGAATAACTCCCGTCAGACTCGCACTACCGTTCTCAAAAGCGGTGCCATGTAGCGTGAAAACATATTCTTGAGGCCGAAGCGCCGAGCTTGTC CTGTTAAAGCCGGTAATCTTGAAATGACATACTGTGAACGCGACATGCCCTCGTAACTCATAGGGTCACGGACCCCAGTGGTTATAGCCATTTTACATGG GATTGACCCCTCTATGCTGTTCACCTCTGTATTGGATCAGACCGTGGAGTAACCTGTGGAGACTTCTTCGCATCGGTCAAATCTTTCGCAAATGCATTTT ATGATATGATCTATTTCCTATCTACGGACTGCCTCTCGAGTGGGGCGATCATATGTCTGCCCCCAGCTTATCCCGATAGGCTCACTGCGCTTGAAAAGCT CTTTTGGCTTCAGGTTTCCGTTTTTATTGCGATTCGGGGAAGCCATCTGTGGTAATCGTCGGTAGGCTAAAGGCTTAACAACTATGAGAGTAGTAACTGG TTGATAAACCCTTACCTTTTACGGTAGCGGAAGCGTCGCCAGGCTGGGACGTACGTCTGTGGTATGCCAATCATAACCATAGCTGTTGGTATGACTCAAC CCCAGCACGGCACGAGCGTAGCTACGATACCTTGCCGAGACGCCTTTCGTTAGTATCTACAGTCGCTAAGTAGTGGGAGACGGTCCCCTCGACGCTGGGA GTGATCCGAGGCTTGGACACCGAGTTCAAGTTCGCTGGATATGCCTCGTTGGGAGCGGGCGTTTCCACCTGGCTGGGAAAACCTGATTCCCGAGAAAATG ATGCAGTTACACCTCCCGCGCGAAGAGGCTACAGTGCACATTGTTAGCGCCCCCTGGAGCTGTAGTTCGCCTGTGAGCTCATAATCACGGGCCACACCAA TGCTTCTGAGACGGTTACACCCAGATGCTTGTAGCATACACTCTTAACAAGGTTCCTTAGTACACGTGTTCTTTTGCGAGATTCTGGCTCTGGGTAGAAC CGACCGGCAAATAACAATAGTGAAAGGAACACTAATCAGTAATGTTTGCTACGGGACGTTCGTTACGTCGTGAGTGGGTAGTGAGCCGGCGATAATCAGT ACCGAGCCTCAACTTTACATTTCAGATTGGCCCCGTAGACTCGCAGCGAAAATTGTGACAACCGACGGACGAAAGTTGGGGGTGACGCTCCAGGGGACGG ACAGACCTGAATGCGCGACGACCTACGCAAGCATGGATAAGGCGCACTACGGCAAGCCCCCTTTTAGCGTTGGAATTATGCAACCCGGGCTGACCGATGT TCGGAGCTAGAAAAGTGTCATTCCGTCGACCCGTCCCTGTAATAAATGAGTTTAGGTAAGGTCCTTATTGCCTGGATTATGTGAGTTCTCAGATTTGAGT CGACGGTCGTCAGCATGCCGTGGTTGGTTTTGCGCGCGGCGCGTTAATTTATAGCCGTAACGCGACGGCGTGGAGAGCCGCCATCCTCTGATAACTTTGT CAGGGGGAAGAATCATATGCTACTGTTGACGTGATTTCGAGGTCTAGCTTCGTTACTCAGAAGACCATGGCTTTGTCTACGATATCAGGCTCGCGCGAAT CGTAATGGCTTACGGGGAATTATAGTCGCATCGTTGGGGTTACCCATGCTATTTTAGATAGACAGCCTTTCGATTTCGACCCAGTAGACTACTGCGCGCT CGCAACCAACATGTTGAGAATATCAGCAGCCTGGATGGAAGTCAAGAACTGCTATCAAAACGAATGTGGAAGCTCACTACCGTACCTTCCGCCAGTTGCG
2. Consider a strand of deoxyribose nucleic acid (DNA) with a length of 100 nucleotides (nt's), in which the sugar is called deoxyribose, and the only four choices for nucleobases are molecules called adenine (A), cytosine (C), guanine (G), and thymine (T). You can read more about DNA here (https://en.wikipedia.org/wiki/DNA) A text file called DNAdata.txt contains the data for 20 DNA strands each with a length of 100 nucleotides (nt's), expressed in ACGT sequences. Write a C++ program that will analyze the DNA data and will convert the DNA data to RNA (Ribonucleic Acid) data as follows: a) Create a function called DNAtoRNA that accepts a c-string representing one strand of DNA data, converts it to the RNA data and returns a c-string containing the RNA data. This function replaces each instance of T with U. Example: TCATGG... is converted to UCAUGG b) A function called countDNAnt that accepts a c-string representing a DNA strand counts each instance of A, C, G & T in the strand and returns those values. The program will preform the following: Display a table showing the counts of A, C, G & T Display the total of A, C, G & T for all DNA strands
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started