Question: Since only 1 picture is allowed per question, I will post the full text, and combine pictures in one. For this I need only class

Since only 1 picture is allowed per question, I will post the full text, and combine pictures in one.
For this I need only class diagrams, textually explanations will do.
A RENTAL BUSINESS
INITIAL ANALYSIS
A rental store in the SuperRent chain rents DVD movies to its members. Each rental item has a unique serial number and belongs to a title, which may have multiple copies for rent. A member may rent multiple items at a time. The rental rate and duration for a rent depends on whether it is a new release, a promotional title, or a normal one. The store manager needs to get a daily report of all items rented each day.
We first try to identify the objects based on this information. An easy way is to pick out the nouns or physical objects in the preceding paragraph. Hence, some potential objects are Store, DVD, Member, Item, Title, Copy, Manager, and Report. We then analyze each in some deta Since only 1 picture is allowed per question, I will post the full text, and combine pictures in one.
For this I need only class diagrams, textually explanations will do.
A RENTAL BUSINESS
INITIAL ANALYSIS
A rental store in the SuperRent chain rents DVD movies to its members. Each rental item has a unique serial number and belongs to a title, which may have multiple copies for rent. A member may rent multiple items at a time. The rental rate and duration for a rent depends on whether it is a new release, a promotional title, or a normal one. The store manager needs to get a daily report of all items rented each day.
We first try to identify the objects based on this information. An easy way is to pick out the nouns or physical objects in the preceding paragraph. Hence, some potential objects are Store, DVD, Member, Item, Title, Copy, Manager, and Report. We then analyze each in some detail, as shown in Table 1.
(Picture of table 1 goes here)
From this analysis we find that the relevant objects are Store, member, Item, and Title. Store manages a collection of Members, and Title manages a collection of Items. We may also add a Catalog to manage a collection of Titles so that Titles may be grouped into categories.
The initial design is shown in figure 1.
In figure 1, a Member is associated with multiple Items, each of which may be rented by
a member. This relationship is, however, not satisfactory because the store needs to keep
a record of all rentals by member (for accounting and other purposes). This implies that
each item may be associated with more than one member (through different rentals).
(Picture for figure 1 goes here)
To accommodate this requirement, we remove the association between Member and Item
and then introduce a new objectRental. A Member or a Store may have multiple Rental
objects. Furthermore, each Rental may have multiple Items, each of which may be rented
multiple times. Each Rental originates from a store and has one renter. This gives rise to
the modified design in figure 2.
In figure 2 we let the store manage the rentals. Thus, the store is responsible for creating
the Rental objects. Each Member, on the other hand, may contain a number of Rental
objects. Because of these links, Rental becomes the central object in our design.
(Picture for figure 2 goes here)
Note that Rental is not an association class between Store and Member. This is because a
specific pair (Store, Member) may be related to multiple rental objects.
For a specific rental, detailed information such as rate, due date, and so forth, may vary from item to item. Such rental information is therefore best modeled as an association class between Rental and Item. This association class is labeled as a core pattern to the design, which is shown in figure 3.
(Picture of figue 3 goes here)
In figure 3 we have added the DailyLog class allows us to find rentals by date quickly. Next we continue the analysis for multiple stores.
FULL OBJECT DESIGN FOR MULTIPLE STORES
We want to build an information system such that all SuperRent stores work as a whole. In particular, SuperRent will allow members to rent items from any store and return them to any store. This requires change in the previous object design.
Rentals and members should now be managed by SuperRent, rather than a particular store. However we still need to track at which store each item is located when it is returned. .Furthermore, SuperRent needs to check each rented item daily to find out whether it is returned or overdue. For marketing and planning purposes, the rental statistics of each title are needed. Finally, besides movie DVDs, SuperRent also rents games, and music DVDs.
REQUIREMENTS
1.
Give the detailed object design for a single store (figure 3). Give the class diagram with the attributes, and the operations.
2.
Give the complete object design for SuperRent by modifying figure 3. Give the class diagram with the attributes and the associations. You mYou must add the multiplicity, the role names, and the navigability to your design.Table 1. Analysis of potential nobjects.
Since only 1 picture is allowed per question, I

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!