Question: Write a c++ program using visual studios. Write a C++ program that calculates the area under a curve. Must use Riemann sum. Here is the
Write a C++ program that calculates the area under a curve. Must use Riemann sum. Here is the curve equation:f(x)- XA2+1.5x+2 You must promt the user for the beginning and the ending x values that represent the limits/range of the funcition. Error check for correct range for each input. The units used are inches. . The program input/output should look something like this: The program calculates the area under a curve between two points on the x axis. The equation is: x0000000x Please Enter the min x value (Positive Whole NUmbers Only): 1 Please Enter the Maxx value (Positive While NUmbers only: 4 The area under the curve between min x and max is: xxxxx square inches (Note, 1 and 4 are user inputs) . You should calculate the area using the basic "rectangular slice" method. e For this part of the project, set your x axis intervals at 1 inch. . For example, if the user input the x range from 1 inch to 4 inches, you would have three x ranges: from 1 to 2, from 2 to 3, and from 3 to 4 in which you calculate the area and make a sum of the total. see attached sheet for a graphical representation and the check answer for week one
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
