Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question 4 : UPM Cooperative shop ( KUPUTRA ) has an inventory management system. Inventory is a class that consists of integer variables, namely itemID

Question 4:
UPM Cooperative shop (KUPUTRA) has an inventory management system.
Inventory is a class that consists of integer variables, namely itemID and
itemType, and a String variable namely itemName which can only be accessed
through setter and getter methods.
Variable itemType represents the types of inventories which are either 1 for sales or
2 for rental. Inventory also contains a static integer variable, namely count which
will update the total Inventory objects created. The creation of an Inventory object
needs two data which are itemType and itemName.
(i) Draw the UML class diagram for the Inventory class.
(ii) Modify the Inventory class in (i) so that the types of inventories will instead
become the subclasses of Inventory. Draw the UML class diagram showing the
relationships between those classes.
(iii) Draw a UML class diagram that shows the relationships among the Customer,
Staff, Transaction, and Inventory classes. A Customer can rent one or more
inventories in a transaction if authorized by a KUPUTRA staff of the store.
image text in transcribed

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

Advanced Oracle Solaris 11 System Administration

Authors: Bill Calkins

1st Edition

0133007170, 9780133007176

More Books

Students also viewed these Databases questions

Question

LO6 Summarize various ways to manage retention.

Answered: 1 week ago

Question

LO3 Define the difference between job satisfaction and engagement.

Answered: 1 week ago