A C++ program to calculate integrals with the Trapezoidal Rule. The function needs to be added inside the program for proper functioning.