Question: You are requested to construct a C program to determine the local gage pressure at various depth of a fluid using at least a function

You are requested to construct a C program to determine the local gage pressure at various depth of a fluid using at least a function and a numeric array. The gage pressure P in unit Pa is given in following equation. hividaman seduatu bendalir dengan menggunakan sekarang-karangnya saru fungsi dan satu totasusunan angka. Tekiunan thlok P dalan unit Pa ddalah diberikan dalam persamaun berikut]. P=pgh where is the density of fluid in unit kg/m3,g is the gravity acceleration of 9.81m/s2 and h is the depth from the surface of fluid in unit m. The gage pressure P due to depth of fluid h can be calculated using the formula of (di mana adalah ketumpatan bendalir dalam unit kg/m3,g adalah pecutan graviti 9.81mis2 dan h adalah kndalaman dari permukaan bendalir dalam unit m. Tekanan tolok P yang disebabkan oleh kedalaman bendalir h boleh dikira dengan menggunakan formula berikut] P=gh=gh1+gh2++ghn,h=h1+h2++hn The above formula can be explained by Figure 1. [Persamaan di atas boleh diterangkan dalam Rajah I.] The local gage pressure at depth h can be related to the additional of the cumulative local gage pressure due to the cumulative depth of h1+h2++hn1 and the local gage pressure due to the depth hn as ITekunan tolok selempat pada kedalaman h boleh dilnubungkan kepada hasit tambah kumulatif tekanan tolok pada kedalaman yang disebabkan kumulatif kedalaman h1+h2++hn1 dan tekanan tolok setempat sang disebubkan oleh Kedalaman hn sebagai] P=gh=g(h1+h2++hn1)+ghn
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
