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

  Determine the decay rate constant for the die-off of anthrax

The results of his experiment are tabulated below. Assuming the experiment was conducted in a completely-mixed batch reactor, determine the decay rate constant for the die-off of anthrax.

  Determine min horizontal force p required to hold the crate

Determine the minimum horizontal force P required to hold the crate from sliding down the plane. The crate has a mass of 70kg and the coefficient of static friction between the crate and the plane is μs = 0.45.

  Composition of the remaining liquid phase

At what temperature does the liquid solidify? What is the composition of this last remaining liquid phase?

  Compute the amount of chlorine required for disinfection

Compute the amount of chlorine required for disinfection in pounds per day(lb/d). Estimate the annual cost for disinfection using chlorine. Flow Rate= 30 milloin gallons per day.

  What is the probability that the n-s runway is going to be

What is the probability that the N-S runway is going to be overcrowded on a given day, if at the beginning of the day the runway is selected to be used?

  Estimate the rate of heat transfer from the compressor

50 kmol per hour of air is compressed from p1 = 1.2 bar to P2 = 6.0 bar in a steady-flow compressor. Delivered mechanical power is 98.8KW. Temperature and velocities are: T1= 300K T2= 520K u1= 10m s^-1 u2= 3.5m s^-1

  Find the total head loss if the flow velocity

Water at 72 degress Fahreneit flows through a 110-ft-long, 5-in-diameter wrought-iron pipe that contains the following fittings: one open globe valve, one medium-radius elbow

  Determine the principle strains at a point on the surface

A rod is subjected to a tensile load of 25k and has a diameter or 2in, determine the principle strains at a point on the surface of the rod

  What is the minimum settling velocity of a particles

A flow of 125,000 gallons per day enters a sedimentation basin which is 20 feet wide, 60 feet long and 12 feet deep. What is the minimum settling velocity of a particles that will be 100% removed by the basin

  Determine what is the turbidity of the original sample

A wastewater sample was diluted by turbidity free water; 5ml was diluted to 250 ml. Turbidity of the diluted sample was 2.3 NTU, what is the turbidity of the original sample

  How to determine the head loss caused by the piers

A bridge has cylindrical piers 1 m in diameter and spaced 15 m apart. Downstream of the bridge where the flow disturbance from the piers is no longer present, the flow depth is 2.9 m and the mean velocity is 2.5 m/s.

  Determine what is the minimum coefficient of road adhesion

A rear-wheel-drive 3000lb drag race car has a 200-inch wheel base and a center of gravity 20 inches above the pavement and 140 inches behind the front axle. The owners wish to achieve an initial acceleration from rest of 15 ft/s on a level paved s..

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