Objectives
• Develop a
Java GUI application using layout managers
• Develop an application that uses two or more classes
• Read and/or write from/to text files
• Use search algorithms and/or sort algorithms
• Use ArrayList or LinkedList or any other data structure
General
In your assignment 2, you can continue to develop the Java GUI application that you have created in your assignment 1. If you would like to modify the codes that you have submitted in your assignment 1, you are free to do so. You can adopt any layout
patterns that are suitable for the requirements of the application in your assignment 2.
Assignment Task specification
CQRE has requested you to help them finalize the property sale deal based on the following rules:
1. Identify the purchase offer that has the highest offered amount for a property sale offer.
2. The identified highest offered amount should be at least 90% of the seeking price of the sale offer.
3. In case of matching amount of purchase offers, the decision is up to the seller.
4. Purchase offers are not allowed after a property sale is finalized.
CQRE also wants to view the commission amount receivable for each of the property sale that has been finalized. Hence, you need to store the relevant details in text file(s) and also to provide appropriate searching facilities to display the details of finalized property sale(s) which have been assigned/managed by the given employee.
Hence in addition to the requirements of the assignment 1, the software application that you will develop in assignment 2 should perform all of the following:
1. When the application is started, it should read the details of the property sale offers from the existing text file(s) and display the latest property sale offer.
2. The application should provide control(s) to finalize the property sales.
3. The application should provide details of all finalized property sales including the commission amount receivable.
4. The application should provide necessary controls to search and display the details of finalized property sales which have been assigned/managed by a given/selected employee (details to be obtained from/ selected by the user). If the search criterion is not met then an appropriate message has to be displayed.
5. The application should have the facility to append/save the details of new property sale offers and respective purchase offers and finalized status (finalized or not) in relevant text file(s).
In order to include these additional changes in the Java GUI application, you may need to do any or all of the following:
• develop additional Java classes
• extend the existing Java classes that you have developed for your assignment 1
• implement newly created interface(s)
For the assignment 2, you may need additional controls and you are encouraged to develop your own GUI layout. Please note that you can create the required text file(s) through your application program for storing the data initially. During the subsequent run the same file(s) can be used by your application appropriately.