Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

IN C++ Write a function called findBestSimScore that takes a genome and a sequence and returns the highest similarity score found in the genome as

IN C++

Write a function called findBestSimScore that takes a genome and a sequence and returns the highest similarity score found in the genome as a double. Note: the term genome refers to the string that represents the complete set of genes in an organism, and sequence to refer to some substring or sub-sequence in the genome.

Function specifications:

The function name: findBestSimScore

The function parameters(in this order):

a string parameter for the genome (complete set of genes)

a string parameter for the sequence (sub-sequence of the genome)

The function should return the highest similarity score as a double.

If the length of the sequence is longer than the genome, then the function should return 0. (the best similarity score is 0)

The function should not print anything.

The best similarity scores is [0.0,1.0]

using this code to call back to

float calcSimScore(string s1, string s2){ int n1=s1.length(); int n2=s2.length(); int i; float n=n1; float count; float result; if(n1==0||n2==0) return 0; else if(n1!=n2) return 0; else{ i=0; count=0.0; while(i

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

Database Concepts

Authors: David Kroenke, David J. Auer

3rd Edition

0131986252, 978-0131986251

More Books

Students also viewed these Databases questions

Question

Explain all drawbacks of application procedure.

Answered: 1 week ago