Rootfinding Upon graduation you have been hired by the Depar

Root-finding Upon graduation, you have been hired by the Department of Watershed Management of the newly incorporated city of Buzztown, GA, a thriving community located near lake Lanier. The US Army Corps of Engineers has just given the city permission to use the lake as its water supply, and your department is tasked with the design of the steel pipe that will deliver the water Your specific assignment is to determine the diameter of the pipe, based on the present Buzztown demand for water, which requires a flow rate of 10,000 gallons per minute. eoretical background Fully developed flow in a pipe is governed by an energy balance equation of the form 1 where point 1 represents one end of the pipe (in our case, the surface of the lake) and point 2 represents the other end (the city), p is the pressure, V is the average velocity of the fluid (water), z is the elevation, is the fluid density, g is the acceleration of gravity, and his the head loss, which represents the irreversible transfer of mechanical energy to thermal energy in the flow Lake Buzztown Pipe Referring to the figure above, the pressures at points 1 and 2 are the same, the average velocity at the surface of the lake is zero, the elevation z2 is the reference elevation defined as zero, and the velocity at point 2 is the average velocity in the pipe V. Thus, the energy balance simplifies to 2 2g

Solution

#include int main() { int m, n, c, d, first[10][10], second[10][10], sum[10][10]; printf(\"Enter the number of rows and columns of matrix\ \"); scanf(\"%d%d\", &m, &n); printf(\"Enter the elements of first matrix\ \"); for (c = 0; c < m; c++) for (d = 0; d < n; d++) scanf(\"%d\", &first[c][d]); printf(\"Enter the elements of second matrix\ \"); for (c = 0; c < m; c++) for (d = 0 ; d < n; d++) scanf(\"%d\", &second[c][d]); printf(\"Sum of entered matrices:-\ \"); for (c = 0; c < m; c++) { for (d = 0 ; d < n; d++) { sum[c][d] = first[c][d] + second[c][d]; printf(\"%d\\t\", sum[c][d]); } printf(\"\ \"); } return 0; }
 Root-finding Upon graduation, you have been hired by the Department of Watershed Management of the newly incorporated city of Buzztown, GA, a thriving communit

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site