Below is a section of my coding, everything works fine except for the bolded section. Can someone please help explain why it won't output 'V' if the input isn't 'A' 'S' 'M' 'P' 'D'?
thank you
You are only checking for the lower case letters. In ASCII, uppercase letters have a different representation than lower case letters. Try checking for lower and uppercase values for each letter.
ex. if (argv[3][0]!='a' && argv[3][0]!='A')...
Also, your using the inclusive or operator ("||"). That means that it can be anyone of those letters and still display. Try using the and operator ("&&").