Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

in c++ language please Summary given 2 DNA strands of equal length, compare the bas Given two DNA strands of equal length, write a complete

image text in transcribed

in c++ language please

Summary given 2 DNA strands of equal length, compare the bas Given two DNA strands of equal length, write a complete C++ program to compare the corresponding bases, and report mismatches. For example, suppose the input to your program are the following two DNA strands CCATGGTC CCAGTGAC then your program should produce the following output **Differences: 3 In other words, your program should output the first strand, then on the next line output a space if the corresponding bases are the same and an X if not followed by the second strand, followed by a summary of the # o differences f the strands are identical the # of differences reported should be 0. Don't forget to #include so you have access to the string functionality in Ct+ [ Hint this is not as hard as it looks, Input the 2 DNA strands, output the first, then loop over the strings like you have done in the other exercises. But instead of comparing the ith character to a known letter such as 'C or G) compare to the ith character in the other string Count and output as you loop, then after the loop output the 2nd DNA strand and the # of differences.] PROGRAMMING INSTRUCTIONS Zyante contains a complete C++ programming environment, so you are free to work here. Zyante provides 2 modes: 'Develop' and Submit In Develop mode, you supply the input values in the text field provided, then click Run program to run your program and see the

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_2

Step: 3

blur-text-image_3

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

SQL Database Programming

Authors: Chris Fehily

1st Edition

1937842312, 978-1937842314

More Books

Students also viewed these Databases questions

Question

1. Write down two or three of your greatest strengths.

Answered: 1 week ago