Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I need A B C thank you! Question 3 A Video Rental System is required to keep track of videos rented out in a video
I need A B C thank you!
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 ( 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 Member VideoRental Store store address: String name String 1 members 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, c: 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 continued Complete the following sequence diagram by adding appropriate objects and messages to achieve the outcome of renting copy c to member m at date d. For simplicity assume that the copy c is available to rent. may also assume that the Rental class has the following operation (with signatures) attachMember (m: Member), attachCopy(c: Copy) and setOut Date (d: Date) that links the current rental object to member m, links the current rental object to copy C and sets the out date of the current rental object respectively. Also you may assume that class Copy has an operation checkout (r : Rental) which has the effects of making the current copy object in a rented state. Vs:VideoRental Store rent (c, m, d) 1 (9 marks) (Total 33 marks)Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started