Question

Translate from Python to Java HELP def assignment(): a = ['Ailuropoda', 'melanoleuca', 'ATGTTCATTAACCGATGACTGTTTTCCACCAA'] for i in...

Translate from Python to Java HELP

def assignment():
a = ['Ailuropoda', 'melanoleuca', 'ATGTTCATTAACCGATGACTGTTTTCCACCAA']

for i in range(1,len(a[2])-1):
print(a[2][i-1]+a[2][i]+a[2][i+1])

output

ATG
TGT
GTT
TTC
TCA
CAT
ATT
TTA
TAA
AAC
ACC
CCG
CGA
GAT
ATG
TGA
GAC
ACT
CTG
TGT
GTT
TTT
TTT
TTC
TCC
CCA
CAC
ACC
CCA
CAA

0 0
Add a comment Improve this question Transcribed image text
Answer #1
//TestCode.java
public class TestCode {
  public static void main(String args[]){
    String a[] = {"Ailuropoda", "melanoleuca", "ATGTTCATTAACCGATGACTGTTTTCCACCAA"};
    char ch1, ch2, ch3;
    for(int i = 1;i<a[2].length()-1;i++){
      ch1 = a[2].charAt(i-1);
      ch2 = a[2].charAt(i);
      ch3 = a[2].charAt(i+1);
      System.out.print(ch1);
      System.out.print(ch2);
      System.out.println(ch3);
    }
  }
}

ATG
TGT
GTT
TTC
TCA
CAT
ATT
TTA
TAA
AAC
ACC
CCG
CGA
GAT
ATG
TGA
GAC
ACT
CTG
TGT
GTT
TTT
TTT
TTC
TCC
CCA
CAC
ACC
CCA
CAA

Add a comment
Know the answer?
Add Answer to:
Translate from Python to Java HELP def assignment(): a = ['Ailuropoda', 'melanoleuca', 'ATGTTCATTAACCGATGACTGTTTTCCACCAA'] for i in...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Adenosine deaminases modify adenosines to form _____________________, which is then read as _________________________ by the translation...

    Adenosine deaminases modify adenosines to form _____________________, which is then read as _________________________ by the translation and splicing systems, as well as by reverse transcriptase. Cephalopods like squid and octopus use this form of editing very extensively in their protein-coding regions.  For each of the following, please indicate how these enzymes can alter the mRNA to produce the indicated codon changes.   I (Ileu)  is changed to V (val): K (Lys) is changed to E (Glu): T (Thr) is changed to A (ala):...

  • mRNA transcr leaves the mucl ke protcins Th eings the amino no acids anre the bui...

    mRNA transcr leaves the mucl ke protcins Th eings the amino no acids anre the bui ead in onder to. start and stop mak Land when to stot C. Use your codon chart to determine the amino acid sequence. Remember to read through the strand and ONLY start on AUG and STOP when it tells you to stop Follow example below Example: DNA AGA CGG TAC CTC CGG TGG GTG CTT GTC TGT ATC CTT CTC AGT ATC UCU GCC...

  • Please develop a Java program to read in a piece of DNA sequence from a FASTA format sequence fil...

    Please develop a Java program to read in a piece of DNA sequence from a FASTA format sequence file (alternatively you can use the getRandomSeq(long) method of the RandomSeq class to generate a piece of DNA sequence), and then print out all the codons in three forward reading frames. Design a method called codon() that can be used to find all the codons from three reading frames. The method will take in an argument, the reading frame (1, 2, or...

  • 4. Using the MK-Test, evaluate whether positive selection has driven the evolutionary divergence between Chimpanzee...

    4. Using the MK-Test, evaluate whether positive selection has driven the evolutionary divergence between Chimpanzees and Humans, Please show your work.. Second letter U C A UUU Phe UCU UAU UGU UCC Tyr UUA T UAC UAA Stop UGA UAG Stop UGG UGC Cys UCA Ser UUG FLeu UCG Trp G CUUT CUC CUA CCU CCC CCA. CCG CAU CAC His CAA CAG Gln CGU CGC Leu Pro Arg CGA CGG CUG G AUU 1 AUC lle A AUA ACU...

  • You want to make a live virus vaccine against the COVID-19 virus by using zoonotic coronaviruses,...

    You want to make a live virus vaccine against the COVID-19 virus by using zoonotic coronaviruses, i.e. coronaviruses that currently infect other species and therefore grow poorly in humans. i) What is the advantage of using a virus for the vaccine instead of just injecting spike protein from the COVID-19 virus ii) You obtain the DNA sequence of two coronaviruses that infect bats or foxes. The partial sequence of the spike protein from the human virus, and from these two...

  • Which word does not belong with the others? For instance, they may be involved with different...

    Which word does not belong with the others? For instance, they may be involved with different molecules or processes. O a) RNA b) proteins OC) 3' end d) 5' end The Shine Dalgarno sequence is involved with a) translation initiation in eukaryotes b) translation initiation in prokaryotes c) transcription initiation in prokaryotes d) transcription initiation in eukaryotes The following diagram represents a transcription unit in a hypothetical DNA molecule: (I have put spaces between every 3 bases to make it...

  • Describe what kind of mutation this allele has (e.g. insertion, deletion, substitution), which codon it is...

    Describe what kind of mutation this allele has (e.g. insertion, deletion, substitution), which codon it is in, what effect it will have on the protein (e.g. nonsense missense, silent) as well as the amino acid change it will cause if it is a substitution. Refer to the genetic code. U UUU C UCU Uục Phe UCC Ser UUA UUG CUU UCA UCG CCU CCC Α UAU UAC y UGC cys UAA Stop UGA Stop UAG Stop UGG trp CGU CAC"...

  • Answer The following Please, Name: Date: Transcription/Translation Practice Worksheet 1. Use the following DNA strand: TAC...

    Answer The following Please, Name: Date: Transcription/Translation Practice Worksheet 1. Use the following DNA strand: TAC GTC ACG AGA TGA GTT ATC ATT A. What is the mRNA synthesized from the DNA strand? B. What is the amino acid sequence that is then translated from this mRNA strand? 2. Use the following DNA stand: TAC TTG GCC ACG GAC TAA CAT GCA A. What is the complementary DNA strand of the above DNA strand? B. Using the complementary DNA strand,...

  • Lecture Homework Assignment (LHA) #3 BIO 2010 Microbiology Print Name: Section # Sequences of single strands...

    Lecture Homework Assignment (LHA) #3 BIO 2010 Microbiology Print Name: Section # Sequences of single strands of DNA are shown below for two different pieces of DNA. Assume that the DNA sequences are not at the beginning of a gene and that the spaces between each DNA triplet represent the correct reading frame, Label all sequences 5 and 3', where appropriate. Keep everything aligned properly. A Synthesize the complementary DNA sequence. B. Transcribe the mRNA sequence starting with the 5...

  • Question 19 (1 point) Forward Primer: GTG ATG CGG GTT TGT GCA GAC (5' to 3'...

    Question 19 (1 point) Forward Primer: GTG ATG CGG GTT TGT GCA GAC (5' to 3' on coding strand) Make a reverse primer from the following sequence, also from the coding strand, that is GC clamped and the Tm is within plus or minus 1 degree C (using the rule of thumb for calculating Tm we used in class). Please write the primer in its own 5' to 3' sequence, so we can send it out to be synthesized. ATC...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT