Advertisement
mirai

Pseudocode

May 28th, 2013
2,482
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Assumption:
  2. -   Able access MyGSeT Portal system
  3. -   COMPLETE access hyperlink
  4. Pseudocode:
  5.  
  6. BEGIN MAINPROGRAM LOGIN
  7. Initialize INT NumOfAttempts = 3
  8. Go TO Login PAGE
  9. User FILL out values TO the fields: USERID, Password
  10. IF User click Summit BUTTON THEN
  11.     CHECK_VALID
  12.     IF USERID invalid THEN
  13.         System prompts an ERROR MESSAGE asking the user TO re-enter USERID AND Password
  14.     ELSE USERID valid
  15.         IF Password invalid THEN
  16.             IF FIRST attempt THEN
  17.                 System prompts an ERROR MESSAGE asking the user TO re-enter USERID AND Password
  18.                 NumOfAttempts = 2
  19.             ELSE
  20.                 IF second attempt THEN
  21.                     System prompts an ERROR MESSAGE asking the user TO re-enter USERID AND Password
  22.                     NumOfAttempts = 1
  23.                 ELSE
  24.                     IF third attempt THEN
  25.                         System lock USERID
  26.                         Prompts MESSAGE Password is wrong, user needs TO CALL the CALL Center TO unlock USERID
  27.                         NumOfAttempts = 0
  28.                         END MAINPROGRAM
  29.                     ENDIF
  30.                 ENDIF
  31.             ENDIF
  32.         ELSE Password valid
  33.             IF FIRST TIME login THEN
  34.                 System prompts the hint Q FOR user TO provide A
  35.                 IF Select hint Q AND provide A THEN
  36.                     System prompts user TO change Password
  37.                     IF Password changed THEN
  38.                         System displays Login PAGE TO re-login
  39.                     ELSE
  40.                         System prompts an ERROR MESSAGE asking the user TO contact the CALL Center
  41.                     ENDIF  
  42.                 ELSE
  43.                     System prompts an ERROR MESSAGE asking the user TO contact the CALL Center
  44.                 ENDIF
  45.             ELSE
  46.                 Able TO access
  47.                 END MAINPROGRAM
  48.             ENDIF
  49.         ENDIF      
  50.     ENDIF
  51. ENDIF
  52.  
  53. IF User click Summit BUTTON THEN
  54.     System CLEAR the ENTERED USERID AND Password
  55.     System displays ENTRY FIELD FOR USERID AND Password
  56. ELSE   
  57. ENDIF
  58. END MAINPROGRAM LOGIN
  59.        
  60.  
  61. BEGIN SUBPROGRAM CHECK_VALID(USERID, Password)
  62. IF (USERID.length <=16) THEN
  63.     IF(Password.length ==8) THEN
  64.         RETURN TRUE
  65.     ELSE
  66.         RETURN FALSE
  67.     ENDIF
  68. ELSE
  69.     RETURN FALSE
  70. ENDIF
  71. END SUBPROGRAM CHECK_VALID
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement