Question: my code is popping up some errors and I dont know what I'm doing wrong. My code is posted below. bool isValidNote(string note); { int

my code is popping up some errors and I dont know what I'm doing wrong. My code is posted below.
bool isValidNote(string note); { int len = tune1.length(); if (len != tune2.length()) { return 0; } double score = 0; for (int i = 0; i Write a function called tuneSimilarity that computes the similarity score as described in the project instructions for two tunes of equal length. Function Specifications: - Name: tuneSimilarity() - Parameters (Your function should accept these parameters IN THIS ORDER): - tune1 (string): The first input tune - tune2 (string): The second input tune - Return Value: The similarity score (double) - The parameters should be two strings of equal length. If they are not equal in length, your function should return 0. - The function should not print anything. - You may assume that the input to tuneSimilarity will always be valid SPN, i.e. you do not have to account for arbitrary strings. Please see the project 1 write up for more details on how to calculate the similarity. Paste only your function in the answer box! Do not paste main or \#includes, just the function. Hint: Remember when you write a for loop, you can increment the value of the counter variable by any value and not just 1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
