Question: Please help me code the following in: JAVA Full points will be awarded, thanks in advance! Basic Statistics Your program will first prompt the user

Please help me code the following in: JAVA

Full points will be awarded, thanks in advance!

Please help me code the following in: JAVA Full points will be

awarded, thanks in advance! Basic Statistics Your program will first prompt the

Basic Statistics Your program will first prompt the user to enter a single DNA sequence, which it should validate for legality (i.e., only the four valid bases) you might do this validation by writing a function that takes a String as a parameter and returns a boolean. Re-prompt the user if the input was invalid. Once you have a valid input, compute the following statistics (each should be implemented as a separate function, called from main()). 1. Count the number of occurrences of "C Determine the fraction of cytosine and guanine nucleotides. For example, if half of the nucleotides in the sequence are either C" or "G", the fraction should be 0.5 2. A DNA strand is actually made up of pairs of bases- in effect, two strands that are cross- linked together. These two strands are complementary: if you know one, you can always determine the other, or complement, because each nucleotide only pairs up with one other. In particular, A" and "T" are complements, as are "C" and "G". So, for example, the complement of the sequence AAGGTCT" would be "TTCCAGA". Compute the complement of the input sequence. 3

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!