Course web page: Introduction to Computer Science for majors II James Tam | Return to the course web page |
For this assignment you are to write a program that allows a person to manage their movie collection. The full version will perform some common list management functions such as: adding, displaying, removing or searching. There should not be a limit on the number of movies that can be added.
Each movie will be described by four fields:
Movie name
The names of the first three cast members
The genre of the movie
The number of stars (the rating of the movie)
Movie name
This field consists of an alpha (and sometime numeric string e.g., "
Cast
The cast list will consist of the full names of three of the actors from
this film. A 1D array of strings can be used to store the cast information
e.g.,
0] | H | e | a | t | h | e | r | M | o | r | r | i | s | |||
[1] | R | i | c | h | a | r | d | G | r | o | s | s | e | |||
[2] | D | o | n | n | a | B | u | r | k | e |
Genre
The genre field describes the category that the movie falls into. There will
be six different categories of movies: action, drama, science fiction,
comedy, horror, martial arts or 'other'. You don't have worry about checking
for instances where a movie falls into multiple genres.
Rating
This field uses a number of stars to rate each movie according to its
entertainment value1. The greater the number of stars, the better the movie:
1 star (It sucks): It's not the type of movie that's so bad that it's
good, it's just all bad. Don't waste your time with this one.
2 stars (Poor): Overall there were more things that I disliked than liked
with this movie. Unless there's a ticket sale it's probably one that you should
avoid.
3 stars (Average): There were some things that I liked and some things
that I disliked. It's one that you may want to rent/stream rather than buy.
4 stars (Good): This movie has some flaws but overall you'll have a great
time watching it.
5 stars (A true masterpiece!): I laughed, I cried, it became a part of
me. It should definitely be nominated for an Oscar (maybe several).
When movies are
displayed each field will reside on a separate line and each movie will be
separated by a line of stars (but the stars are not an attribute of a movie
object).
TERMINATOR 2 JUDGMENT DAY
Arnold Schwarzenegger
Linda Hamilton
Edward Furlong
Action
5
************
IT'S A WONDERFUL LIFE
James Stewart
Donna Reed
Lionel Barrymore
Drama
5
************
ROMEO AND JULIET
Leonard Whiting
Olivia Hussey
John McEnery
Drama
4
************