Question: Hi! I need the java code for this sheet please a picture for the UML diagram & the other 2 pictures are what should be
Hi!
I need the java code for this sheet please
a picture for the UML diagram & the other 2 pictures are what should be applied in the program


.
Note the following: In addition to the methods shown in the previous UML diagram, you are required to Override the toString method of the Object class in classes Rental Movie, and Video Game, as follows - In class Rental the toString method should return a String that consists of: 1. The rental title, then a comma, then 2. If the rental is checked out the statement checked out on date in which it was checked out)", if the rental is not checked out the statement "nor checked ow", then a contina, then 3. The statement: www.ber of times checked out: then a com then 4. The statement average rating - In class Movie, the toString method should return the string returned by the toString method of the Rental class in addition to a comma and the statement: available on_format) - le class Video Game, the String method should return the string returned by the toString method of the Rental class in addition to a cow and the statement category: foto) Override the equals method of the Object class in class Rental, such that two Rental objects are equal if they have the same title ignoring the case, In the Rental class: The overridden compare To method should retum the difference between the numbers of times the two compared items are checked out. In the Movie and Video Game classes: The computer DueCharge method should find out the number of days since the movie video game was checked out, if it is less than the maximum number of renting days, then it should return 0, otherwise, the over due charge is number of late days by the owerDue Penalty for the movies and number of late days hy twice the aver Due Penalty for the video games. The update Rating Average method should first check that the passed rating is within the range. If not, it should throw an appropriate exception with the following message "Rating was nor accepred. Move rating should be between 1-5" for movies and the following message "Raring was not accepted. Video game rating should be between 1-0 for video games. If the rating is within the range it should increment the Ratings field and recompute the rating Average In the Renting Store class: The resovelien method should remove the item with the passed title, it should return true if the item is found and removed successfully and false otherwise The checkOur method should display an input dialog to the user with the following message:"Enter the midle of the crew to check our", then if the item is found and is not checked out it should change its checked Our attribute to true increment the nummeCheckedOw attribute and return true, otherwise it should return false The checkin method should display an input dialog to the user with the following message "Enter the tale of the teme to check then the following message "Enter the item rating. Oy you do not want to rate for movies from 1-5, for video games 1-10". Then it should find the item with the entered title and change its checked Our attribute to false then update its ratingverage with the entered rating and return true, otherwise it should return false. Note that your program should check for any exceptions that could be thrown when updating the rating Average (because the rating is not within the accepted range) and handle it by displaying a message dialog that contains the exception message Good Luck Write a JAVA program to build an appropriate implementation for the UML diagram below, which models a movie and video games renting store, using the concepts of Object Oriented Programming that you learned. > java.lang.Comparable
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
