Exercise
Use program to calculate area under curve with trapezoidal rule.
Here is the data.
The program in C++
First it read the data from the CSV file. Then it put the data into arrays. After that the program calculate trapezoidal area using for-loop. Finally, it output the result. NOTE: You must convert the excel file to csv file and remove the header and store it in the same directory in order to make the program work.
No comments:
Post a Comment