Question: Hi, Just do question 4 by using C++ and visual studio. Please convert the pseudo-code into code and meet the requirements to use it. And

Hi, Just do question 4 by using C++ and visual studio. PleaseHi, Just do question 4 by using C++ and visual studio. Please convert the pseudo-code into code and meet the requirements to use it. And please paste the code as the answer, thank you.

Mast Wind A vertical cross section of a racing boat is shown in the figure below. The mast of the boat has a height h = 25 ft. The wind force f(z) exerted per foot of mast and measured in lbf /ft can be expressed as a function of distance above the boat's deck (z). The equivalent total wind force F can be calculated as a finite integral. f(2)=185. F=[ f(z) 5+2 -- j (S(z)dz . Use a uniform partition with equally spaced intervals over the z-value range [0, 25] to determine the total wind force Fusing the methods: 1. Upper and Lower Sums, manual calculation, 5 intervals 2. Trapezoid rule, manual calculation, 5 intervals 3. Romberg algorithm, manual calculation up to R(2,2). 4. C++ program based on Romberg pseudocode up to R6,6). Perform an error analysis: compare results from (1), (2), (3) with (4) value procedure Romberg(S, a,b,n,(:;)) Legend: integer i, j, k, n; real a, b, h, sum; real array (rij lonxan f is the function to be integrated external function / a and b are the integration limits hD-a rij is a double array for R(n,n) terms 100+ (h/2) f(a) + f(0) for i = 1 to n do n last term of R(n,n) hh/2 Use single (float) precision for manual calculations. Single precision i.e. to 6 for k = 1 to 2 1 step 2 do significant digits. Examples: sum sum + f(a+kh) Ex of calculated value Value typed in Excel end for rio ri-1,0 + (sum) h -2345.01789 -2345.01 for j = 1 to i do 0.220344096 0.220344 nitrij-i + (rij-1-1-1.j-1)/(4/- 1) -0.0001122334455 -0.000112233 end for 10233400.00 10233400 end for 12.00 12 end procedure Romberg sum 0

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!