Function 4: Generate a random capchar code.
• Use the Random function to generate a random number sequence and then transfer them to type sequences of characters (char).
Instructions for students
Suggestions:
Student phải implements methods
setLocate
checkAccountNumber
checkPassword
print startup code. - Create a class Main Menu function display language selected eBank Create a class with the following functions: Function 1: Change the language. o Program implementation language switch , so that the result is the defined elements available in the file language Language.properties will change accordingly. o Must named function: void setLocate (Locate locate). • Inputs: ➢ locate the name of the file respective language properties to be converted. Function 2: Checking account number. o The program performs checking accounts, so that the result is the number of accounts must comply with the rules of the requested problem set. o Must named function: checkAccountNumber String (String accountNumber) • Inputs: ➢ accountNumber: account number to be checked. • Return Value: Notification of the account value. Function 3: Review Check password. o The program performs password checking, so that the result is the password to compliance with the rules of the requested problem out. o Must named function: checkPassword String (String password) • Head in: ➢ passwords: Passwords should check. • Return Value: The announcement of the value of the password. Function 4: Create a random capcha code. o Program implementation capchar create a code cleanup However, that result is to create a chain captcha compliance rules that require the assignment. o functions in code name: String generateCaptcha () • Return Value: captcha random string. Function 5: Review Investigation captcha code. o Program test execution captcha code, so that the result is of capchar input character must match captcha characters were originally created. • The function name in code: String checkCaptcha (captchaInput String, String captchaGenerate ) • Inputs: ➢ captchaInput: Captcha entering ➢ captchaGenerate: Captcha initially generated • Return Value: The announcement of the value of captcha. Time estimated 90 minutes
đang được dịch, vui lòng đợi..
