the UML class diagram notation and implement the COS  in Java. Describe any assumptions you make.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

Request:

Can you please help me come up with a coding algorithm for the following problem statement. If you are to provide any code, can it please be in Java as I understand that language very well. Thank you.

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. 

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Form
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education