It seems to be a problem with the boolean operators I'm using.
Type: Posts; User: megnog
It seems to be a problem with the boolean operators I'm using.
Because it keeps coming up as either a number or word, even though the string starts with a number and ends with a digit (and vice versa).
Sorry for the double post.
Ok, I've figured most of it now. I have one last question, though. If I enter a string of "Tab17" for example, what would I code so that the output says, "'Tab17' is something else"
?
I would state whether or not it was.
If it was a numeric digit, then I would say so. If it wasn't, then I would say so.
If I can only see one character at a time then I can only choose between whether it's a number or a letter.
I'd say the one with all the numbers is a number.
If what was written was a number, then I would say it was a number. If what was written was a letter, then I would say it was a letter.
That's the thing...I don't know what steps to take. If YOU were writing a program like this, what would YOU do?
I need to write a program that determines whether a string inputted by the user is a word (all letters), a number (all digits), "something else" (starts with digit, ends with number, or vice versa),...