Page 1 of 1

it is a java project, it is due to may.19 please i want the coding of the object oriented programming. the UML diagram i

Posted: Fri May 20, 2022 12:42 pm
by answerhappygod
it is a java project, it is due to may.19 please i want the
coding of the object oriented programming. the UML diagram is at
the end. thank you ( i'm sorry but i can't understand why
it is not getting solved i put all the required
information )
The goal of the
project:
This project is
about improving your problem solving skills by using Class
structure and object-oriented programming features in Java
programming language.
Project Content and
Instruction:
In this project, you are required to
write a menu-based Java program for 8 Classes.
Whether the given
properties are private or not should be decided by looking at the
UML diagram at the end of the document. If private, get and set
methods must be defined unless otherwise stated.
Below are the classes to be
developed;
Properties:
movieName:
String movie name
price:
double price of the movie
quantitiy:
int How many copies of the movie do we have?
releaseDate: String movie release date
duration:
int filmin süresi the duration of the movie
methods:
Movie (name, price,
quantity)
Creates a new Movie object with the
properties it takes as parameters. (constructor)
Movie (name, price, quantity, r_date,
duration)
It creates a new Movie object with the
properties and properties it takes as parameters. (constructor)
displayMovie():void
Prints all the features of the movie
to the screen.
It will inherit from the Movie
class.
Properties:
ageLimit:int minimum
age to watch the movie
methods:
HorrorMovie(ageLimit, name,
price, quantity, r_date, duration)
Creates a new HorrorMovie object with
the properties it takes as parameters. (constructor)
It will inherit from the Movie
class.
Properties:
actionType: String
action type of movie
movieNo: int
(Matrix-1, Matrix-2, Matrix-3) -serial movie number
It will inherit from the
Movie class.
Properties:
dramaType: String
filmin drama tipi
methods:
DramaMovie(dramaType, name,
price, quantity, r_date, duration)
Creates a new DramaMovie with the properties it takes as
parameters. (constructor)
Properties:
firstName: String
kişinin adı
lastName: String
kişinin soyadı
balance:
double kişinin bakiyesi (para durumu) - balance of the
person (money situation) rentHistory: Movie[100]
kişinin kiralayıp teslim ettiği filmler. (100 boyutlu
Movie türünden bir dizi) movies that the person
rents and delivers. (A series of 100 dimensional Movies)
currentMovies:
Movie[rentLimit] movies rented by the person (current)
(Movie whose size is 'rentLimit') an array of type)
rentLimit: int the
maximum number of movies a person can rent.
Attention: The set method will not be
written for the rentLimit property.
methods:
Person(name, surname, balance,
rentLimit)
Creates a new Person with the properties it takes as parameters.
(constructor)
displayRentHistory(): void
It writes the movies that the person
rented and delivered in the past to the screen.
displayRentHistory(movieType: String): void
Writes the movies (of the specified type) that the person rents
and delivers to the screen. For example, only "Horror" movies,
or
and only "Action" movies
It will inherit from the Person
class.
Properties:
balanceLimit: final
double maximum balance that the young person can have
rentLimit:
final intmaximum number of movies that young people can
rent.
These two features
should be defined as final and the desired values should be
assigned.
balanceLimit =
120.75
rentLimit = 10
methods:
YoungPerson(name, surname,
balance, rentLimit)
Creates a new YoungPerson with the properties it takes as
parameters. (constructor)
showLimits(): void
Writes the young person's
remaining limit information to the screen (The number of movies she
can rent).
It will inherit from the Person class.
Properties:
rentLimit: final int
maximum number of movies that the elderly can rent
This property should be defined as final and
the desired values should be assigned.
rentLimit = 10
methods:
OldPerson(name, surname,
balance, rentLimit)
Creates a new OldPerson with the
properties it takes as parameters. (constructor)
showLimits(): void
Writes the remaining limit information
of the elder to the screen (Number of movies that can be
rented).
Properties:
storeName: String
name of the store
filmCount: int the
number of movies in the store
owner: Person owner
of the store
movieList:
Movie[100]list of movies available in store
rentedMovies:
Movie[rentLimit]movies rented by the store (current)
customersList: Person[200]people who have rented
movies from the store
rentLimit: int the
store's movie rental limit
income: double total
revenue of the store
methods:
MovieStore(name, owner,
rentlimit)
Creates a new MovieStore with the
given properties. (constructor)
rentMovieToPerson(Person, movieName):
boolean
Adds the movie
received as a parameter to the person received as a parameter. What
needs to be done here is to first search the movie list of the
store using movieName as a parameter.
If there is no movie
with the desired name in the store, the message "the movie is not
available in the store" should be given. If the film is available
in the store, the quantity feature should be checked. If it is
greater than zero, the rental process should be done successfully,
if 0 (zero), the message “the movie is in the store but is
rented to other customers” should be
given.
In addition, other
limited parameters such as rentLimit feature should be taken into
account (limits of the person and the store) and checks should be
made. (For example, whether the person can afford it.)
returnMovietoStore(Person, movieName):
boolean
Returns the movie,
which is taken as a parameter, from the person that is taken as a
parameter, to the store. First thing to do here is to search the
movie list of the store using movieName which is taken as a
parameter.
should be done. If
there is no movie with the desired name in the store (rentedMovies
list), “The movie is not in the store, wrong store!” message should
be given. If the film is available in the store, the necessary
requirements for a successful return
all transactions must be done and as a
result, “Film refund has been successful!” message should be
given.
calculateStoreTotalBalance(): double
It displays the
total money earned by the store from movie rental transactions.
printCurrentRentedMovies(): void
Writes the current list of the movies
rented by the store to the screen.
printCurrentRentedMovies(firstName, lastName):
void
By looking at the
current list of the movies rented by the store, only the movies
rented by the person with the given name and surname as parameters
are displayed on the screen.
printStoreMovies(): void
It writes all the movies that the
store has to the screen.
printMovie(movieName: String): void
It finds the movie name given as a
parameter and writes its properties to the screen.
addNewMovie(movie: Movie): boolean
The given movie
object must be added to the store. The process that needs to be
done here, first of all, the store's 100 movie list should be
checked to see if there is the same movie (it is enough to look at
the name). If there is the same movie, it should be updated, not
added (only quantity will be added) and "Movie number has been
updated!" message should be given. If there is no same movie, the
given movie object should be added to the first empty place in the
movie list of the store, and
“The requested movie
has been added to the store!” message should be given. If no space
is found, “No more movies can be added to this store!” message
should be given.
In addition, the result of adding; It
should return true (success) or false (fail).
updateMovie(movieName, newPrice, newQuantity):
boolean
The given movie name
should be found in the store and the price and quantity attributes
should be updated. The process that needs to be done here, first of
all, the desired movie should be found by searching with the movie
name given in the 100 movie list of the store. If the movie name is
not found, “The movie name to be updated was not found in the
store!” message should be given. If found, necessary update
operations should be done and "movie properties have been updated
successfully." message should be given.
In addition, the result of the update;
It should return true (success) or false (fail).
deleteMovie(movieName):
void (check customer list)
The given movie name should be found
in the store and deleted from the list (null). Successful
deletion
For this, the film to be deleted must
not be rented to anyone. For this, all customers should be checked.
If any
customer has rented this movie, “the
movie to be deleted will be deleted by the customer.
It's on loan!”
message should be given and no deletion should be performed. If the
renting customer cannot be found, first of all, the desired movie
should be found by searching the movie name given in the 100 movie
list of the store. If the movie name is not found, “the movie name
you wanted to delete was not found in the store!” message should be
given. If found, deletion should be performed and “movie deleted
successfully.” message should be given.
Development of the application:
While testing the program, all
operations will be done through a menu.
It Is A Java Project It Is Due To May 19 Please I Want The Coding Of The Object Oriented Programming The Uml Diagram I 1
It Is A Java Project It Is Due To May 19 Please I Want The Coding Of The Object Oriented Programming The Uml Diagram I 1 (98.35 KiB) Viewed 52 times
pricer : Movie -movieName:Stăng pñce:double -quantitiy: int -release Date: String -duration: int +Movie(name,price, quantily) +Movie(name, price, quantity,r_date, duration) +displayMovie():void : Horror Movie : Action Movie Drama Movie -ageLimit:int -action Type:String -movieNo: int -dramaType: String Horror Movie(ageLimit, name,price, quantity,r_date, duration) +amionMovie(amionType, movieNo, name,price, quantity,r_date, duration) EamaMovie(dramaType, name,price, quantity,r_date, duration)

Person -firstName:String -lastName:String -balance: double -rentHistory: Movie[100] -currentMovies: Movie(rentLimit] -rentLimit:int (set olmayacak) +Person(name,sumame, balance,rentLimit) +displayRent History():void +displayRent History(movie Type:Strinnlynid : YoungPerson OldPerson |-balanceLimit:final double=120.75 -rentLimit:final int = 10 -rentLimit:final int = 100 +Young Person(name, sumame,balance,rentLimit) +showLimits():void +OldPerson(name, sumame, balance,rentLimit) +showLimits():void

: MovieStore -storeName:String -filmCount: int -owner: Person -movieLiSt: Movie[100] - rented Movies: Movie[rentLimit] -customersList:Person[200] -rentLimit:int -income:double +MovieStore(name,count,ownar,rentlimit) +rentMovieto Person(Person,movieNarne):boolean +retum Movieto Store(Person,movieName):boolean +calculate Store TotalBalance():double +printCurrentRentedMovies():void +printCurrentRentedMovies(personType:String):void +printCurrentRentedMovies(firstName, lasrName):void +printStore Movies():void +printMovie(movieName:String):void +addNewMovie(movie: Movie):boolean +updateMovie(movieName,newPrice,newOuantity):boolean +deleteMovie(movieName):void