Objectives:
Due: November 18 before class
Java provides a tutorial about enumerated types in Java. Feel free to consult other references. Let me know if you find any that are especially useful.
Create a new enum type that represents
the MPAA
rating for DVD
objects from
your MediaItem
-based projects. Also include if the
movie is not rated. Your new enum type should have a method that,
given a person's age, determines if the person should be allowed
into a movie and a method that returns the rating as a String in a
user-friendly way.
Modify your DVD
class to use the new type instead of however
you represented ratings before. Create a driver or some kind of test that
shows the correctness of your new enum type.
Create a text file called CRITIQUE
where you discuss
enumerated types. How difficult were these to learn? How easy/difficult it
would be to implement this functionality without enumerated types?
Create a jar file of your project.
Copy your jar file into a ec_enumtypes
directory in your turnin
directory. Email
me to let me know that you submitted the assignment.
You will be evaluated based on the following criteria: