Console

Welcome to the Movie List Application.

There are 100 movies in the list.

What category are you interested in? scifi
Star Wars
2001: A Space Odyssey
E.T. The extra-terrestrial
A Clockwork Orange
Close Encounters Of The Third Kind

Continue? (y/n): y
What category are you interested in? comedy
Annie Hall
M*A*S*H
Tootsie
Duck Soup

Continue? (y/n): n

Operation

  • This application stores a list of 100 movies and displays them by category.
  • The user can enter any of the following categories to display the films in the list that match the category:
    • animated
    • drama
    • horror
    • scifi
  • After each list is displayed, the user is asked whether to continue. If the user enters Y or y, the program asks for another category. Otherwise, the program ends.

Specifications

  • Each movie should be represented by an object of type Movie. The Movie class must provide two public fields: title and category. Both of these fields should be Strings. The class should also provide a constructor that accepts a title and category as parameters and uses the values passed to it to initialize its fields.
  • You will be supplied with a class named MovieIO that has a method named getMovie. This method accepts an int argument that can be a number from 1 to 100. When called, it returns a unique Movie object for each value passed to it. You should use this method to fill the array list with 100 Movie objects.
  • When the user enters a category, the program should read through all of the movies in the ArrayList and display a line for any movie whose category matches the category entered by the user.

Required Enhancement

  • Standardize the category codes by displaying a menu of category choices and asking the user to select the category by number rather than by entering the category code.
Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.