3. (4%) Biologists use a sequence of the letters A, C, T, and G to model...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
3. (4%) Biologists use a sequence of the letters A, C, T, and G to model a genome. A gene is a substring of a genome that starts after a triplet ATG and ends before a triplet TAG, TAA, or TGA. Furthermore, the length of a gene string is a multiple of 3, and the gene does not contain any of the triplets ATG, TAG, TAA, or TGA. Write a program that prompts the user to enter a genome and displays all genes in the genome. If no gene is found in the input sequence, display "no gene is found". Here are two sample runs: Enter a genome string: TTATGTTTTAAGGATGGGGCGTTAGTT TTT GGGCGT Enter a genome string: TGTGTGTATAT no gene is found 2 3. (4%) Biologists use a sequence of the letters A, C, T, and G to model a genome. A gene is a substring of a genome that starts after a triplet ATG and ends before a triplet TAG, TAA, or TGA. Furthermore, the length of a gene string is a multiple of 3, and the gene does not contain any of the triplets ATG, TAG, TAA, or TGA. Write a program that prompts the user to enter a genome and displays all genes in the genome. If no gene is found in the input sequence, display "no gene is found". Here are two sample runs: Enter a genome string: TTATGTTTTAAGGATGGGGCGTTAGTT TTT GGGCGT Enter a genome string: TGTGTGTATAT no gene is found 2
Expert Answer:
Answer rating: 100% (QA)
Heres a Python program that implements the described functionality def findgenesgenome genes startcodon ATG stopcodons TAG TAA TGA index 0 while index ... View the full answer
Related Book For
Building Java Programs A Back To Basics Approach
ISBN: 9780135471944
5th Edition
Authors: Stuart Reges, Marty Stepp
Posted Date:
Students also viewed these programming questions
-
A manufacturing firm located in Chicago ships its product by railroad to Detroit. Several different routes are available, as shown in the following diagram, referred to as a network: Each circle in...
-
Could you please help complete the following java code. Help is needed where //*** is throughout the code. import java.util.Arrays; import java.util.Random; import java.util.Scanner; // // Project 3...
-
Show by approximating with integrals that the number of distinct triples of integers between 0 and \(n\) is about \(n^{3} / 6\).
-
You have been provided with the following information regarding Love Paper Ltd.'s inventory for June, July, and August. _____________Paper Inventory (in tonnes)______Cost/Tonne__________NRV/Tonne...
-
Google has scanned material from over 20 million books so that its search engine can inform users using key word searches about these books. Discuss the legality of this project.
-
What is the short-run impact of immigration on the wage of native workers? What is the long-run impact?
-
Review inventory accounting definitions and principles. Requirement 1. Complete the crossword puzzle using the following clues: Down: 1. Treats the oldest inventory purchases as the first units sold....
-
The functions fand g are defined as follows. f(x)=x-6x-4 and g(x)=- x-4 3x-5 Find f(x+8) and g (4). Write your answers without parentheses and simplify them as much as possible. f(x+8)= *(4)-0 g = H 5
-
Consider the unadjusted trial balance of Burrows Landscaping at December 31, 2023, and the related month-end adjustment data: The following adjustments need to be made on December 31 before the...
-
Assuming that the conditions for inference are met, what does this confidence interval tell us, on average, about the effect of e-game competition on men's testosterone levels? a). It suggest a large...
-
Choose an organisation with which you are familiar and, using Guests evaluation of the four possible approaches to the management of the employment relationship, describe the current employment...
-
Analyse links between different approaches to strategy and human resource management (HRM).
-
Fox (1966) clearly believed that the pluralistic perspective on employee relations was the most valid and realistic way to manage the employment relationship. Given the emergence of the HRM models of...
-
Understand the significance of strategic integration to explore links between strategy and HRM and its multi-dimensional nature.
-
Analyse the resource-based view of the organisation and describe key concepts related to this approach.
-
The runner in the photo is on a steady run at 26C to boost his strength and endurance. During this steady-state run, the atmospheric air is flowing steadily with an average velocity of 0.9 m/s toward...
-
You have accepted the engagement of auditing the financial statements of the C. Reis Company, a small manufacturing firm that has been your auditee for several years. Because you were busy writing...
-
What is the output produced from the following statements? System.out.println("\ta\tb\tc"); System.out.println("\\\\"); System.out.println("'"); System.out.println("\"\"\""); System.out.println("C:...
-
Suppose the following array has been declared: What indexes will be examined as the middle element by a binary search for each of the following target values? What value will be returned? a. 103 b....
-
Write the output produced when the following method is passed each of the following maps: a. {two=deux, five=cinq, one=un, three=trois, four=quatre} b. {skate=board, drive=car, program=computer,...
-
Explain how the financial manager might use industry norms in the design of the companys financing mix.
-
You have developed the following income statement for Sing-Tel Corporation. It represents the most recent years operations, which ended yesterday. Your supervisor in the controllers office has just...
-
Footwear, Inc. manufactures a complete line of mens and womens formal shoes for independent merchants. The average selling price of its finished product is \($85\) per pair. The variable cost for...
Study smarter with the SolutionInn App