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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 04:31, tbt81
Type the correct answer in the box. spell all words correctly. the managing director of a company sends a christmas greeting to all his employees through the company email. which type of network does he use? he uses an
Answers: 1
image
Computers and Technology, 23.06.2019 22:50, atifgujar
An environmental protection agency study of 12 automobiles revealed a correlation of 0.47 between engine size and emissions. at 0.01 significance level, can we conclude that there is a positive association between the variables? what is the p value? interpret.
Answers: 2
image
Computers and Technology, 24.06.2019 14:30, thelordoftheknowwjo4
In a home that has 120 v service, there is an electric appliance that has a resistance of 12 ohms. how much power will this appliance consume? a. 10 w b. 120 w c 1200 w d. 1440 w
Answers: 1
image
Computers and Technology, 24.06.2019 22:00, apexdude2020
Need getting google account back, big issue
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 in other subjects:

Konu
Mathematics, 16.07.2020 01:01
Konu
Mathematics, 16.07.2020 01:01