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

  Using only the category of property damage what would the

1.what would the bc ratio be if the light poles were twice as far apart as assumed above?2. what is the ratio of night

  Concentration and precipitate

AGNO 3 is added to a solution containing 0.001 mol Cl - amd 0.001 mol Br- per liter.What are the concentrations of Cl - and Br- remaining when AgCl just begins to precipitate?

  Determine the required diameter of the rod

A 4-m-long steel rod must not stretch more than 3 mm and the normal stress must not exceed 150 MPa when the rod is subjected to a 10- KN axial load.

  Compute the design compressive strength for lrfd

A w14X74 of A992 Steel has a length of 20 feet and fixed ends. Compute the design compressive strength for LRFD and the allowable compressive strength for ASD.

  Total energy per unit weight of fluid

A fluid flowing in a pipe 30cm in diameter has a uniform velocity of 4m/s. The pressure at the center of the pipe is 40KPa, and the elevation of the pipe's centerline above an assumed datum is 4.5m. Compute the total energy per unit weight of the ..

  Largest principal stresses and maximum shear stress

The shaft diameter is 100 mm. Calculate the largest principal stresses and maximum shear stress that will occur in the shaft.

  Determine the consolidation settlement of clay by dividing

The coefficient of volume compressibility is 4x10-4 m2/kN at the ground surface and the reduction in the coefficient of volume compressibility with depth equals depth*0.1*10-4 m2/kN.

  Calculate the expected production and unit cost of loading

The shovel's production at a 100% efficiency is estimated to be 300 BCY/h. and efficiency is 0.80. Truck travel time is estimated to be 8.0 minutes, and truck fixed cycle time (excluding loading ) is estimated to be 2 minutes.

  Determine the corresponding constant rate of acceleration at

If the maximum total acceleration of the train must not exceed 1.5 m/s^2, determine the shortest distance in which the train can reach a speed of 72 km/h, and determine the corresponding constant rate of acceleration at.

  What is the weight density of the mortar sample

A sample of mortar fills a900 ml beaker. The mortar and beaker combined weighs 3 lb and theempty beaker weighs 2 oz. What is the weight density of this mortar sample

  What is the hardness of this water in mg/l caco3

What is the hardness of this water in mg/L CaCO3?

  Calculate the depth of flow upstream of the bridge

Calculate the depth of flow upstream of the bridge assuming that the pier coefficient of drag is 1.2. Drag Force CD Af (V1^2)/2 CD=1.2

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