Lab Assignment 1 - Refresh Asignment
Lab Assignment 1 - Refresh Asignment
Attributes:
• id
• owner name
• house type
• area
a) Default constructor.
b) Normal constructor that set all data with values given through the
parameter.
c) Mutator/Setter method
d) Retriever method for each attribute.
e) Printer method using toString()defined method.
f) A processor method to calculate and return the tax amount. The tax of this
type of land depends on its area, and the type of the house built on the land
as shown in the following table:
------------------------------------------------------
Menu Selection
Your Option: XX
------------------------------------------------------
****Details explanation:
1-Sorting using Bubble Sort – Sort the list based on the tax price and display
the list
2.Sorting using Insertion Sort – Sort the list based on id and display the list
3.Searching using Binary Search-Search the item from the list based on id
and display the information detail.