Question: Code the Colebrook formula below in Java. Required: Calculate and print out the fanning friction factor f. When running the program, the user will need
Code the Colebrook formula below in Java.

Required: Calculate and print out the fanning friction factor "f".
When running the program, the user will need to enter:
Diameter, (D) in m.
Fluid Velocity,(V) in m/s
Fluid Density, (
) in kg/m3
Fluid Viscosity, (
) in Pa-s
Roughness Parameter, (
) in mm
Take note that Re is the Reynolds number and its formula is:

Given the units above, it should be unitless because Pa-s is equal to 
However, the unit of Roughness Parameter (
) is in mm and will be divided in the equation by the Diameter, D which is in m. So we need to convert millimeters into meters. 1000mm= 1m. So we just need to divide it by 1000. But of course the user will enter the roughness parameter in mm.
Given all the things above, the fanning friction factor f will be unitless too.
The final expanded formula is now this:

0.9 1 7 -4log 27 + D Re 11 Re Aad kg m - S 0.9 1 7 -4log .27 D(1000) + PDV
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
