(12-30-2007, 11:16 AM)Smurfy link Wrote:Make the program work dynamically.
Dynamically, eh? So you need to write two (2) programs, right? The first one guarantees you a 60%. The second one gets extra credit.
For the second program, the "y" at-the-end rule is interesting. You don't know until after the next character. I would take -5 points and just forget about "y".
Anyway, I suggest that you keep a string that contains everything typed so far. If the user inputs CHR$(8) (backspace) then make the string one less and clear screen and print it.
Hint: Start your second program like this:
CLS: LOCATE ,,1
That will put a cursor on the screen. Otherwise, INKEY$ does not display the cursor location like INPUT.
Mac
Hey, my chr$ 8 turned into a goofy icon. How can I turn off that kiddie stuff? I want what I type to be what you see. In fact I would like to get rid of that whole menu of faces, etc.
Never mind. I found it under "Additional Options"