Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I need a program that will read a movie.txt file and other text files with movies. The program is in C++14. Thank you. The lab
I need a program that will read a movie.txt file and other text files with movies. The program is in C++14. Thank you.
The lab exercise is a simple one: input movie names from a file, and output the total # of movies movie, and the last movie. The input file contains the movie names, one per line there is nothing the end. Example: suppose the file movies.txt" contains The Shawshank Redemption (1994) The Godfather (1972) The Godfather: Part Il (1974) Pulp Fiction (1994) The Good the Bad and the Ugly (1966) The Dark Knight (2008) 12 Angry Men (1957) Schindler's List (1993) The Lord of the Rings: The Return of the King (2003) Fight Club (1999) Your program should input the name of the file from the keyboard: movies.txt The output from your program should be the # of movies, first movie name, and last movie name: 10 The Shawshank Redemption (1994) Fight Club (1999)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