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 Plagiarism free Answers for your college/ university Assignments.
- CH2123 Assignnment : Fugacity, VLE Modeling & Henry’s Law Applications
- BAFI1045 Assignment -Constructing and Evaluating Passive and Active Portfolios Based on the Straits Times Index (STI)
- PSB501EN Assignment 1: Engineering Systems Integration: A Multi-Technique Approach to Mechanical Analysis
- FIN2210E/FIN2212E Group Assignment: Financial Risk Management Analysis of Bursa Malaysia Companies
- FLM101 Assignment: A Cinematic Dissection: Stylistic Elements and Their Thematic Significance
- Assignment: Transforming Talent in the AI Era: From War to Wealth through Ecosystem Innovation
- COMP 1105 Assignment: Health-Focused E-Commerce Website: A Web Technologies Project Using HTML5, CSS, and JavaScript
- Assignment: Machine Learning in Robo-Advisory Services: Evolution, Applications, and Future Trends
- OMGT2229 Assignment: Quantitative Forecasting, Economic Order Analysis, and Strategic Sourcing Decision-Making for JB Hi-Fi
- Assignment 2: Corporate Finance and Planning: An In-Depth Financial Analysis of Company