Complete the following tasks in Java. Create Login Feature and Registration Feature. Implement OOP constructs, methods and comments where needed. Use the JOpotionPane for all outputs. I'm having trouble with creating password conditions and using if statements.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
100%
Complete the following tasks in Java. Create Login Feature and Registration Feature. Implement OOP constructs, methods and comments where needed. Use the JOpotionPane for all outputs. I'm having trouble with creating password conditions and using if statements.
Task 1- Registration and login feature
At the end of this specific task, students should be able to:
Create classes, methods, and other 0OP programming constructs.
Use decisions
Produce an application that accepts input and returns output
(Learning unit 1-4)
Your very first task is to create a registration and login feature. This feature needs to allow users
to (Read through the entire task before you start any work):
1.
Create an account by entering username, password, first name and last name.
a.
The system needs to check that the following conditions are met, and reply with the
appropriate output message:
21; 22; 23
2022
Conditions
Messages
True
False
Username contains an underscore and is no
"Username
"Username is not
more than 5 characters long
successfully
correctly formatted,
captured"
please ensure that
your username
contains an
underscore and is no
more than 5
characters in length ."
"Password is not
Password meets the following password
"Password
complexity rules, the password must be:
successfully
correctly formatted,
captured"
please ensure that
At least 8 characters long
the password
Contain a capital letter
contains at least 8
characters, a capital
letter, a number and
Contain a number
Contain a special character
a special character."
2.
Login to the account using the same username and password.
The system should provide the following messages to verify the user's authentication
a.
state:
Conditions
Messages
True
False
>>
The entered username and password are
"Welcome <user first
"Username or
correct, and the user is able to log in.
name> ,cuser last
password incorrect,
name> it is great to
please try again"
see you again.
Transcribed Image Text:Task 1- Registration and login feature At the end of this specific task, students should be able to: Create classes, methods, and other 0OP programming constructs. Use decisions Produce an application that accepts input and returns output (Learning unit 1-4) Your very first task is to create a registration and login feature. This feature needs to allow users to (Read through the entire task before you start any work): 1. Create an account by entering username, password, first name and last name. a. The system needs to check that the following conditions are met, and reply with the appropriate output message: 21; 22; 23 2022 Conditions Messages True False Username contains an underscore and is no "Username "Username is not more than 5 characters long successfully correctly formatted, captured" please ensure that your username contains an underscore and is no more than 5 characters in length ." "Password is not Password meets the following password "Password complexity rules, the password must be: successfully correctly formatted, captured" please ensure that At least 8 characters long the password Contain a capital letter contains at least 8 characters, a capital letter, a number and Contain a number Contain a special character a special character." 2. Login to the account using the same username and password. The system should provide the following messages to verify the user's authentication a. state: Conditions Messages True False >> The entered username and password are "Welcome <user first "Username or correct, and the user is able to log in. name> ,cuser last password incorrect, name> it is great to please try again" see you again.
3.
You will need to implement a Login class with the following methods to ensure that your
application meets good coding standards and that the code you write is testable.
21; 22; 23
2022
Method Name
Method Functionality
Boolean: checkUserName()
This method ensures that any username contains an under
score (_) and is no more than
Boolean:
This method ensures that passwords meet the following
checkPasswordComplexity()
password complexity rules, the password must be:
At least eight characters long.
Contain a capital letter
Contain a number
Contain a special character
String registerUser()
This method returns the necessary registration messaging
indicating if:
The username is incorrectly formatted
The password does not meet the complexity
requirements.
The two above conditions have been met and the user
has been registered successfully.
Boolean loginUser()
This method verifies that the login details entered matches
the login details stored when the user registers.
String returnLoginStatus
This method returns the necessary messaging for:
A successful login
A failed login
Transcribed Image Text:3. You will need to implement a Login class with the following methods to ensure that your application meets good coding standards and that the code you write is testable. 21; 22; 23 2022 Method Name Method Functionality Boolean: checkUserName() This method ensures that any username contains an under score (_) and is no more than Boolean: This method ensures that passwords meet the following checkPasswordComplexity() password complexity rules, the password must be: At least eight characters long. Contain a capital letter Contain a number Contain a special character String registerUser() This method returns the necessary registration messaging indicating if: The username is incorrectly formatted The password does not meet the complexity requirements. The two above conditions have been met and the user has been registered successfully. Boolean loginUser() This method verifies that the login details entered matches the login details stored when the user registers. String returnLoginStatus This method returns the necessary messaging for: A successful login A failed login
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY