Question
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
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 a. Read a small library collection file stored in myMovies.dat b. Store the library collection data in an array called movieLibrary c. Add a movie (it must be added to array and appended to the data file d. 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. 5. It must make use of at least one other additional functions not specified above to perform necessary steps within the program. You could do 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.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started