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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started