Section A: Problem Background
A local entrepreneur has investments in property and vehicles. Recently business has boomed and she needs object-oriented software to keep track of her
current and past assets. As an OOP expert, you are tasked to write a program
that keeps track of these assets. You are recommended to read through the
requirements of all sections before attempting any coding.
Section B: Basic Classes [30 marks]
• A House class with instance variables erfNumber, location, noOfRooms,
• Mandatory properties: status(is the asset owned or sold), number of
years owned, selling price, and buying price.
• At least two overloaded constructors that can be used to instatiate
• Getter and setter methods for all properties you have created.
• A method checkProfitOrLoss() that returns the profit or loss that can be
made if the property is sold (sellingPrice-buyingPrice).
• A custom toString() method to print out all the properties of a House
• A static counter to keep track of the number of each object created.
• At least 5 more property or vehicle classes such as Farm, Flat, Bakkie,
Faculty of Computing and Informatics, Department of Computer Science
OOP521S: Group Assignment
Section C: Driver Class [30 marks]
• A driver class named AssetManager.
• An array of five House objects. The same applies to other classes created
in Section B.
• Methods to add (remember to keep the sizes of the arrays in mind), sell
assets (sets the status of an asset at a given index of an array to sold), and
print the contents of each of the objects for each array. Each method to
have proper Javadoc comments.
• Code to enter from input five of each of the assets into respective arrays
using the add methods just created.
• Printing out the contents of all the arrays using the print methods you have
created to provide an initial asset report.
• Change the current value of at least 10 objects from the arrays using the
getter and setter methods.
• Print out the contents of the assets that can be sold at a profit using the
checkProfitOrLoss method and the methods you have provided an asset
Note that it is acceptable to change the requirements of this section and use
better alternatives. A few examples include using an arraylist instead of an array
or using functions to make code manageable rather thank writing lengthy code,
Section D: Advanced Requirements [40 marks]
Writing to a file is better that using volatile memory. Inheritance allows code
reuse, thus saving time. Exceptions are handy when dealing with issues that may
disrrupt normal program. Your creativity is expected to demonstrate deep understanding of OOP concepts you learned this semester. This can be achieved by
redesigning Sections B and C to solve the problem in Section A. Note that Section
B and C were given you to have a general understanding of what your program
solution should do. Your final solution should have at least a 3 level hierarchy
of inheritance, an abstract class, two interfaces, polymorphism, aggregation, and
composition, apart from writing to files and using exception handling. A UML
class diagram (10 marks) denoting your design will be required as well.
Hi I'm an expert. If you hire me, i won't let you down. I can provide you all these things with unlimited revisions till the satisfactorily completion of [login to view URL] you
15 freelancere byder i gennemsnit $33 på dette job
Hi. I have understood the requirements of your OOP project andready to work on it. I will provide complete code with comments, along with the class diagram. Let's chat.
Hello dear I have rich experience on java and I am sure that I can do this job properly. I can stasrt work right now and I will finish within very short time Best Regard.
I'm a full stack Software Developer, I aspire to be a valuable resource in an esteemed organization and help develop software that is going to meet individual client needs