Question
In addition to the two problems, you will also have to create another java application named, DNA.java. This implementation will take an String as a
In addition to the two problems, you will also have to create another java application named, DNA.java. This implementation will take an String as a command line parameter, NOT INTERACTIVELY. The string will contain a single or multiple DNA sequence/s (You define how they are to be separated and dont forget to tell the user in your documentation). The program should then print the complement and reverse complement of the DNA sequence to standard output. Make sure to include a DNADriver class that includes the main method. In your code implementation, create a method, complement, that returns the complement of a DNA string. Also provide a method, reverseComplement(), that takes a DNA sequence as string input and returns the reverse complement of the sequence as a string. Please, develop whatever other helper functions you deem necessary. Recall that the valid alphabet is {A,C,T,G} and that A-T and G-C are complements. A reverse complement is found by reversing the input string and replacing every nucleotide with its complement. This means that your revComplement method should use your complement method internally rather than duplicating code. Your methods should do appropriate error checking and return an error message as appropriate.
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