You are on page 1of 2

Republic of the Philippines

CENTRAL BICOL STATE UNIVERSITY OF AGRICULTURE


Impig, Sipocot, Camarines Sur 4408
Website: www.cbsua.edu.ph
Email Address: cbsua.sipocot@cbsua.edu.ph
Trunkline: (054) 881-6681

COLLEGE OF INFORMATION TECHNOLOGY


IT ELEC 1 – Object Oriented Programming
ASSESSMENT 2
UML Class Diagramming

NAME: ______________________________________________________
YEAR & SECTION: _________________
DATE: ___________________________

Objectives:
 Design UML Class Diagram of a system
 Implement the UML Class Diagram into a Java code sample.
.

Problem Description:
Your instructor gives you a task to create an Online Product Ordering System that
will help to automate the manual transaction. Part of the development of the system
is planning and creating a UML Class Diagram to strategize what classes need, the
attributes and methods, and the system's structure.

You come up with the idea that the system will compose of;
1. Admin Class
2. Customer Class
3. Product Class
4. Payment Class
5. Cart Class
Admin Class has an instance variable of userID, userName, and userPassword.
Admin will manage all the Products; the admin can view, add, update, delete, make
shipments, and confirm the Delivery of the products.

Customer Class has an attribute of customerID, name, address, and phone


number, the customer, can view the products and has a Cart where they can add or
delete products. The customer can also buy the products and makes the payment.

Product Class has an attribute of productId, productName, productType,


productPrice.

Payment Class has an attribute of customerID, name of the product, product price,
cardType, and cardNumber.

Page 1 of 2
Cart Class has an attribute of ID, number of products, product details, product price,
and total.

INSTRUCTIONS:
Given the details of the Online Products Ordering System, create a UML Class
Diagram of the System and Implement it into a sample JAVA Code.

RUBRICS
Excellent Good Satisfactory Unsatisfactory
(90 – 100%) (80 – 89%) (60 – 79%) (below 60%)
Requirements  Completed  Completed  Completed  Completed
(50 points) between 90- between 80- between 75- below 70% of
100% of the 89% of the 79% of the the
requirements. requirements. requirements. requirements.

Completeness  All data  All data  Some data is  Incorrect


(20 points) represented represented missing or now representation
correctly correctly represented in of the diagram.
 Excellent  Good creativity the diagram
creativity with with organized  Good creativity
organized work. work. with organized
 Excellent  Good work.
representation representation  Good
of the diagram of the diagram representation
of the diagram
Implementation  The  The  The  Does not
(30 points) Implementation Implementation Implementation implement the
of the UML of the UML of the UML UML Class
Class Diagram Class Diagram Class Diagram Diagram into
into Java Code into Java Code into Java Code JAVA Code.
is about 90-100 is about 80-89 is about 75-
% correct. % correct. 79% correct.

Page 2 of 2

You might also like