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, 22.06.2019 20:00, bartlettcs9817
Which location-sharing service offers items for users as a gaming component and also allows them to collectively link their check-ins to publish a trip? a. whrrl b. buzzd c. foursquare (this option is wrong i already tried) d. gowalla for plato
Answers: 2
image
Computers and Technology, 23.06.2019 04:31, caseypearson377
Acloud service provider uses the internet to deliver a computing environment for developing, running, and managing software applications. which cloud service model does the provider offer? a. iaas b. caas c. maas d. paas e. saas
Answers: 1
image
Computers and Technology, 23.06.2019 19:30, wilkinsonei4069
Anul 2017 tocmai s-a încheiat, suntem trişti deoarece era număr prim, însă avem şi o veste bună, anul 2018 este produs de două numere prime, 2 şi 1009. dorel, un adevărat colecţionar de numere prime, şi-a pus întrebarea: “câte numere dintr-un interval [a, b] se pot scrie ca produs de două numere prime? “.
Answers: 1
image
Computers and Technology, 24.06.2019 02:10, trint5952
Aspeed limit sign that says "night" indicates the legal speed between sunset and sunrise.
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
English, 19.11.2020 01:00
Konu
Arts, 19.11.2020 01:00
Konu
Medicine, 19.11.2020 01:00