This assignment is a continuation of the “Movies Manager” program we started
working with in the first assignment. If you have completed all prior work
(including lab day) then all that remains is to implement and call four
methods: one to delete a movie, one to search by genre, one to search by title,
and one to save the changes when the user exits the program.
Here are some suggested steps:
- Make sure your local working repository has all of the changes reflected
in your hosted repository and the base repository (
git pull mine master
and
git pull origin master
).
- Implement the method that will search by title. You will ask the user to
enter a title to search for. Your search should be a forgiving search in that:
- it should be case insensitive
- it should do partial matching ... if the user entered “th” as
the search string it should match the title “The Cat's Meow” and the
title “Fun on 10th Street”.
- Once the search by title is working perfectly and has been documented
using JavaDoc conventions commit your changes to the local repository along
with an accurate, descriptive message.
- Implement the method to search by genre. The search here should be case
insensitive but, otherwise, should require an exact match.
- Make sure the method is properly documented and commit your changes locally.
- Implement the delete method.
- Begin by having the user search for a title to be deleted. Since
you already have a method that searches by title just call that method.
Modify your search method so that when it prints titles it also displays
the array position where the title is found.
- Ask the user to enter the id (i.e., array position) of the title
they want to delete.
- Remove the title (and genre and year) from the array if the number
given by the user exists.
- Make sure the method is properly documented and commit your changes locally.
- Implement the save method and call it after the loop in main().
- Make sure the method is properly documented and commit your changes locally.
- Do a final check of the behavior of the program. Test it more fully by switching
the datafile from tinymovielist.txt to movielist.txt. Commit any
tweaks or changes you have made indicating in your message that this homework assignment
is complete.
- Push your changes to your hosted repository.
The assignment will be graded according to the following criteria:
Correctness |
20 |
pts |
Documentation |
2 |
pts |
Conventions |
2 |
pts |
Version Control |
2 |
pts |
Total |
26 |
pts |
Your program should be completely working and should follow all of the
programming conventions named in class and explained in
http://josephus.hsutx.edu/classes/all/javaconventions/ (including the use
of comments that conform to the JavaDoc guidelines).
The instructor will grade your work based on what you have pushed to the hosted
homework repository you have shared. For all assignments the program is due
before the beginning of class on the due date. Repositories that show a commit time
after that time will be graded as late.