Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need help using structs in c++. I will need to create a .dat file for a list of movies, then make a funtion to

I need help using structs in c++. I will need to create a .dat file for a list of movies, then make a funtion to read the data from the file, then print the list of movies. It will be a huge help if I can get this done.

image text in transcribed

Program Specifications Write 1. It must be adequately commented. 2. It must have ariables that are appropriately named. 3. It must have a function to adequately prompt the user to perform the following action by a program that will do the following. printing the following menu. a. Add a new movie b. Print the director, movie length, theater release date, dvd e date, production cost, ngle title (search by title) and first year revenue for a si Print the entire movie information listing c. 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: stri director: strin length: int theaterReleaseDate: date dvdReleaseDate: dateTvpe roductionCost: double firstYearRevenue: double 2. The struct called dateType given in the above struct bookType is represented as follows: month: int day: int ar: 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 The movieLibrary is an array of movieType struct. 4

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions