Search:

Type: Posts; User: megnog

Search: Search took 0.29 seconds.

  1. Re: How to Determine if a String is a Word or Number?

    It seems to be a problem with the boolean operators I'm using.
  2. Re: How to Determine if a String is a Word or Number?

    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.
  3. Re: How to Determine if a String is a Word or Number?

    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"

    ?
  4. Re: How to Determine if a String is a Word or Number?

    I would state whether or not it was.
  5. Re: How to Determine if a String is a Word or Number?

    If it was a numeric digit, then I would say so. If it wasn't, then I would say so.
  6. Re: How to Determine if a String is a Word or Number?

    If I can only see one character at a time then I can only choose between whether it's a number or a letter.
  7. Re: How to Determine if a String is a Word or Number?

    I'd say the one with all the numbers is a number.
  8. Re: How to Determine if a String is a Word or 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.
  9. Re: How to Determine if a String is a Word or Number?

    That's the thing...I don't know what steps to take. If YOU were writing a program like this, what would YOU do?
  10. How to Determine if a String is a Word or Number?

    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),...
Results 1 to 10 of 10