the UML class diagram notation and implement the COS in Java. Describe any assumptions you make.
Request:
Can you please help me come up with a coding
Question:
The Customer Order System (COS) provides the customer with the following services described
as use cases. Describe your classes using the UML class diagram notation and implement the COS
in Java. Describe any assumptions you make.
Use case name: "Log On" - The customer created an account with the ID and password, a security question, and the customer’s answer to the question.
Main sequence:
1. The customer enters the ID and password.
2. The system validates the customer ID and password.
3. If the customer ID and password are valid, the system displays the customer’s security question.
4. The customer enters an answer to the question.
5. If the customer’s response is the same as that stored in the system, the system displays a welcome
message.
Alternative sequence:
* Step 3: If the customer’s ID does not exist in the system, the system displays no account and
terminates.
* Step 3: If the customer’s ID and password are invalid, the system displays an error message and
prompts the customer to enter another ID and password. The system allows the customer to enter
a maximum of three times. And then go to step 2.
* Step 5: If the customer response is not the same, the system displays an error message and
terminates.
Use case name: "Log Out" - The customer has logged into the system.
Main sequence:
1. The customer selects “log out.”
2. The system makes customers log out.
Alternative sequence: None.
Use case name: Create Account
Precondition: None
Main sequence:
1. The customer enters the customer ID.
2. The system checks if the customer ID exists.
3. If the customer ID is valid, the system prompts the customer to enter a password.
4. The system checks if the password has a minimum of six characters. The password must include
at least a digit, a special character such as @, #, $, %, &, and *, and an upper case Alphabet.
5. If the password is valid, the system prompts the customer to enter the customer’s name, address,
and credit card number.
6. The customer enters the customer’s name, address, and credit card number.
7. The system displays the confirmation message of account creation if the customer’s name,
address, and credit card number are not null.
8. The system displays a list of security questions to the customer.
9. The customer selects a security question and enters its answer.
10. The system stores the customer’s security question and its answer.
Alternative sequence:
Step 3: If the same ID exists in the system, the system displays an error message and requests a
different ID from the customer. And then go to step 2.
* Step 5: If the password is invalid, the system prompts the customer to enter another password.
And then go to step 4.
* Step 7: If the customer’s name, address, or credit card number is null, the system prompts the
customer to enter the customer’s name, address, or credit card number again. And then go to step 6.
Trending now
This is a popular solution!
Step by step
Solved in 2 steps