Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Maybe its easier to imagine the tank on its side so that the depth gauge is inserted horizontally if you do this you must express

image text in transcribed

Maybe its easier to imagine the tank on its side so that the depth gauge is inserted horizontally if you do this you must express the equation as a function of y and integrate that function.

Please use the ellipse formula, and compute the volume of liquid by trapezoidal integral and function you altered for the ellipse formula. MUST contain following function:

Void trapezoidal_integral (double depth, int n, double width, double height, double length, double *integral_result)

Sample output:

Enter the width of the tank (in meters): 9

Enter the height of the tank (in meters): 10

Enter the length of the tank (in meters): 12

Enter the specific depth on the measuring stick (in centimeters): 900

Depth 900 cm

Volume 804.02 cubic meters

Please use C as programming language. thx
Write a C program to compute volume of liquid in elliptical storage tank. Dimension of the tank is given (unit in meters] width w, height h, and length len. The depth of the tank is measured by a depth gauge, which is already calibrated in units of 10 cm (e.g. 20 cm or 800 cm, only a multiplication of 10 cm). To compute the volume more precisely, use cross-sectional area of the tank for each given depth by trapezoidal method integration. Next, multiply this by the length of the tank. If the tank has width w and height h (in centimeters), the focal radii of the cross section are a = " and b= . Then the equation of the ellipse is: 1 62 y = f(x) Figure 2: Trapezoidal method for integration The function is divided into many sub-intervals (let's say n intervals) and each interval is approx- imated by a Trapezium. Then the area of trapeziums is calculated to find the integral which is basically the area under the curve. The more is the number of trapeziums used, the better is the approximation. Formula: (a) +2f(a + 8) +2f(a +28) + ... + f(b)) 12 Assuming a fixed size h for each set of parameters, obtain the value of h by considering the formula: delta = height (and not depth), and sub-intervals n=10000

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Hands On Database

Authors: Steve Conger

1st Edition

013610827X, 978-0136108276

More Books

Students also viewed these Databases questions