Hi all i'm currently facing problems when it comes to encrypting keywords with capital letters in it. I have checked my code on check50. but it still fails when entering keyword like Baz and BAZ with capital letter as the keyword. All the other requirements are correct as of i've checked.
My expected output when it encrypts BaRFOO and BARFOO but instead it becames some gibberish "C=aQKGAonh\n" , "C=A;QKGAO/NH\n"
I know theres something wrong with my algorithm but i can't seem figure out where. Someone please help!:(
i have manage to solve my find the problem of my code. What i did was to comment out all the else if & else condition which make it work. However I'm still curious to know why i am not allowed to enter conditions in my else & else if statements.
If I'm allowed to have the same is isalpha(), isupper() , islower() conditions in my if statements E.G if(isalpha(message[i])), if(isupper(message[i])), if(slower(message[i])) why can't i put the opposite condition in my else statements.