Question: o + = Insert Table Chart Text Shape Media Comment CMSC 2 0 3 Assignment # 4 Assignment Description A property management company manages ind
Insert
Table
Chart
Text
Shape
Media
Comment
CMSC
Assignment #
Assignment Description
A property management company manages ind vidual properties they will build to rent, and charges them a management fee as the percentages of the monthly rental amount. The properties cannot overlap each other, and each property must be within the limits of the management company's plot. Write an application that lets the user create a management company and add the properties managed by the company to its list. Assume the maximum number of properties handled by the company is
Concepts covered by this assignment
Aggregation
Passing object to method
Array Structure
Objects as elements of the Array
Processing array elements
Copy Constructor
Iunit testing
Classes
Data Element class Plot
You must create this class based on the given Plot Javadoc. You may add additional attributes and or methods to include in this class.
The class Plot will contain:
Attributes:
Instance variables to represent the x and y coordinates of the upper left corner of the location, and depth and width to represent the vertical and horizontal extents of the plot.
Methods:
Constructors
GetterSetter methods
A method named overlaps that takes a Plot instance and determines if it is overlapped by the current plot.
A method encompasses that takes a Plot instance and determines if the current plot contains it Note that the determination should be inclusive, in other words, if an edge lies on the edge of the current plot, this is acceptable.
A toString method to represent a Plot instance. A plot should be represented in the following format:
width
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
