Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Can you solve this problem in C language please? Problem 3: A DNA sequence 20 pts A DNA sequence is composed of 4 types of

Can you solve this problem in C language please? image text in transcribed
Problem 3: A DNA sequence 20 pts A DNA sequence is composed of 4 types of character: A, C, G, and T A CG site is a region where a 'C is directly before of 'G', and it is of important functions. For example, the sequence ATCGCAATTCGTTCG" contains 3 CG site. Write a function called FindCGInDNA that helps computational biologists identifty the number of CG sites in a given DNA. the function takes no parameters and it returns back one integer value. the function asks the user to input one character at a time and repeats that 8 times. Store all the character read into an array of characters called DNA. After that, the functions counts how many times the two characters "CG" appears in it. Note:: You can assume the user-input contains only A, C, G and T (no need to have input validation for the data in your function). Sample Run# 1: Please enter a DNA sequence: ACGTACGT There is 2 CG site(s) in the DNA sequence. Sample Run #2 Please enter a DNA sequence: AGGGCTT In En There are 0 CG site(s) in the DNA sequence

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

Beginning VB.NET Databases

Authors: Thearon Willis

1st Edition

1594864217, 978-1594864216

More Books

Students also viewed these Databases questions