myMovies.dat
War of the Worlds, Byron Haskin, 88, 01/01/1953, 01/01/2000, 15000000.0, 28000000.0
War of the Worlds, Stephen Spielberg, 118, 01/01/2005, 01/01/2007, 22000000.0, 14000000.0
Program Specifications:
Write a program that will do the following:
1. It must be adequately commented.
2. It must have variables that are appropriately named.
3. It must have a function to adequately prompt the user to perform the following action by printing the following menu:
a. Add a new movie
b. Print the director, movie length, theater release date, DVD release date, production cost, and first-year revenue for a single title (search by title)
c. Print the entire movie information listing
d. Quit
4. It must have a function to read a small library collection file stored in myMovies.dat.
5. It must store the library collection data in an array called movielibrary.
6. It must print (to common input) the director, movie length, theater release date, DVD release date, production cost, and first-year revenue for a single title specified by the user.
7. It must make use of at least one other additional function not specified above to perform necessary steps within the program. You could do a search by another category or make use of helper functions to do the other tasks.
Hints:
1. Each movie is stored as a struct movieType which includes the following information:
- title: string
- director: string
- length: int
- theaterReleaseDate: dateType
- dvdReleaseDate: dateType
- productionCost: double
- firstYearRevenue: double
2. The struct called dateType given in the above struct bookType is represented as follows:
- month: int
- day: int
- year: int
3. Review the information provided in the data file myMovies.dat to understand how the data is arranged so you can program the function for reading in the data correctly.
4. The movieLibrary is an array of movieType struct.