Write a program to get a DNA sequence from the user (as a function called get_user_input())...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Write a program to get a DNA sequence from the user (as a function called get_user_input()) and count the number of occurrences of A, T, C and G (as a function called count_bases()). If there is an A in the sequence, print the number of times it appears in the sequence. If it does not exist, print "A not found". Do the same for T, C and G. For example: Enter a sequence: ACCAGGCA A count: 3 T not found C count: 3 G count: 2 Write a program to get a DNA sequence from the user (as a function called get_user_input()) and count the number of occurrences of A, T, C and G (as a function called count_bases()). If there is an A in the sequence, print the number of times it appears in the sequence. If it does not exist, print "A not found". Do the same for T, C and G. For example: Enter a sequence: ACCAGGCA A count: 3 T not found C count: 3 G count: 2
Expert Answer:
Answer rating: 100% (QA)
letters q e f q f n o e g m i m i n e g r o l j z j h k m n g t o k u e o s y v x g ... View the full answer
Related Book For
Elementary Statistics A Step By Step Approach
ISBN: 9781259755330
10th Edition
Authors: Allan G. Bluman
Posted Date:
Students also viewed these programming questions
-
The code that you add to the Craps main method needs to do the following steps in the following order (where indicated by the comments in the code itself): 1. Declare an integer array named counts...
-
The Crazy Eddie fraud may appear smaller and gentler than the massive billion-dollar frauds exposed in recent times, such as Bernie Madoffs Ponzi scheme, frauds in the subprime mortgage market, the...
-
Assignment 5: Hash Table implementation andconcordance There are three parts to this assignment. In the first two parts,you will complete the implementation of a hash map and aconcordance program. In...
-
A fast-food chain randomly attaches coupons for prizes to the packages used to serve french fries. Most of the coupons say Play again, but a few are winners. Seventy-five percent of the coupons pay...
-
Arden Furniture Company, which uses a periodic inventory system, engaged in the following transactions during July of the current year: Jul. 2 Purchased inventory for cash, $6,400, less a quantity...
-
You have inherited money from your grandparents and a friend suggests that you consider buying shares in Galena Ski Products. Because you may need to sell the shares within the next two years to...
-
How do we use the requirement of design to define messages and methods?
-
A review of the ledger of Khan Company at December 31, 2014, produces the following data pertaining to the preparation of annual adjusting entries. 1. Prepaid Insurance $9,300. The company has...
-
At this point, you completed thefunctioning and business requirements related to Modems, Routers, Firewalls, Switches, and LAN cable or Patch Cable needed for the Home Automation System project (...
-
Balanced scorecard views the performance of an organization through four lenses: customer, innovation and learning, internal business, and financial. According to surveys from Bain & Company (a...
-
To address his concern regarding the previous advisers asset allocation approach, Raye should assess the Laws portfolio using: A. a homogeneous and mutually exclusive asset classbased risk analysis....
-
Raye believes the previous advisers asset class specifications for equity and derivatives are inappropriate given that, for purposes of asset allocation, asset classes should be: A. diversifying. B....
-
The list of securities that a particular ETF wants to own, which is disclosed daily by all ETFs, is referred to as the: A. creation unit. B. creation basket. C. redemption basket.
-
Which of the following statements relating to capital gains in ETFs and mutual funds is correct? A. ETFs tend to distribute less in capital gains than mutual funds do. B. Mutual funds may elect not...
-
Investors buying ETFs: A. incur management fees that decrease with the length of the holding period. B. are assured of paying a price equal to the NAV if they purchase shares at the market close. C....
-
Here I'd like you to see yourself as a successful government employee, say a program manager, who is thinking about leaving government and going to work for a government contractor. In fact, reps...
-
Drainee purchases direct materials each month. Its payment history shows that 65% is paid in the month of purchase with the remaining balance paid the month after purchase. Prepare a cash payment...
-
The probability that a homeowner owns a lawnmower is 0.7. The probability that a homeowner owns a weed wacker is 0.5. The probability that a home owner owns both a lawnmower and a weed wacker is 0.3....
-
A store manager wishes to see if the number of absences of her employees is the same for each weekday. She selected a random week and finds the following number of absences. At α =...
-
In a recent year U.S. retail automobile sales were categorized as listed below. luxury 16.0% large 4.6% midsize 39.8% small 39.6% A random sample of 150 recent purchases indicated the following...
-
Brown India Limited manufactures office tables. Normal capacity of the factory is 60,000 tables per annum. Following are the cost and inventory details for the year 200506. Required: Carry out the...
-
Usha Corporation Ltd. sought the advice of an investment advisor for deployment of surplus funds of around Rs. 45 lakh in the stock market. The advisor advised to invest in Bhonsle India Ltd. and...
-
Ram Lakhan Company Ltd. produces one unit of product B by using one unit of raw material A. During 200506 A costed the company 4,200. Conversion cost was 850. As on 31st March 2006, being the...
Study smarter with the SolutionInn App