Question: 8. Suppose we are interested in studying a DNA sequence which consists of four bases: A, c, G, and T. For example: TGCGTGCTACCACATCATGCAGTTTTCAAAGAAGAAAGCCTCACCACAAA. Your goal
8. Suppose we are interested in studying a DNA sequence which consists of four bases: A, c, G, and T. For example: TGCGTGCTACCACATCATGCAGTTTTCAAAGAAGAAAGCCTCACCACAAA. Your goal is to compute the occurrence (expressed as a percentage) of each base and output it in the following format (including the header): Base Statistics A: 36.0 T: 20.0 G: 16.0 C: 28.0 Constraints: The DNA sequence can be from 1 to 50 characters long. In order to output floating point numbers with only one decinal digit, you nay use "s.11f . You must read the DNA sequence input from the user
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
