Class StaffApp


public class StaffApp extends Object
A Staff App Class

A StaffApp class used perform operations related to Staff application

  • Field Details

    • sc

      static Scanner sc
      scanner object for user inputs
  • Method Details

    • getInstance

      public static StaffApp getInstance()
      Method to get the instance of staff App object
      Returns:
      The staff app object
    • ProcessStaff

      public void ProcessStaff()
      Helper method to request for user choice
    • DisplayStaffMenu

      public void DisplayStaffMenu()
      Method to display staff menu and get user choice
    • setTicketPrices

      public void setTicketPrices(TicketEY ticket)
      Method to set ticket prices
      Parameters:
      ticket - The TicketEY object
    • addMovies

      public void addMovies(int name, int type, int movieRating, int showStatus, int synopsis, int director, int cast)
      Method to add movies
      Parameters:
      name - The name
      type - The type
      movieRating - The movie rating
      showStatus - The show status
      synopsis - The synopsis
      director - The director
      cast - The cast
    • getTop5RankingMoviesByTicketSales

      public void getTop5RankingMoviesByTicketSales()
      method to top 5 movies by ticket sales
    • getTop5RakingMoviesByOverallReviews

      public void getTop5RakingMoviesByOverallReviews()
      method to get top 5 ranking movies by overall reviews
    • updateMovie

      public void updateMovie(MovieEY movie)
      Method to update movie
      Parameters:
      movie - The movie object
    • addCinePlex

      public void addCinePlex(CineplexEY cineplex)
      Method to add cineplex
      Parameters:
      cineplex - The cineplex object