Question: Question 3 A Video Rental System is required to keep track of videos rented out in a video rental store and to handle reservations for


Question 3 A Video Rental System is required to keep track of videos rented out in a video rental store and to handle reservations for videos not currently available. The system will also deal with fines when a video is returned late. A fine will have an amount to be charged. Videos can only be rented out to members of the store. When a video is rented out, the member to which it is rented must be recorded, together with the date when it is rented If all copies of a particular title are rented out, a member may reserve that title for a subsequent time and date. A member may have many reservations where each reservation is for a different tile. A copy of a title has a serial number. When a video is returned, it is put back on the shelf or put on hold for a reservation, if there is one for that title. A reservation can either be active, cancelled or fulfilled. The date when the video is returned is also recorded. The system is maintained by an administrator who manages the enrolment of members as well as the collection of titles and copies of the store. The following class diagram is a partial class model of the video rental store showing some of the classes that will be part of the system. The class VideoRentalStore represents the whole system, class Member represents the concept of membership with properties such as name, and the class Title represents a video title with properties such as name, rate, number of copies and number of available copies. Question 3 is continued on the next page VideoRentalstore Member Store address: string name String member Store 1 catalog Title name: String rate: Money noofCopies: Integer availableCopies: Integer (a) Extend the above class diagram by identifying and incorporating other classes, attributes, and associations. Attach a label (name) to each association and indicate the correct multiplicity in each direction (15 marks) (b) Identify the actors for the video rental store system and the use cases associated with each actor. (9 marks) (c) The operation rent with the signature rent (m: member, e: copy, d Date) enables a member to rent a copy of a title. It works by creating a new rental object (of class Rental) and linking it with member m and copy c and sets the copy c as rented. Question 3 is continued on the next page
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
