iagram designed in the image, code the class.      3. Write a test program to test the class you coded in 2. Must be in Java programing language    Please I need some assistance and have been struggling all day.

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter7: Using Methods
Section: Chapter Questions
Problem 20RQ
icon
Related questions
Question
   2. Following the UML diagram designed in the image, code the class. 
 
  3. Write a test program to test the class you coded in 2.
Must be in Java programing language 
 
Please I need some assistance and have been struggling all day. 
damConstruction
Hength: int
width: int
depth: int
fillingRate: double
-drainingRate: double
-damConstruction(length int, width. int, depth. int, fillingRate double, drainingRate: double)
+computeWater(): double
+compute Time(): double
+AddingWater()
+drainingWater()
Transcribed Image Text:damConstruction Hength: int width: int depth: int fillingRate: double -drainingRate: double -damConstruction(length int, width. int, depth. int, fillingRate double, drainingRate: double) +computeWater(): double +compute Time(): double +AddingWater() +drainingWater()
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Class
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,