A C++ program that calculates definite integrals using the monte carlo method