Q.1 For this question, 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. For the exam, you can do this in NotePad or another plain text editor and then copy and paste it into the Canvas textbox or work directly in the textbox. Class Description: Your need to create an instantiable class that represents a parcel of raw land that can be sold by a real estate company. This class should be named Land. It will contain three fields: a string named location and a width and length, measured in feet, each of which can accept numbers with decimal points. You may assume that every parcel of land is rectangular and that 'width' describes the size of the property along the road and 'length' is how far back it goes from the road. The class needs one constructor that sets the values all the fields. The class needs the following public methods: • Getters and setters for all fields. • A method called getArea that calculates and returns the area of the parcel of land in square feet. (Area is calculated as length x width.) • Standard methods: toString, equals, and hashCode where equals and hashCode define two equivalent parcels of land as each having the same length and each having the same width. Implementation of the Comparable interface, comparing area. • Q.2 & Q.3 Using the same information as in the previous question, create a new Intellij project and create the Land class with all the fields, constructors, and methods listed. Then create a JUnit test file for this 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. In the class code, be sure to include all proper JavaDoc comments. You do not need to comment the JUnit tests, but please do delete any tests that you are not using. For the exam, you will be asked to upload the java file for your class in Q.2 and the java file for your JUnit test in Q.3. Make sure you can locate both these files before the actual exam.
Q.1 For this question, 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. For the exam, you can do this in NotePad or another plain text editor and then copy and paste it into the Canvas textbox or work directly in the textbox. Class Description: Your need to create an instantiable class that represents a parcel of raw land that can be sold by a real estate company. This class should be named Land. It will contain three fields: a string named location and a width and length, measured in feet, each of which can accept numbers with decimal points. You may assume that every parcel of land is rectangular and that 'width' describes the size of the property along the road and 'length' is how far back it goes from the road. The class needs one constructor that sets the values all the fields. The class needs the following public methods: • Getters and setters for all fields. • A method called getArea that calculates and returns the area of the parcel of land in square feet. (Area is calculated as length x width.) • Standard methods: toString, equals, and hashCode where equals and hashCode define two equivalent parcels of land as each having the same length and each having the same width. Implementation of the Comparable interface, comparing area. • Q.2 & Q.3 Using the same information as in the previous question, create a new Intellij project and create the Land class with all the fields, constructors, and methods listed. Then create a JUnit test file for this 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. In the class code, be sure to include all proper JavaDoc comments. You do not need to comment the JUnit tests, but please do delete any tests that you are not using. For the exam, you will be asked to upload the java file for your class in Q.2 and the java file for your JUnit test in Q.3. Make sure you can locate both these files before the actual exam.
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
Hello,
Please assist with the attached Java problem
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 3 steps
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