Q2.

Question

Modify the given program so that it will use 1000 smaller rectangles with base vertices at0,0.001,0.002,0.003,........,1.000 to approximate the area of the shaded region. RUN the program.

Step-by-Step Solution

Verified
Answer

Area is approximately0.333833 .

1Step 1. Write the given information.

The shaded region is bounded by the graph ofy=x2 , by the x-axis , and by the vertical line through the points (1,0) and(1,1) .

The program for calculating the area of shaded region using 10 rectangles :10 LET X=0.120 FOR N=1 TO 1030 LET Y=X240 LET A=A+Y*0.150 LET X=X+0.160 NEXT N70 PRINT "AREA IS APPROXIMATELY"; A80 END


2Step 2. Concept Used.

We can approximate the area of the shaded region by drawing  rectangles having base vertices atx= 0 , 0.001 , 0.002, 0.003,,1.000 ,and computing the sum of the areas of the1000  rectangles. The base of each rectangle is0.001 , and the height of each rectangle is given byy=x2

The following comuter program will comute and add the areas of the 1000 rectangles.In line30Y is the height of each rectangle.In line 40A, A gives the current total of all the areas.

3Step 3. Do the calculation.

10 LET X=0.00120 FOR N=1 TO 100030 LET Y=X240 LET A=A+Y*0.00150 LET X=X+0.00160 NEXT N70 PRINT "AREA IS APPROXIMATELY"; A80 END

Therefore, If the program is run, the computer will print AREA IS APPROXIAMTELY 0.333833