Best writers. Best papers. Let professionals take care of your academic papers

Order a similar paper and get 15% discount on your first order with us
Use the following coupon "FIRST15"
ORDER NOW

Java code

I need help creating Java code that matches this pseudo code.

PROMPT for username

               IF user types “quit”

                               Exit Program

               ELSE

               ENDIF

PROMPT for password

               IF user types “quit”

                               Exit Program

               ELSE

ENDIF

VALIDATE user input

               IF NOT Validated

                               Check number of invalid entries

                                               IF failed attempts is equal to three

                                                               DISPLAY error message

                                                               EXIT program

                                               ELSE

                                                               DECREMENT remaining attempts by one

                                                               DISPLAY remaining attempts

                                                               LOOP to VALIDATE user input

                                               ENDIF

                               ELSE

SET username

MATCH user role

DISPLAY welcome message

 
Looking for a Similar Assignment? Order now and Get 10% Discount! Use Coupon Code "Newclient"