1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
arsen [322]
3 years ago
12

In molecular biology the "alphabet" of genes consists of four chemicals (called nucleotides) represented by the letters A C G T.

A triad is a sequence of three nucleotides (for example AGA) and specifies an amino acid, a building block for proteins. A gene consists of a very, very long sequence of A-C-G-T combinations.Assume the input consists of a long sequence of A-C-G-T letters representing a gene. Write the code necessary to skip over the first 7 letters and then read the next 4 triads, printing each out on its own line
Computers and Technology
2 answers:
Ann [662]3 years ago
8 0

Answer:

#Python

1. def Triad(dna):

2.    dna = list(dna)

3.    fourTriad = dna[7:19]

4.    print(fourTriad)

5.    return(dna)

Explanation:

We define a function called Triad that receives a string with a DNA sequence composed of A-C-G-T letters, then we transform this string into a list, to finally take the elements 7 to 18 (In python the first element is the element zero).

An example of the code:

Triad('ACAAGTCGATGAGCGATGCGATCAGTAGCGGGCTGGATGCTGCTAGATCGCAGCATGACGTACTGACTGT')

Output:

['G', 'A', 'T', 'G', 'A', 'G', 'C', 'G', 'A', 'T', 'G', 'C']

dedylja [7]3 years ago
5 0

Answer:

Char Acid [4];

Cin.get (acid, 7);

cin.ignore ();

for(int i=0; i<4; i++)

{ cin.get (acid,4) ;

for (int j=0; j<3; j++)

cout << acid[j];

cout << endl;

You might be interested in
True false) ther are five arrow keys on the keborad​
cluponka [151]

Answer:

false, there's only 4

Explanation:

5 0
3 years ago
Q) Select the two obstacles for data parsing
fgiga [73]

Answer:

A and B

Explanation:

parsing with a rich grammar like TAG faces two main obstacles: low parsing speed and a lot of ambiguous syntactical parses.

3 0
4 years ago
Read 2 more answers
9.17 LAB: Acronyms An acronym is a word formed from the initial letters of words in a set phrase. Write a program whose input is
AlexFokin [52]

Answer:

Hence the code is given as follows,

import java.util.Scanner;

public class LabProgram {

   public static String createAcronym(String userPhrase){

       String result = "";

       String splits[] = userPhrase.split(" ");

       for(int i = 0;i<splits.length;i++){

           if(splits[i].charAt(0)>='A' && splits[i].charAt(0)<='Z')

               result += splits[i].charAt(0);

       }

       return result;

   }

   public static void main(String[] args) {

       Scanner scan = new Scanner(System.in);

       String s = scan.nextLine();

       System.out.println(createAcronym(s));

   }

}

6 0
3 years ago
An example of an "external brain" is:
mojhsa [17]

<u>Answer:</u>

<em>Organize things </em>

<u>Explanation</u>:

It is the <em>duty and power of external brain to Organize ideas</em>. Per day we may have plenty of works to be done. So we start thinking about <em>one by one and finally we try to sort out and organize how to perform, when to do and what is the first and last task etc. </em>

It is the external brain which is helping us to figure it out. But there are certain times where we <em>dump things together</em>, especially when there is an very important like marriage of our family member, where they <em>give lots of responsibilities. </em>

<em>At that time, we have very limited time to work out things and we dump our external brain. </em>

7 0
3 years ago
Read 2 more answers
Frank lives in an area that experiences frequent thunderstorms. What precautionary measure should he adopt?
Sonja [21]

Answer:

I would go with A

Explanation:

6 0
3 years ago
Other questions:
  • List three considerations when you choose memory.
    14·1 answer
  • When computing the net cash provided by operating activities under the indirect method on the statement of cash flows, a decreas
    14·1 answer
  • PLEASE HELP
    9·2 answers
  • Write an if/else statement that compares the double variable pH with 7.0 and makes the following assignments to the int variable
    6·1 answer
  • Which outcome is one of the negative consequences of anonymous communication over the Internet? It can lead to regulatory restri
    14·2 answers
  • Tipos de estructuras A. Expresiones y de variables B. Selectivas y de control C. Instrucciones y parámetros
    5·1 answer
  • I need someone to explain gor me python coding!
    9·1 answer
  • If you are going to analyze and interpret data, you need to do all of the following execept blank.
    12·1 answer
  • When adopting and implementing a software as a service (saas) platform such as salesforce for your business, which responsibilit
    10·1 answer
  • ___ is the most important variable that is measured and controlled in a commercial hvac system.
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!