Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Introduction to Programming CS1325 Assignment #8 - Numerical Integration Assignm

ID: 656529 • Letter: I

Question

Introduction to Programming CS1325 Assignment #8 - Numerical Integration Assignment #8 - Numerical Integration Introduction Your eighth programming assignment will consist of one C program. Your program should compile correctly and produce the specified output. Please note that your program should comply with the commenting and formatting rules we discussed in class. Those formatting requirements have now been updated to include variable declarations and comment headers for functions. Please see the descriptive file on eLearning for details. Program - Numerical Integration Introduction For this program, let's explore some of the ways we can use C to perform numerical integration. We'll restrict our attention to definite integrals on smooth curves only and look at two methods, called the rectangle rule and the trapezoidal rule respectively (http://en.wikipedia.org/wiki/Numerical integration). With the rectangle rule, if we wish to calculate the area under a curve between two end points, a and b, we can evaluate the function at the midpoint between a and b and use that value to create a rectangle whose area will approximate the area under the curve between a and b. A diagram follows: Here, the area of the red rectangle is consider an approximation for the definite integral between a and b. This area can be expressed by the following equation:

Explanation / Answer

#include #include #include void main() { float x[10],y[10],sum=0,h,temp; int i,n,j,k=0; float fact(int); clrscr(); printf(" how many record you will be enter: "); scanf("%d",&n); for(i=0; i
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote