Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.
image text in transcribed

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

Professional SQL Server 2000 Database Design

Authors: Louis Davidson

1st Edition

1861004761, 978-1861004765

More Books

Students also viewed these Databases questions

Question

Question What is a Roth 401(k) feature?

Answered: 1 week ago

Question

Question Can employees make contributions to a profit sharing plan?

Answered: 1 week ago