Question: JAVA programming Your code will read in a string of characters from the console (keyboard) as the protein sequence to be searched. You will then

JAVA programming

Your code will read in a string of characters from the console (keyboard) as the protein sequence to be searched.

You will then read in a series of strings for the protein domains until the user enters STOP in all caps.

What variable structure is this?

Convert all strings to upper-case characters.

Do all of the reading of domains in a single method!

Protein Domain requirements

After you have sought all domains in sequence, report to the user, in an easy to read format, the domain and where its first amino acid location is in the sequence.

Use 1-indexed positions in the output!

The code for searching should use a method which takes in two strings (searched protein sequence and one domain).

That means there needs to be at least two subroutines.

Write your code so that the method main only uses multiple subroutine calls

Output Sample

Enter your protein sequence

DEFKLLLKGP

Enter your domains. Type STOP when finished.

DEX

LLL

FKL

STOP

DEX invalid amino acid (Not found on the string)

LLL 5 (Found on the fifth scan)

FKL 3 (Found on the third Scan)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!