subject

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

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.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 22:40
Write a program that defines symbolic names for several string literals (chars between quotes). * use each symbolic name in a variable definition. * use of symbolic to compose the assembly code instruction set can perform vara = (vara - varb) + (varc - vard); ensure that variable is in unsigned integer data type. * you should also further enhance your symbolic logic block to to perform expression by introducing addition substitution rule. vara = (vara+varb) - (varc+vard). required: debug the disassembly code and note down the address and memory information.
Answers: 3
question
Computers and Technology, 23.06.2019 04:00
Another name for addicting games.com
Answers: 1
question
Computers and Technology, 24.06.2019 02:30
Which option completes the explanation for conflict of interest in an organization
Answers: 1
question
Computers and Technology, 24.06.2019 07:00
Guys do you know sh27 cause he hacked me : ( pidgegunderson my old user
Answers: 2
You know the right answer?
Your program will first prompt the user to enter a single dna sequence, which it should validate for...
Questions
question
Spanish, 30.06.2019 12:00
question
Biology, 30.06.2019 12:00
Questions on the website: 13722363