n a UML diagram to represent class called damConstruction, to implement the properties of a water dam construction. Your class should have the instance variables to store the length (in meters), width (in meters), depth (in meters), the rate (in litters per minute) at which the water is filling the dam, and the rate (in litters per minute) at which the water is draining from the dam. Add appropriate constructors to initialize the instance variables. Also add member functions to do the following: determine the amount of water needed to fill an empty or partially filled dam; determine the time needed to completely or partially fill or empty the dam; add or drain water for a specific amount of time. 2. Following the UML diagrams you designed in 1., code the class. 3. Write a test program to test the class you coded in 2. Please help me with number 2 I'm struggling to awnser number 2. Must be in Java programming language
1. Design a UML diagram to represent class called damConstruction, to implement the properties of a water dam construction. Your class should have the instance variables to store the length (in meters), width (in meters), depth (in meters), the rate (in litters per minute) at which the water is filling the dam, and the rate (in litters per minute) at which the water is draining from the dam. Add appropriate constructors to initialize the instance variables. Also add member functions to do the following: determine the amount of water needed to fill an empty or partially filled dam; determine the time needed to completely or partially fill or empty the dam; add or drain water for a specific amount of time.
2. Following the UML diagrams you designed in 1., code the class.
3. Write a test program to test the class you coded in 2.
Please help me with number 2 I'm struggling to awnser number 2. Must be in Java
Step by step
Solved in 2 steps with 1 images