| University | Singapore Polytechnic (SP) |
| Subject | Data Structure |
In this assignment, you will design various classes and write a program for calculating how much a property agent might earn in a year through selling properties.
a. Create a Property class with an address, 6 digit postal code number, tenure, completion year, property type, area, commission rate and valuation. Add appropriate constructors and member functions to initialize, access, and manipulate the data members. Commission rate is default to 1%.
b. Design the class CommercialProperty, that extends from the class Property, with an additional data member to store the commercial property type (for office, flatted factory, factory). Add appropriate constructors and member functions to initialize, access, and manipulate the data members.
c. Create a PropertyAgent class that holds 2 list of properties. One list of properties held are the ones that the property agent has not sold, while another list of properties holds the properties sold by the agent during the year. The PropertyAgent would also have data members commission sharing rate default to 70%, the company he worked for, his/her agent registration number and the year the agent began working.
d. Design the class PropertyAgencyDirector that extends from the PropertyAgent class with an additional data member default to 5% to a maximum of 15% of the commission earned by the agent and a list of agents working under him/her. The commission sharing rate is now default to 75% and is at maximum 90% of commissions earned.
e. Design the class CommissionSlip to calculate and display an agent’s commission earned for the year based on the properties sold (based on the commission rate) multiplied by the commission sharing rate. Eg. If the agent sold a property worth $1 million with commission rate of 1% and his sharing rate is 70%, the commission earned will be $1,000,000 * 0.01 * 0.7 = $7,000. If the agent is a Property Agent Director, then he/she will have overriding commission of his/her agents at the rate. The commission slip shall therefore show the breakdown of commissions earned per property, the commission sharing for each property, the total commission earned for the property agent. If the agent is a directory, there will be the breakdown of the overriding income for each agent and the total overriding income earned as well as the total income earned.
f. Write a program to create at least 2 different directors with at least 3 different agents each. Each agent shall hold at least 5 properties that are unsold and 3 to 10 properties sold per agent. Print the commission slip for each agent and director.
Stuck with a lot of homework assignments and feeling stressed ? Take professional academic assistance & Get 100% Plagiarism free papers
Looking for urgent assignment help in Singapore? Hire an assignment helper for your Data Structure assignment solution. We're here to provide top-notch assignment writing services. With 5000+ assignments delivered for Singaporean students, trust us for reliable assistance. Contact us now!
Looking for Plagiarism free Answers for your college/ university Assignments.
- ACFI 2070 Business Finance Individual Assignment Problem Set – The University of Newcastle (UoN)
- ACCT111 Financial Accounting Individual Assignment, Singapore Management University (SMU)
- RM71003 Category Management & Merchandising Assignment 1 – Singapore Management University (SMU)
- PY2107 Experimental Investigation and Analysis of Behaviour Assignment 2 Written – Research Report , James Cook University (JCU)
- Visual Arts Management Assignment 2 Essay – Singapore Art Science Museum
- BM1987 Employment Law In-Course Assessment (ICA 1) Guide , Nanyang Polytechnic (NYP)
- MKT6053 Digital Enterprise Level 6 Coursework Assessment – Birmingham City University (BCU)
- MA3005/MA3705 Control Theory Coursework 2025-26, Nanyang Technological University (NTU)
- MA7131 Finite Element Method Individual Assignment 2 Semester 1, AY2025/2026 – Nanyang Technological University
- FIN543 Management of Wealth Management Business ECA July 2025 – Singapore University of Social Sciences (SUSS)
