Need help with this C++ assignment, please use comments so I canbetter understand your code like comments above your functionheader explaining what the function does and the purpose of eachvariable. etc.
Assignment:
Write a C++ program that reads a text file containing a list ofmovies “Movie_entries.txt” . Each line in the file contains tile,director, genre, year released and running time of a specificmovie. Each field is separated by comma. Print out movie titlessorted alphabetically.
Avengers: Age of Ultron,Joss Whedon,science fiction,2015,120
Mean Girls,Mark Waters,comedy,2004,97
Happy Feet,George Miller,comedy,2006,108
Surf’s Up,Chris Buck,adventure,2007,85
The Great Escape,John Sturges,thriller,1963,172
Superbad,Gret Mottola,comedy,2007,113
Earthlings,Shaun Monson,documentary,2005,95
Limitless,Neil Burger,thriller,2011,105
Guardians of the Galaxy,James Gunn,fantasy,2014,120
Kung Fu Hustle,Stephen Chow,fantasy,2004,99
Whiplash,Damien Chazelle,drama,2014,106
Ghost in the Shell,Mamoru
PayPal Gateway not configured
PayPal Gateway not configured