In Java please:
Problem using knowledge of DNA sequences:
A) "Your program will first...
![subject](/tpl/images/cats/informatica.png)
Computers and Technology, 13.02.2020 21:59 yaboi2018
In Java please:
Problem using knowledge of DNA sequences:
A) "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".
2. 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.
3. A DNA strand is actually made up of pairs of bases — in effect, two strands that are crosslinked 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.
The output should be something like this;
Sequence 1: AATCTATA
C-count 1
CG-ratio: 0.125
Complement: TTAGATAT
Sequence 2: AAGATA
C-count: 0
CG-ratio: 0.167
Complement: TTCTAT
![ansver](/tpl/images/cats/User.png)
Answers: 2
![](/tpl/images/ask_question.png)
![](/tpl/images/ask_question_mob.png)
Other questions on the subject: Computers and Technology
![image](/tpl/images/cats/informatica.png)
Computers and Technology, 23.06.2019 07:00, schvox
1. you have a small business that is divided into 3 departments: accounting, sales, and administration. these departments have the following number of devices (computers, printers, etc.): accounting-31, sales-28, and administration-13. using a class c private network, subnet the network so that each department will have their own subnet. you must show/explain how you arrived at your conclusion and also show the following: all available device addresses for each department, the broadcast address for each department, and the network address for each department. also, determine how many "wasted" (not usable) addresses resulted from your subnetting (enumerate them).
Answers: 3
![image](/tpl/images/cats/informatica.png)
Computers and Technology, 23.06.2019 13:30, gamingisfun
Me ! evelyn is a manager in a retail unit. she wants to prepare a report on the projected profit for the next year. which function can she use? a. pmt b. round c. division d. what-if analysis
Answers: 2
![image](/tpl/images/cats/informatica.png)
Computers and Technology, 23.06.2019 14:30, bernicewhite156
Select the correct answer. what does it indicate when a website displays https instead of http? a. the website is secure. b. there is no secure sockets layer. c. the secure sockets layer is hidden. d. the website is not secure.
Answers: 1
![image](/tpl/images/cats/informatica.png)
Computers and Technology, 23.06.2019 16:30, 19thomasar
How to do this programming flowchart?
Answers: 3
You know the right answer?
Questions in other subjects:
![Konu](/tpl/images/cats/istoriya.png)
History, 15.09.2020 01:01
![Konu](/tpl/images/cats/mat.png)
Mathematics, 15.09.2020 01:01
![Konu](/tpl/images/cats/mat.png)
Mathematics, 15.09.2020 01:01
![Konu](/tpl/images/cats/mat.png)
Mathematics, 15.09.2020 01:01
![Konu](/tpl/images/cats/mat.png)
Mathematics, 15.09.2020 01:01
![Konu](/tpl/images/cats/mat.png)
Mathematics, 15.09.2020 01:01
![Konu](/tpl/images/cats/mat.png)
Mathematics, 15.09.2020 01:01
![Konu](/tpl/images/cats/mat.png)
Mathematics, 15.09.2020 01:01
![Konu](/tpl/images/cats/mat.png)
Mathematics, 15.09.2020 01:01
![Konu](/tpl/images/cats/istoriya.png)
History, 15.09.2020 01:01