Question: Create a Visual Basic function that calculates the Darcy - Weisbach friction factor using the Churchill equation. Call the function ffactor ( Re , rr
Create a Visual Basic function that calculates the DarcyWeisbach friction
factor using the Churchill equation. Call the function ffactorRerr
where
Re Reynolds number
rr the relative roughness.
Do not turn your code into an addin that works only on your machine.
The friction factor function must be part of the workbooks you submit. To do so
Click on Developer tab Click on Visual Basic Click on Insert tab Click on Module
Type your code into the module. The code should look something like
Function ffactorRerr A
B
ffactor
End Function
Save the workbook as a type "Excel MacroEnabled Workbook". Use this workbook as the starter on su
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
