Skip to content

I have code that is supposed to check if two strings are pal

    I have code that is supposed to check if two strings are palindrome to each other regard less of capital or small litter or numbers and other symbols. So ‘racecar’ is palindrome to ‘racecar’ and also should work ‘racecar’ is palindrome ‘RaC89$eca?R’ but ‘fish’ is not palindrome to ‘house’ my problem is I wrote the whole code but for some reason whenever i test it, it  tells me that they are not palindromes.this is the header:#ifndef INTERVIEWMAYHEM_H_#define INTERVIEWMAYHEM_H_char normalize(char input);bool arePalindromes (const char* s1, const char* s2);#endif/* INTERVIEWMAYHEM_H_ */and this is the main code:#include

    #include’InterviewMayhem.h’#include

    char normalize(char input){return tolower(input);}bool arePalindromes (const char* s1, const char* s2){int i;int k=0;char u[100];char w[100];char z[100];for (int i=0; i

    ‘`’) & (z[i]<‘{‘)){u[k]=z[i];k++;}}for (i=(strlen(s1)-1); i>=0; i–) //runs through s1 string{z[k]=normalize(s1[i]);if ((z[k] >’`’) & (z[k]<‘{‘)){u[k]=z[k];k++;}}for (i=0; i<(strlen(s2)); i++) //runs through s1 string{z[i]=normalize(s2[i]);if ((z[i]>‘`’) & (z[i]<‘{‘)){w[i+1]=z[i];}//return w;}if (strcmp(w,u)==0){returntrue;}else{returnfalse;}}


    You can hire someone to answer this question! Yes, assignist.com has paper writers, dedicated to completing research and summaries, critical thinking tasks, essays, coursework, and other homework tasks. Its fast and safe.

    >>>ORDER NOW SECURELY–HIRE A PAPER WRITER<<<