Write a C++ program using function prototypes, which meets t…

Write a C++ program using function prototypes, which meets the following requirements: Create a void function named squareNumber that: Takes two parameters: A constant integer (const int) as input. An integer passed by reference to store the result. Calculates the square of the input number and stores it in the reference parameter. Create a value-returning function named calculateAverage that: Takes two integer parameters, both declared as const. Returns the average of the two numbers as a double. In the main() function: Prompt the user to enter the first number. Use this number to: Calculate and display its square using the squareNumber() function. Use it as the first number in the average calculation. Prompt the user to enter the second number. Use this number as the second input to calculateAverage(). Call the calculateAverage() function using the two numbers and display the result.

14. Find an approximation for the definite integral by using…

14. Find an approximation for the definite integral by using the first four non-zero terms of a series of your choice. Show steps and work. Because I did not expect people to memorize formulas, you may have to use the process covered in class for Maclaurin series. This requires a little bit of critical thinking.