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
Soloha48 [4]
3 years ago
7

Write a program that prompts the user to enter an oligonucleotide sequence, such as TATGAGCCCGTA.

Computers and Technology
1 answer:
Alexxx [7]3 years ago
7 0

Answer:

Explanation:

The following code is written in Python. It continues looping and asking the user for an oligonucleotide sequence and as long as it is valid it outputs the reverse complement of the sequence. Otherwise it exits the loop

letters = {'A', 'C', 'G', 'T'}

reloop = True

while reloop:

   sequence = input("Enter oligonucleotide sequence: ")

   for x in sequence:

       if x not in letters:

           reloop = False;

           break

   if reloop == False:

       break

   newSequence = ""

   for x in sequence:

       if x == 'A':

           newSequence += 'T'

       elif x == 'T':

           newSequence += 'A'

       elif x == 'C':

           newSequence += 'G'

       elif x == 'G':

           newSequence += 'C'

   print("Reverse Complement: " + newSequence)

You might be interested in
For which of the following purposes can a database be used?
creativ13 [48]
D) All of the above.
4 0
3 years ago
Write a note on secondary storage​
12345 [234]
Secondary storage refers to storage devices and media that are not constantly accessible by a computer system. Examples include external hard drives, portable flash drives, CDs, and DVDs.
good luck
4 0
3 years ago
Why are design patterns generally discovered and are not created?
SCORPION-xisa [38]

Answer:

 Design pattern are generally not created because it is difficult to verify that whether it is helpful for others to solving their problems or not.

The main aim of design pattern is that providing the software platform for communication. It basically describe the pattern of software design.

For creating a design pattern high efforts and struggle is required and we also realized that by adopting the similar technologies, they solve the same problem. Therefore, the design pattern are not created but discovered.  

6 0
2 years ago
A CPU with interrupt driven I/O is busy servicing a disk request. While the CPU is midway through the disk-service routine, anot
Novosadov [1.4K]

Answer:

  • Working scenario:

When a CPU is working with interrupt driven I/O scheme, it will control the I/O interrupt on the basis of priority. This means that interrupts with higher priority will be processed first and others will be processed later.

  • Part (a)

When the CPU is busy servicing a disk request and another I/O interrupt occurs, the CPU will check the priority line (assigned during design phase) of both the interrupts and then decides the precedence from both of them.  

When the CPU gets ready to process the interrupt, an Interrupt Acknowledge signal (INTA) is sent back in return to interrupt signal (INT).

  • Part(b)

Occurring of interrupts while the CPU is midway through the disk-service is not a problem. It can happen normally.

  • Part (c)

Occurring of interrupts while the CPU is midway through the disk-service is not a problem, the CPU just picks the multiple interrupts checks the priority line and processes one of the multiple interrupts based on the highest priority matter.

i hope it will help you!

6 0
3 years ago
A colleague of yours frequently takes small amounts of office supplies for his own personal use, noting that the loss to the com
jenyasd209 [6]

Answer:

The answer to the following question is Kant's Categorical Imperative.

Explanation:

The Kant theory is the examples of the deontological moral theories - according to the theories, the wrongness or the rightness of an actions doesn't depends on the consequences but on whether they fulfills the duty. The Kant believes that there were the supreme principles of morality, he referred it as The Categorical Imperative.

8 0
3 years ago
Other questions:
  • Ssl/tls provides security ________. a. between the sender and his or her e-mail server b. all the way between the sender and the
    7·1 answer
  • What are some of the issues that organizations need to be aware of when designing and managing data?
    8·1 answer
  • Write a program that prompts the user to enter in a postive number. Only accept positive numbers - if the user supplies a negati
    11·1 answer
  • In 3-5 sentences, describe how you would insert a graph in your word-processing document.
    13·1 answer
  • Walmart store wants to compare the sales of five of its stores. Write a complete program to ask the user to enter the sales for
    12·1 answer
  • A researcher plans to identify each participant in a certain medical experiment with a code consisting of either a single letter
    10·1 answer
  • Which of the following will print I'VE GOT THIS on the screen? (5 points)
    14·1 answer
  • Which types of file formats are the best choice for files that may need to be edited later?
    14·1 answer
  • When you create a user with the useradd command, what is the immediate state of it?
    6·1 answer
  • How is distributed ledger technology (DLT) used in a blockchain?
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!