ion for the definite integral of flx) This leads to the ~ Area of a single trapezoid-Ax . (f (%) + f(xw, t Problem Statement You are to write a program that takes paired data representing x and y - fto) values measured in regular intervals on an irregular function from a user-specified input text file (must have .tvt file ext calculates an approximation for the definite integral from the first the last point using a summation of srapezoidal areas and outputting result using a user-s places. The text file with the data is formatted so it provides consecutive data point without units. The number of data points in the file is not known in advance so the program retrieves data points until the end of file is reached. The program needs to also offer the user multiple runs using different files without needing to restart the program. of decimal x and associated y value for each Specific program requirements are 1. Explain to the user what the program does making sure the user is told how to provide the data in text files and where to save the file. whle 2. Ask the user how many decimalplaces to show when data is provided on the console screened 3. Set up an outer loop that allows the user to repeat the remaining part of the program multiple or otes. Set up an organized table format (see sample output below) in preparation.for printing out the times using different data files 4. Ask user for name of text file (code for this provided in lecture notes & appendix). Leo he file on the monitor 6. Set up a loop to execute the integration so that: a. Each (x, y) data pair is printed to the console screen for the user with the user-specified number of decimal places. b. Calculate the area of each trapezoid using consecutive pairs of data. c. Add in the calculated area to a running total area d. End loop when at the end of the data in the file. Report to the user on the console screen the approximation for the definite integral, again noting that units depend on the x and y axis units. Ask user if they want to perform calculation again with another data set. If no, end program. If yes, cycle back to step4 7. 8. The data provided is for a straight line connecting the points (0,-1) and (S, 1.5) so the final answer using simple geometry is 1.25 Sample Data File Contents: 0.5 -0.75 2 -0.5 1.5 -0.25 2 0 2.5 0.25 3 3.5 0.75 0.5 4.5 1.25 5 1.5 Sample output to user if user indicated to show three decimal places