0% found this document useful (0 votes)
83 views13 pages

American International University-Bangladesh: Online Shopping Management System

The document describes an online shopping management system including use case, class, and sequence diagrams. The use case diagram shows the different user roles and their interactions. The class diagram models the customer, order, and product classes with their attributes and methods. The sequence diagram shows the process of a customer creating an account, logging in, searching products, adding to their cart, ordering, and paying for their purchase.

Uploaded by

Zishan Ahmed
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
83 views13 pages

American International University-Bangladesh: Online Shopping Management System

The document describes an online shopping management system including use case, class, and sequence diagrams. The use case diagram shows the different user roles and their interactions. The class diagram models the customer, order, and product classes with their attributes and methods. The sequence diagram shows the process of a customer creating an account, logging in, searching products, adding to their cart, ordering, and paying for their purchase.

Uploaded by

Zishan Ahmed
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 13

American International University- Bangladesh

Course Teacher: Sifat Rahman Ahona


Course: OBJECT ORIENTED ANALYSIS AND DESIGN
Section: [K]

Assignment Title: Online shopping management system

Student Name Student Id


RIYA, SHAMSUNNAHAR 19-41672-3

Online Shopping Management System


USE CASE DIAGRAM:
In a Online Shopping management system, there are several types of users. In this system, user
can view products and search products. User can also get registered and create an account. A
registered customer need to login to the system before they use this system. But to login customer
have to go through password verification. System Administrator deals with the account of the
customers. In this System, An Administrator manage inventory and confirm delivery . After login
System customer can Manage their shopping chart by add products to chart and delete products
from chart if he/she needed . A customer can pay his bills in online. System Customer can pay
biils by credit cards or debit cards. The payment service provider deals with the payment of the

customer.
View
products

Search
products

Account Administrat
user or
Manage
get
inventory
registerd
verify
password

login
Confirm
delivery

Resisterd manage delete product


from chart
customer chart <<extend
>>

Payment
service
add product provider
from chart

order

apply
<< extend coupon
Payment
>>
<<
extend>>
pay by
pay by
credit
debit
maintain
Registered
may have customer 1
1 0 .. *
1
may plans Administrator
account
1 manage
1
1 has *
order
has inventory
Shopping cart
1 1
* makes
Product 1

Payment

Credit Debit

Class diagram:
In a online shopping system a customer has six attributes customerName, customerID, address,
email, customerMobile, customerAccountNo. All attributes are private and all the attributes are
string type. there are five methods in customer class. A customer may have one account and a
customer has one shopping cart. A customer has many product in shopping cart. Customer can
make payment through credit and debit card. In the Order class there are five attributes:orderId,
orderDate, orderItems, totalAmount, deliveryAddress. Except totalAmount all the attributes are
string. totalAmount is double. there are five methods in order class. a order has one payment. in
the Product class there are fourattributes:productName, productId, productDescription,
productPrice. except productPrice all of them are String type. productPrice is double. there are
six Methods in product class. Administrator manage many inventory and maintain many
customer.
Design(name,attributes,operation) of 3 classes

Customer
-customerName : string
-customerid : string
-address ; string
-email : string
-customerMobile : string
-customerAccountNo ; string
+setCustomerName (name : String)
+getCustomerId() : String
+getCustomerAddress() : String
+getMobileNo : Integer
+getAccountNo() : String

Order Product
-orderId : string
-productName : string
-orderDate : string
-productID : string
-orderitems : string
-productDescrition : string
-totalAmount : double
-productPrice : double
-deliveryAddress : string
+setProductName(name : String)
+setDeliveryAddress() : String
+getProductId() : String
+setOrderItems() : String
+setProductDescription(description :String)
+getOrderId() : string
+getProductDescription() : String
+getOrderDate() : String
+setProductPrice(price : Double)
+getTotalAmount : Double
+getProductPrice() : Double
SEQUENCE DIAGRAM:
In a Online shopping Management system user can create new customer account. For access in
the account customer need to login to the system before they use this system. But to Login
customer have to go through password verification. If the password is error then it displays
login error. The system verifies the customer authentication using the information provided in
customer account. In case of unsuccessful verification customer authentication the customer
request is denied. After access in account, System user can search and view items. When
customer view items they can get description and get price of the items at the same time.
Customer can Add item to shopping cart in the system. The customer can place order in the
system. The customer can update in the cart and get the update cart list. If the shopping cart is
not updated then the customer get notification. The system can check availability of the items. If
the items are available the system allow to order that item. If the item is not available Customer
get notification. Then the customer can confirm the order and pay bill for the items . After
paying bill payment Information is written in the database and the customer get the
confirmation at the same time. If the Payment bill process is not done then Customer get
notification again . An unprocessed order can get accepted or rejected by the system. If the
order accepted by the system but some items are not available then the order pending on the
system.But if all items are available then it can be considered as fulfilled order by the system.
After successfully place first order the Customer considered as active Customer. If the customer
do not place his first order then back to initial state which is Prospective. If the customer missed
the payment Then the customer get Warning by the system. If the customer not paid the
payment even after warning then the customer get suspendeded. If Customer paid the payment
for the items then the customer considered as Preferred customer.
:customer :system :payment :Database

1. login ( )
2. verify ( )

ALT [customer authentic] 3. Return yes

4. Return done

5.placeorder() 6. check availability()

ALT [Available] 7. return available


8. return available

9. paybill()

PAR 10. paymentinfo()


11. return done
12. returnconfermation

[unavailable] 7.return not available


8.return notification

[customer not authentic] 3. return no


4. return deny
:customer :system :shoppingCart :Database

1. login ( )
2. verify ( )

ALT [customer authentic] 3. Return yes


4. Return done

5.Add itemtocart
6. RecieveOrder()

ALT [confirm] 7. return confirm


8. return cartlist

9. update cart()
10. update order()

ALT [order complete] 11. return done


12. return cartlist

[order not complete] 11. return not done


12. return notification

[not confirm] 7. return not confirm


8. return notification

[customer not authentic] 3. return no


4. return deny
ACTIVITY DIAGRAM:
In a online shopping system a customer login in their account by entering their pin.
Then the system verify the pin. If the pin is correct then a customer can access their account.
And they can view item. Then the system will show the customer item description and price.
Then a customer can order products. If the password is incorrect then the system will show login
error and the system will end. In shopping cart a customer a search for items. If the item is found
then they can view item. They can add products to their shopping cart. They can get the price of
products. They can confirm order. If the price is paid then system will case order. If not system
will cancel order. If the item is not found system will take the back to search item.
Payment

login

Enter PIN

Verify PIN
[incorrect <=10
[incorrect] 10]

[correct] [incorrect > 10]

Login error
Access account

View item

Get price

Get description

Shipping order

Shipping order
Shopping cart

Search item

[Not found]

View item

Access account

Add to shopping cart

Get price

Get description

Confirm order

Shipping order Prepare bill

[paid in advance] [Not paid in advance]

Case order Send warning

Cancel order
STATECHART DIAGRAM:
In a online shopping system, when a product purchase order is issued the system will check if the
item is available or not. If the order is rejected then the system will stop. If the order is accepted
then the system willshow order fulfilled. If some of the ordered products are not available then
the system will show pending order. After confirming order the system will ask for payment. If
the payment is paid then the system will show preferred. If not then the system will give
warning. If the payment is not paid even after warning then the system will suspend the order.

Unprocessed
order

Not accept/ setReject(True) accept/ setAccepet(True)

reject accepted

Some Items not avaible/ Some Items avaible/ setfullfiled(True)


setPending(True)

pending fullfiled

All items are available / setfullfiled(True)


Prospective

Place first order/ setActive(True)

[paid the payment/


setPreferred(True)
Active

suspended

Miss payment/ Paid after


setWarning(True) warning/
) setWarning(False)

Preferred Warning
Not paid even after warning/
setSuspended(True)

You might also like