Question: In Java: Write a program to compute the throughput and horsepower of water through a pipe. given the total head, pipe diameter, and water velocity.
In Java: Write a program to compute the throughput and horsepower of water through a pipe.
given the total head, pipe diameter, and water velocity.
Here are the formulas:
where
throughput per minute
pipe diameter
water velocity
horsepower
total head
Ask the user for the inputs to save time, you don't have to check for input errors
call ONE subprogram to compute BOTH throughput and horsepower, and then display the results.
The subprogram must return both throughput and horsepower,
so create a 'record' that combines the two into one unit.
For this homework, you are required to define a record
to return the results. You may NOT use some alternative
method.
by I mean pdsquared, or pd to the second power
By X I mean multiply.
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
