A sequence in fasta format consists of a header line

Assignment Help Civil Engineering
Reference no: EM13846641

1. A sequence in FASTA format consists of a header line starting with a ">" sign, followed by a sequence identifier (GenBank Accession number, or clone name), and one or more lines of the sequence itself.

Write a Java program to first prompt the user for a sequence identifier, such as "Enter a clone name

Then prompt for the DNA sequence. The program should print out a FASTA format sequence to the screen. An example output is listed below: 
>bi617a01
GCATGGCGTAAATTGCCCGTACGCTTAA

2. To develop a Java program to prompt the user to enter a piece of DNA sequence in upper case letter (G, C, A, or T). Using a for loop and the charAt() method of the String class to check each character of the entered sequence, and if the sequence contains non-DNA sequence letter(s), print out the sequence and a message says that the DNA sequence entered contains invalid letters. If what entered is a true DNA sequence (with only G, C, A, or T), print out just the sequence.  (2 points)


3. Design a Java program that asks the user to input a series of 10 integers, and then determines and prints the largest integer you entered. Your program should use at least the following three variables:

counter: A counter to count to 10 (i.e, to keep track of how many numbers have been input and to determine when all 10 numbers have been processed).

number: The integer most recently input by the user.

largest: The largest number found so far.

Reference no: EM13846641

Questions Cloud

What is the definition of a non-busy : What is the definition of a non-busy waiting BoundedBuffer? I have to implement one for my Operating Systems course but cannot find any resources on non-busy waiting BBs, only on busy waiting BBs
Dee fektiv is concerned that too many forms : Dee Fektiv is concerned that too many forms are being filled out incorrectly. She feels that about 10 percent of forms have an error. a. How large a sample size should Dee use to be 99% certain that she will be within 0.02?
Firm in perfect competition : A firm in a perfectly competitive market has the following total cost function: STC = 20 + 6Q - 1.12Q 2 + 0.09Q3, where Q is the firm's output (in 000s). Market price is $7.
What is happening to total domestic gas production : Where does NSW get most of its natural gas supplies from up to now? What is happening to total domestic gas production in Australia and Describe the structural change that is taking place in the Australian gas market.
A sequence in fasta format consists of a header line : 1. A sequence in FASTA format consists of a header line starting with a ">" sign, followed by a sequence identifier (GenBank Accession number, or clone name), and one or more lines of the sequence itself. Write a Java program to first prompt the user..
Describes how the objectives you wrote address : describes how the objectives you wrote address the characteristics of a basic ELL level and accounts for the theoretical language acquisition principles mentioned in your required reading.
Write a program in c which takes the (x, y) coordinate : Write a program in C which takes the (x, y) coordinates of three points on the x-y plane as the input and outputs the area of the triangle formed by the three points. More specically, the program prompts the user to enter six float typed numbers fro..
Definition of professional communication : One-page single-spaced rationale of your definition of professional communication. Make a cogent argument for a definition of professional communication. Warrant that argument through expert opinion from course readings. Address and respond to counte..
Forward exchange rates and annual interest rates : Suppose that you are given the information about the spot exchange rate, annual interest rates, and the forward exchange rates between the US Dollar against Japanese Yen and Turkish lira at the given dates in Table 2. Suppose that a US investor wi..

Reviews

Write a Review

Civil Engineering Questions & Answers

  What is flow rate in cfs from the higher to the lower pipe

Water is flowing from a higher to a lower reservoir through a 24-inch pipe that has a Darcy friction factor of 0.02. The local loss coefficients for the bends, entrances, and exits sum to 3.5.

  Remain at the previously indicated rate of climb

If the static port of an aircraft became blocked during a climb the vertical speed indicator would: 1.Remain at the previously indicated rate of climb 2.Fall to zero rate of climb indication 3.Indicate a maximum rate of climb 4.Indicate a maximum rat..

  Determine the largest distance x that the stream can reach

A nozzle discharges a stream of water with an initial velocity v0 of 50 ft/s into the end of a horizontal pipe of inside diameter d=5ft. determine the largest distance x that the stream can reach.

  Proprietorships and last year gross profit

Jack Flubber, who owns sons of Flubber Construction Co. and runs it as a proprietorships had gross profit last year of $ 80000. His personal and family expenses are $ 52000 and he has $ 7000 in exemptions and deductions.

  Determine the maximum shear stress

Water flows through a 200 m long ,30 cm diameter steel pipe with surface roughness 0.046 mm at a rate of 0.25 m^3/s .Find the pressure(P2)considering both friction and minor losses if P1=500 kPa;Z1=20m; Z2=10m ; L=200m ; K=10.0 ; D=30 cm?

  Calculate the minimum set-back distance required

Calculate the minimum set-back distance required for a national highway of 4 lane divided carriageway having circular curve of radius of 350 m & design speed 100 km/hr.

  Select the required commercial size of the rod required to

Two forces are applied as shown to hook support. Knowing that the magnitude of P is 35 N, determine by trigonometry (a) the required angle a if the resultant R of the two forces applied to the support is to be horizontal, (b) the corresponding magnit..

  You are a project manager on site where work for 3km long

you are a project manager on site where work for 3k.m. long tunnel has been undertaken. the site is remote and takes

  Write macro that will take the distance between two cities

Transportation need to evaluate the time spent in traveling from city A to city B. The distance between the two cities is a variable because the macro developed is to be used for other cities.

  Determine the resultant of the four force sand its line of

Four forces act on a small airplane in flight: its weight (24kN), the thrust provided by the engine (10 kN), the lift providedby the wings (23 kN), and the drag resulting from its motionthrough the air (3 kN).

  What flow rate of fresh water must be used to reduce salt

On the property they found a 20,000 m3 brine pond containing 25,000 mg/L of salt. The new owners propose to flush the pond into their discharge pipe leading to the Atlantic Ocean

  What is the linear speed of the wire/bucket in fps

A 10 HP Motor turning 1800 rpm is attached to a 60:1 speed reducing gearbox. The motor has an efficiency of 80%. It operates at 240V AC. A 12" diameter drum is attached to the gearbox output shaft, and a wire rope is wrapped around the drum to act as..

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd