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

please do question 31 Using the following function prototype which statement abo

ID: 3843165 • Letter: P

Question

please do question 31

Using the following function prototype which statement about the argument passed to parameter A is true void F(const int A[], int Cnt); The argument is modified when changes are made to parameter A in function F. The argument passed to parameter A must always have the same number of elements, every time function F is invoked. Changes can not be made to parameter A in function F. Every element of the argument passed to parameter A must be initialized prior to invoking function F. Given the declaration char sentence[15]; and that the data entered from the keyboard is: The game is today what is the value stored into sentence by the statement: cin >> Sentence; The The game is The game is tod None of the above. The Newton-Raphson method algorithm for locating the root of a function is guaranteed to locate a root in a known number of iterations. A. TRUE B. FALSE A better approximation of the area under a curve is by decreasing the trapezoid number used. A.TRUE B.FALSE Which of the following is a disadvantage of the Newton-Raphson method? It converges more rapidly than many other methods. It requires you to be able to determine the derivative of the function which may not be easy to do. It may diverge if the guess is not close enough to the root of the equation. You have to guess many times to get a single root. If a subscript in a C++ program is outside of the declared range for that array an error message specifying that the subscript is out of range will always be generated. A. True b. Flase Assuming the declaration statement char sentence[] = "Breath deeply"; the statement cout

Explanation / Answer

31.(A) True

The trapeziodal rule works by approxinating the region under the graph of the function f(x) as a trapezoid and calculating its area.

With the trapezoid rule, instead of approximating area by using rectangles we can approximate area with trapeziods. If we decrease the trapezoid value we can have better approximation.