elseif((numcred==32) && (numcred<=63))
cout<<"level of grade equal to sophomore"<<endl;
elseif((numcred==64) && (numcred<=95))
cout<<"level of grade equal to junior"<<endl;
elseif(numcred>=96)
cout<<"level of grade equal to senior"<<endl;
==>
1 2 3 4 5 6
elseif((numcred >= 32) && (numcred<=63))
cout<<"level of grade equal to sophomore"<<endl;
elseif((numcred >= 64) && (numcred<=95))
cout<<"level of grade equal to junior"<<endl;
elseif(numcred>=96)
cout<<"level of grade equal to senior"<<endl;
5a8Ym39o6 gave you the solution i try to explain it.
If you use ...
elseif((numcred==32) && (numcred<=63))
... the statement is only true for the entered value of 32, because of your == operator. You have to create intervals between a maximum and a minimum. So in your else-if-statement only values less than 32 can lead to a true statement. Any other number leads to your invalid number message.