# Project: fluid flow | Computer Science homework help

·         The use of standard Java input and output mechanisms

·         The use of complex arithmetic expressions

·         The use of modular design (methods)

·         The use of one-dimensional arrays

As always, be sure to properly document your code. Consult the Java Coding Guidelines document for proper coding standards. Use good design principles and design the solution before attempting to write code.

Emptying a Water Tank

Water catchment systems are a critical source of water in many parts of the world. These systems collect rainwater and distribute it to a house, lodging, or neighborhood using a series of gravity-propelled plumbing. Such systems can also act as a reservoir by which local populations can “fill up” containers and transport the water to other locations.

 Assume we have a full water catchment tank, shaped like a radius cylinder. How long would it take to empty that cylinder, if we  “unscrewed”  an  output  nozzle  on  the  bottom? Determining the rate at which the cylinder would empty out would require knowledge of the height of the tank, the radius height of the tank, and the radius of the output nozzle. Once we had this knowledge, we could apply a few simple math equations to get an approximate answer. This information would be helpful to measure the amount of water that would be used for various household uses (e.g. showers). Exercise #1: Create a Java class calledWaterTank.java. This program will simulate thedraining of a cylindrical water catchment tank. Your program will need to show how the rate at which water would exit the tank, assuming an output nozzle two inches (2”) in diameter. Your inputs are as follows:

 Variable Meaning Valid Range height_of_tank The height of the cylindrical tank, in inches [72-240] radius_of_tank The radius of the cylindrical tank, in inches [2-36]

Submit your .java file. Be sure to use coding guidelines: no longer than 80 column width, comment each line above or next to each statement ending in a semicolon, use javadoc comments where necessary