Write a complete UML class diagram for the class described below. Use a line of minus signs to separate sections. Don't worry about drawing a box or centering any text. Do include all proper UML notation. Your need to create an instantiable class that represents a water tank to be placed on top of tall buildings to improve water pressure. This class should be named Tank. It will contain three fields: a string named model and a height and diameter, both measured in feet, each of which can accept numbers with decimal points. A building management company wants to know the volume of water that each model of tank can hold. The class needs one constructor that sets the values of all the fields. The class needs the following public methods: • Getters and setters for all fields. A method called getVolume that calculates and returns the volume of the tank. (Volume of a cylindrical tank is calculated as pi x height x diameter² / 4. Pi is defined in Java as Math.PI.) • Standard methods: toString, equals, and hashCode where equals and hashCode define two equivalent tanks as each having the same model and volume. Implementation of the Comparable interface, comparing volume. • Create a new project in IntelliJ and write the complete code for the class described in your UML class diagram above. Your code must follow the course style guide, including all required JavaDoc comments. In the same IntelliJ project as the previous question, create a JUnit test file for your class. It is your job to determine what makes sense to test and what values to use in order to thoroughly test the class's methods.
Write a complete UML class diagram for the class described below. Use a line of minus signs to separate sections. Don't worry about drawing a box or centering any text. Do include all proper UML notation. Your need to create an instantiable class that represents a water tank to be placed on top of tall buildings to improve water pressure. This class should be named Tank. It will contain three fields: a string named model and a height and diameter, both measured in feet, each of which can accept numbers with decimal points. A building management company wants to know the volume of water that each model of tank can hold. The class needs one constructor that sets the values of all the fields. The class needs the following public methods: • Getters and setters for all fields. A method called getVolume that calculates and returns the volume of the tank. (Volume of a cylindrical tank is calculated as pi x height x diameter² / 4. Pi is defined in Java as Math.PI.) • Standard methods: toString, equals, and hashCode where equals and hashCode define two equivalent tanks as each having the same model and volume. Implementation of the Comparable interface, comparing volume. • Create a new project in IntelliJ and write the complete code for the class described in your UML class diagram above. Your code must follow the course style guide, including all required JavaDoc comments. In the same IntelliJ project as the previous question, create a JUnit test file for your class. It is your job to determine what makes sense to test and what values to use in order to thoroughly test the class's methods.
Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
Related questions
Question
Hi,
Please assist with the attached problem. Thanks.
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 5 steps with 5 images
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY