Question: Write a program which accepts a filename, reads 3 lines from the file about a movie. Then display the movie title, when the movie will

 Write a program which accepts a filename, reads 3 lines from
the file about a movie. Then display the movie title, when the

Write a program which accepts a filename, reads 3 lines from the file about a movie. Then display the movie title, when the movie will turn 100 years old, and the best snack for the movie Assume the filename is always entered correctly Each file contains 3 lines. 1. movie titie 2. year movie was reieased 3. snack for the movie Remember to use getline() for strings and for numbers. The use of , ignore() will be needed. To test locally: 1. create a directory for this lab 2. download the provided files. 3. extract and place files into directory created for lab 4. create cpp in the directory created Example run: What is the name of the file? romcom, txt this is user input Koyle title: Groundhog Day The movie will be 100 years old in 2093 Movie snack: hot tamalee and water Write in c+x

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!