Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

JAVA Programming You are required to implement the Make Order Request use case using Java. The following specifies the requirements of Make Order Request using

JAVA Programming

You are required to implement the Make Order Request use case using Java. The following specifies the requirements of Make Order Request using the use case model and use case description.

Make Order Request use case description

Use case name: Make Order Request

Summary: Customer enters an order request to purchase a catalog item. The customers credit card is checked for validity and sufficient credit to pay for the requested catalog items. Actor: Customer, Bank

Precondition: Customer has selected a catalog item.

Main sequence:

1. Customer provides order request and customer account Id/password to pay for purchase.

2. System retrieves the customers credit card number from the customer account.

3. System requests to a bank checking the customers credit card for the purchase amount and, if approved, Bank creates a credit card purchase authorization number.

4. System creates a delivery order containing account Id, item, quantity, total price, and credit card authorization number, and store the delivery order.

5. System confirms approval of purchase and displays order information to customer.

Make Order Request use case description

Alternative sequences:

Step 2: If customer does not have an account, the system prompts the customer to provide information in order to create a new account. The customer can either enter the account information or cancel the order. When a customer provides an account information, the system creates an account.

Step 3: If authorization of the customers credit card is denied (e.g., invalid credit card or insufficient funds in the customers credit card account), the system prompts the customer to enter a different credit card number. The customer can either enter a different credit card number or cancel the order. The system updates the customer credit card number in the system if the customer provides a new credit card number. System does the step 3.

Postcondition: Customer has purchased items.

The following depicts CustomerAccount and DeliveryOrder classes and their initial data given. Your can define more classes for implementing Make Order Request use case. When the system requests to a bank checking a customer credit card, the system displays the request on the screen and you can enter to the sytem either invalid or an authorization number.

Classes for Make Order Request use case

CustomerAccount - AccountID - Password - CardNo - CustomerEamil

AccountID - Item - Quantity - TotalPrice - AuthorizationNo

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases And Python Programming MySQL MongoDB OOP And Tkinter

Authors: R. PANNEERSELVAM

1st Edition

9357011331, 978-9357011334

More Books

Students also viewed these Databases questions

Question

What is the basis for Security Concerns in Cloud Computing?

Answered: 1 week ago

Question

Describe the three main Cloud Computing Environments.

Answered: 1 week ago