The following function intends to sum the integers given a m…

The following function intends to sum the integers given a minimum/maximum value. For example, calling the function with (1,4) results in 1+2+3+4 -> 10.What, if anything, is wrong? #include int sum_range(int low, int high){ int s = 0; for(int i = low; i < high; i++) s += i; return s;}int main() { std::cout

The following function intends to sum the integers given a m…

The following function intends to sum the integers given a minimum/maximum value. For example, calling the function with (1,4) results in 1+2+3+4 -> 10.What, if anything, is wrong? #include int sum_range(int low, int high){ int s = 0; for(int i = low; i < high; i++) s += i; return s;}int main() { std::cout

Your goal in this task is to load a set of movie titles stor…

Your goal in this task is to load a set of movie titles stored as one-line text files in a directory, which you can download and unzip with link movies.zip. The name of each text file is the associated ID for that movie title. For example, a directory listing from the command line looks like: $ ls1       122904  1633    22      2918    3671    45447   54796   6708    83810      122906  1639    223     292     368     45499   5481    671     8387100390  122912  164     2231    293     3681    455     54999   6711    84392Create a function called load that takes an argument called dir, which is the path to the directory of files. The function must read all of those files and return a Pandas data frame that associates the ID (filename) with the title.  Set the column names as shown below. The ID must be an integer column and the data frame must be sorted by ID as shown. (Here I have unzipped movies.zip in dir /tmp.)  You can import pandas and os but that’s it.