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:
gpm=2.448x(pd???2)xv
hp=gpmxh
where
gpm= throughput (gallons per minute)
pd= pipe diameter (in)
v= water velocity (ftsec)
hp= horsepower
h= total head (ft)
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 pd???2, I mean pd-squared, or pd to the second power
By X, I mean multiply.
 In Java: Write a program to compute the throughput and horsepower

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!