I am enrolled in a c++ course. I was given a lab today after having a lesson on switch statements, which is great because we were told to not use switch for the validation in the lab. So, I pounded my way though this code and it is killing me. I can't seem to get the program to validate whether the package is acceptable. Thanks in advance.
You can't use the || (that means OR) operator in the first if, because it's impossible to the variable p be equal to all those letters at the same time. Try using the && (that means AND) operator instead.
Thanks a lot. I was under the impression that I was checking to see that " p does not equal 'a' or 'A' or 'b'...etc." Solution worked great, tulicloure. Adding my looping statements now. Did the rest of the code look ok?