Design of energy

Please make a program to solve design problem. You can use a programming language you are comfortable with (python, C++, Java etc.) All and make a computer program to calculate the nominal diameter.

Question -1 For the system illustrated in example 1-1, specify the nominal size of clean commercial pipes required for a flow rate of 0.2 ft3/sec if the following are given

Da=Db=Dc,La=200ft,Lb=20ft,Lc=80ft,andH=75 ft

 

Question -2For the system illustrated in example 1-1, specify the nominal size of clean commercial pipes required for a flow rate of 0.2 ft3/sec if the following are given

Da=Db=Dc,La=200ft,Lb=20ft,Lc=320ft,H=75 ft