Menu ▾ ▴

#1 Check invalid entries

open-fixed
nobody
Interface (3)
5
2008-11-07
2006-11-26
No

The user is allowed to 1) input values into ball1 and ball2 that are invalid, such as 8 and 9, and 2) can also enter 8 and 2.

In case 1) we must reject a ball2 value that, added to ball1, is higher than 10.

In case 2) we must change the ball2 value to '/' if ball1 and ball2 add to 10.

Discussion

  • Richard Tong

    Richard Tong - 2006-11-29

    Logged In: YES
    user_id=1651272
    Originator: YES

    Case 3) In frame 10, user can enter almost any combination of invalid entries, such as 8,/,/ or x,/,9 or x,/,/ or 9,9,x etc etc. We must verify that ball1 can only be a number or x. Ball2 can be x only if ball1 is x. Ball2 can be / only if ball1 is a number. Ball3 can be x only if ball2 was x or /. Ball3 can be / only if ball2 was a number. Otherwise ball3 must be a number.

     
  • Richard Tong

    Richard Tong - 2008-11-07
    • status: open --> open-fixed
     

Log in to post a comment.