1. A 500-liter tank initially contains 10 g of salt dissolved in 200 liters of water. Starting at t = 0, water that contains 1/4 g of salt per liter is poured into the tank at the rate of 4 liters/min and the mixture is drained from the tank at the rate of 2 liters/min. Determine the quantity Q(t) of salt in the tank at time t=0 until the time when the tank overflows. Code a C program which determined this quantity Q(t) by using RK4 method with h = 1. Note: May use the concept of function prototypes, function definition, function call, recursion etc., in a program.

icon
Related questions
Question
1. A 500-liter tank initially contains 10 g of salt dissolved in 200 liters of water. Starting at to = 0,
water that contains 1/4 g of salt per liter is poured into the tank at the rate of 4 liters/min and
the mixture is drained from the tank at the rate of 2 liters/min.
Determine the quantity Q(t) of salt in the tank at time t = 0 until the time when the tank
overflows. Code a C program which determined this quantity Q(t) by using RK4 method with
h = 1.
Note: May use the concept of function prototypes, function definition, function call, recursion
etc. in a program.
2. A team of surveyors conducted depth-sounding at equidistant locations across the river to
measure the area of a river cross-section. Determine the area of the cross-section by coding a C
program of the Composite Simpson Rule, taking into consideration the river's 6.0 m width and
the fact that it is equally divided into 7 stations.
Station Depth, m
0
1
-1.23
24555
3
6
7
-2.08
-2.57
-1.86
-0.65
-0.24
Note: Determine the area using the Composite Simpson Rule by coding a C program of it.
Transcribed Image Text:1. A 500-liter tank initially contains 10 g of salt dissolved in 200 liters of water. Starting at to = 0, water that contains 1/4 g of salt per liter is poured into the tank at the rate of 4 liters/min and the mixture is drained from the tank at the rate of 2 liters/min. Determine the quantity Q(t) of salt in the tank at time t = 0 until the time when the tank overflows. Code a C program which determined this quantity Q(t) by using RK4 method with h = 1. Note: May use the concept of function prototypes, function definition, function call, recursion etc. in a program. 2. A team of surveyors conducted depth-sounding at equidistant locations across the river to measure the area of a river cross-section. Determine the area of the cross-section by coding a C program of the Composite Simpson Rule, taking into consideration the river's 6.0 m width and the fact that it is equally divided into 7 stations. Station Depth, m 0 1 -1.23 24555 3 6 7 -2.08 -2.57 -1.86 -0.65 -0.24 Note: Determine the area using the Composite Simpson Rule by coding a C program of it.
Expert Solution
steps

Step by step

Solved in 4 steps with 2 images

Blurred answer