Question

In: Computer Science

There are two types of rental items in the VideoSystem: DVDs and video cassettes (“videos”). Customers...

There are two types of rental items in the VideoSystem: DVDs and video cassettes (“videos”). Customers rent either of these two types of rental items. A rental item has a barcode and a movie name. The status of a rental item is either rented, available, expired. If it's rented, a rental item due date specifies the date that the item should be returned. You can ask for the status of a rental item. All rental items can be rented (by a customer) and returned. When an item is returned, the clerk who handles the transaction labels it “OK” or "damaged" depending on its status. Customers can be retrieved by their id, rental items by their barcode. Draw a class diagram that represents the information handled by the video system. You can use paper to draw and then upload it to the system. Your class diagram should simply reflect the relationships described above. Make appropriate use of UML class diagram features: relationship (association, generalization, aggregation, multiplicity, etc,), and attributes (including type). You do not need to specify the operations. The only diagram created using the software would be evaluated. Hand made diagrams would not be considered.

Solutions

Expert Solution

Please find below the steps to create Class Diagram for the given VideoSystem:

Step 1: List classes and subclasses:

1. RentalItem: This class has below two subclasses based on its Type:

2. Customer: The class which holds the customer details

3. Clerk: The class which holds the clerk details that set the status of a rented item when it is returned

Step 2: Assign data members to the classes:

1. RentalItem(barcode, name)

2. Rented(return_date, return_status)

3. Customer(customerID)

Step 3: The relationships and associations:

1. RentalItem has inheritance/generalization  relationship with below sub classes based on type :

1.1 DVD

                1.2 Video

This has further three sub classes based on its status:

                1.1 Rented

1.2 Available

1.3 Expired

2. Customer is associated with RentalItem and takes none or many Items on rent. An item is also taken by none or many customers. This is a M: N relationship.

3. Clerk sets the status of Rented items and a rental item has none or many status updates by a clerk. It is again a M:N relationship.

Step 4: Final Class Diagram:

**Attributes are not given for all classes, the given attributes in description are mentioned in appropriate classes:

Step 5: Notations:

Inheritance/Genralization:

Association:

**Kindly comment if need any assistance. Thanks!


Related Solutions

A DVD rental firm is currently renting 8,000 DVDs per year. How many DVDs will the...
A DVD rental firm is currently renting 8,000 DVDs per year. How many DVDs will the firm be renting in 10 years if the demand for DVD rentals is expected to increase by 7% per year
(1 point) Zap Media is a major video distributor that purchases blank DVDs from two sources:...
(1 point) Zap Media is a major video distributor that purchases blank DVDs from two sources: Media Makers, which provides 64% of the DVDs and Disk Supply, which provides the remaining 36%. Historically, 4.3% of the DVDs Zap Media has purchased from Media Makers have been defective, whereas 7.7% of the DVDs purchased from Disk Supply have been defective. Use this information and a theoretical group of 10,000 blank DVDs to construct a table for this purchasing scenario. Round all...
Big Time Videos Inc. makes DVDs to sell to stores around the country. Top management meets...
Big Time Videos Inc. makes DVDs to sell to stores around the country. Top management meets on the first Tuesday of the month to evaluate the previous month’s performance. Prior to your arrival at the company the accounting department produced the following Static Budget Performance Report for the meeting. The company had expected to sell 9,800 units but the actual results revealed that only 8,200 units were sold during the month. You notice right away that the actual sales price...
Two shops A and B attract two types of customers: price-sensitive customers, who shop at the...
Two shops A and B attract two types of customers: price-sensitive customers, who shop at the lower-priced shop, and time-sensitive customers, who shop at whichever shop is on their side of the street. A customer of either type purchases on average 10 goods. Assume there are 800 price-sensitive customers and 500 time-sensitive customers buying goods on any given day. The wholesale price the shop pay per good is $3. For simplicity, assume that they can charge $3.50, $4.00, or $4.50...
Two types of customers make up the market for Armoyas. There are 100 type A customers,...
Two types of customers make up the market for Armoyas. There are 100 type A customers, each of whom is willing to pay up to $10 for an Armoya. There are 50 type B customers, each willing to pay up to $8 for an Armoya. No customer wishes to buy more than a single Armoya. The monopolist cannot differentiate between the types of customer. The average and marginal cost of production is constant at $6/Armoya. a)What is the selling price...
Two types of customers make up the market for Armoyas. There are 80 type A customers,...
Two types of customers make up the market for Armoyas. There are 80 type A customers, each of whom is willing to pay up to $10 for an Armoya. There are 40 type B customers, each willing to pay up to $8 for an Armoya. No customer wishes to buy more than a single Armoya. The monopolist cannot differentiate between the types of customer. The average and marginal cost of production is constant at $6/Armoya. What is the selling price...
Hitz Video Rental is evaluating rental prices. Historical data show that Friday and Saturday have twice...
Hitz Video Rental is evaluating rental prices. Historical data show that Friday and Saturday have twice the rentals of other days of the week. The following information pertains to the​ store's normal operations per​ week: Average rentals per day on Friday and Saturday ​1,350 Average rentals per day on Sunday through Thursday 600 Store hours per day 12 Total units available for rent ​10,000 Variable operating costs per hour ​$43 Marketing costs per week ​$1,900 Customer service costs per week...
The students are trying to access videos where each video is of size 850,000 bits and...
The students are trying to access videos where each video is of size 850,000 bits and the average request rate from the students to Blackboard servers is 16 requests/second. Assume that the RTT to any of the Blackboard servers from the Internet router is on average 3 seconds and that the total average response time is the sum of the average access delay and the average Internet delay. Also assume that for the average access delay, the average time required...
A car rental company allows its customers to pick up a rental car at one location...
A car rental company allows its customers to pick up a rental car at one location and return it to any of its locations. Currently, two locations (1 and 2) have 16 and 18 surplus cars, respectively; and four locations (3, 4, 5, and 6) each need 10 additional cars. Because 34 surplus cars are available at locations 1 and 2 combined, and 40 cars are needed at locations 3, 4, 5, and 6 combined, some locations will not receive...
Zap Video Inc. produces two basic types of video games, Clash and Slash. Pertinent data follow:...
Zap Video Inc. produces two basic types of video games, Clash and Slash. Pertinent data follow: Clash Slash Sales price (per unit) $250 $172 Costs (per unit):    Direct materials 68 42    Direct labor 36 60    Variable factory overhead (@ $15 per DLH) 45 15    Allocated fixed factory overhead (based on DLHs) 36 12    Marketing expenses (all variable) 35 32             Total costs 220 161 Operating income (per unit) $30 $11 There is insufficient labor capacity in...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT