Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.

image text in transcribed

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, (image text in transcribed) in kg/m3

Fluid Viscosity, (image text in transcribed) in Pa-s

Roughness Parameter, (image text in transcribed) in mm

Take note that Re is the Reynolds number and its formula is:

image text in transcribed

Given the units above, it should be unitless because Pa-s is equal to image text in transcribed

However, the unit of Roughness Parameter (image text in transcribed) 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:

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Graph Database Modeling With Neo4j

Authors: Ajit Singh

2nd Edition

B0BDWT2XLR, 979-8351798783

More Books

Students also viewed these Databases questions