Question: Complete the function string comparison... Complete the function stringComparison, which will take two string (a and b) as input parameters. If a and b are

Complete the function string comparison...
 Complete the function string comparison... Complete the function stringComparison, which will

Complete the function stringComparison, which will take two string (a and b) as input parameters. If a and b are the same, return "aa". If they are not the same, return "a b b a". For example, if a is "cat" and b is "cat", return "catcat". if a is "cat" and b is "dog", return "cat dog dog cat" string stringComparison(string a, string b) { //code here return: //return your string to our main function. } (penalty regime: 0 %) 1 string stringcompar son(string a, string b) 2 { 3 //code here 4 return "": //return your string to our main function. 5 }

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!