COIT11134Object Oriented Programming(T12017)
Assignment2
Duedate: FridayofWeek10 (May 19, 2017) 11:45 pm AEST
Weighting: 20%
Length: N/A
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
AssignmentTaskspecification
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 2should 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 saleswhich have been assigned/managed by a given/selectedemployee (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 offersand finalized status (finalized or not) in relevant text file(s).
In order to include these additional changes in the Java GUI application, you may needto 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, youmay need additional controls and you are encouraged to develop yourown 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.
Note: If you need to make suitable assumptions for the development of the above Java application, please provide them in the form of comments in the test driver file.
Assignmentsubmission
1. You havetosubmityourassignmentusingtheMoodleonlinesubmissionsystem.
2. Youhaveto submita zip file containing the text file(s) and all java source codefilesincluding the test driver file (any additional library/jar files used if any).
Assignment2Marking criteria
Item Description Maximum
marks
1 GUIdisplays (1)details of the latest-property sale offerafter reading (2) from the text file(s)without any compilation/ run time errors 3
2 Allows searching (1) and displaysthe details of finalizedproperty saleswhich have been assigned/managed by the given employee (1). Displays appropriate message when the above search criterion is not met (1) 3
3 GUI displays the control(s) for finalizing the sale offer 1
4 Performs property sale finalizing correctly(2) and calculates total commission receivable correctly (1)
3
5 Displaysthe details of all the property sales that have been finalized
2
6 GUI displays the controls for new property sale offer(1) and purchase offer data entry(1)
2
7 Performs input validation (1) and displaysall the details of a new property sale offer and purchase offer(s)(1) 2
8 Saves/appends the data into the relevant text files 2
9 Qualityofcode(additional classes, interfaces, generic methods/generic classes, best programming practice- comments, indentation, naming and readability) 2
10 Less late penalty (5% per calendar day)
Less Plagiarism
Total 20
Note: Iftheprogramdoesnotcompile/run,partialmarksmaybegivenappropriately based onthesubmitted-sourcecodes.