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 Code "Newclient"
