Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

T Sql Fundamentals

Authors: Itzik Ben Gan

4th Edition

0138102104, 978-0138102104

More Books

Students also viewed these Databases questions

Question

Persuading Your Audience Strategies for

Answered: 1 week ago