Checking+for+Valid+Input


 * 

Integer Cluster**

The following standards have been agreed to for the Integer Cluster:

Ensure input is valid and provide indicated feedback before dealing with the activity specific feedback.

For input do not accept the following: Letters, symbols and decimal numbers Thus, things like ‘k’ ‘2.0’ and 2/1 do not need to have feedback attached to it.

Invalid entries should generally not count as an error when keeping track of number of attempts.


 * ** Invalid input ** || ** Feedback ** || ** Action ** ||
 * 2- or 2+ || // The <“+” /“-“ // > sign is written before the number, re-enter starting with the sign. || Highlight the contents of the input box, require the user to enter a different value.

Make sure +/- signs are in quotes throughout feedback. || +-2, --2, ++2, -+2 || An integer has only one sign. Enter an integer. || Highlight the contents of the input box, require the user to enter a different value. || This is a matter of standard format, not an error. || 6++ 2-+4 2 - 4 || Enter a valid integer. || Highlight the contents of the input box, require the user to enter a different value. ||
 * + or - || Enter a number after the  sign.// || Place cursor in textbox after the sign ||
 * +0 or -0 || Zero is neither positive nor negative. Try again. || Highlight the contents of the input box, require the user to enter a different value. ||
 * Double signs for example:
 * 09, -03, +007 || Leading zeros are not necessary. || Action should proceed as if they entered 9, -3, or 7. (Replace values where appropriate.)
 * Anything else strange,
 * +2 versus 2 ||  || Treat as if they were the same unless specifically instructed otherwise in the storyboard. ||

Samples:

Feedback is given as changes are made to the input box. Integer Comparison Tool

Feedback is given after the student hits "Enter". **Activity 5.1.3 Integer Number Lines** Check out Scene 12.