Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need this done in java code please ill rate fast 5. Suppose we are interested in studying a DNA sequence which consists of four

image text in transcribed

I need this done in java code please ill rate fast

5. Suppose we are interested in studying a DNA sequence which consists of four bases: A,C,G, and T. For example: TGCGTGCTACCACATCATGCAGTTTTCAAAGAAGAAAGCCTCACCACAAA. (a) Write a function of the form String getRandDNA (int n ) which creates a random string of length n. (b) Write a function of the form int getBasecount (string dna, char base), where dna [ ] is a DNA string and base is a single character. The function returns how many times base occurs in the string. For example, in the above string, ' T ' occurs 10 times. Note: Here, you don't have to pass in the array dimension because you can get it from the strlen function

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

Intelligent Databases Technologies And Applications

Authors: Zongmin Ma

1st Edition

1599041219, 978-1599041216

More Books

Students also viewed these Databases questions

Question

a. Describe the encounter. What made it intercultural?

Answered: 1 week ago