Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle Autonomous Database In Enterprise Architecture

Authors: Bal Mukund Sharma, Krishnakumar KM, Rashmi Panda

1st Edition

1801072248, 978-1801072243

More Books

Students also viewed these Databases questions

Question

Understand the roles of signs, symbols, and artifacts.

Answered: 1 week ago

Question

Discuss the key ambient conditions and their effects on customers.

Answered: 1 week ago

Question

Be familiar with the integrative servicescape model.

Answered: 1 week ago