An estate agency sells and rents out properties. Each property listed at the company has a property code and is assigned to an estate agent. The property code consists of 10 digits e.g. 1312122019. The first digit indicates whether the property is for sale (1) or available for renting (2). The second digit indicates whether it is a business property (> 2) or a residential property (= 2). Properties that are for sale has a selling price while properties to be rented out has a rent amount (per month) and a value that indicates the duration of the contract (in number of months). Example data: Properties for sale Agent Selling price 550000.00 Code 1312122019 Matt 1243022019 Lizzy 670000.00 Properties for rent Agent Code Rent pm Duration 2343052019 Julia 9500.00 12 2871112019 Dave 11000.00 6. The estate agency requires an application to do the following: • Calculate the total amount to be paid by either the buyer or the tenant. For properties that are for sale a tax amount is added to the selling price. The tax is calculated as follows: Less than R500000.00: no tax R500000.00 - R1000000.00: 10% of selling price More than R1000000.00: 15% of selling price If the property is rented out the total amount that the tenant has to pay is calculated by multiplying the monthly rent amount with the number of months that the property is to be rented. Calculate the commission earned. For properties sold the commission is calculated as a percentage of the total amount paid (including tax). The percentage eamed as commission must be received as a parameter value. If the property is rented out the commission is calculated as a percentage (received as parameter) of monthly rent. If it is a business pronerty a value of 25 je added to the narcentage received ae narameter

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

Code using java programming language.

Question
An estate agency sells and rents out properties. Each property listed at the company has a property code and is assigned
to an estate agent. The property code consists of 10 digits e.g. 1312122019. The first digit indicates whether the
property is for sale (1) or available for renting (2). The second digit indicates whether it is a business property (> 2)
or a residential property (= 2). Properties that are for sale has a selling price while properties to be rented out has a
rent amount (per month) and a value that indicates the duration of the contract (in number of months).
Example data:
Properties for sale
Code
Agent Selling price
1312122019
Matt
550000.00
1243022019
Lizzy
670000.00
Properties for rent
Code
Agent
Rent pm
Duration
2343052019
Julia
9500.00
12
2871112019
Dave
11000.00
6
The estate agency requires an application to do the following: • Calculate the total amount to be paid by either the
buyer or the tenant. For properties that are for sale a tax amount is added to the selling price. The tax is calculated as
follows: Less than R500000.00: no tax R500000.00 - R1000000.00: 10% of selling price More than R1000000.00:
15% of selling price If the property is rented out the total amount that the tenant has to pay is calculated by multiplying
the monthly rent amount with the number of months that the property is to be rented.
Calculate the commission eamed. For properties sold the commission is calculated as a percentage of the total amount
paid (including tax). The percentage eamed as commission must be received as a parameter value. If the property is
rented out the commission is calculated as a percentage (received as parameter) of monthly rent. If it is a business
property a value of 2.5 is added to the percentage received as parameter.
Transcribed Image Text:Question An estate agency sells and rents out properties. Each property listed at the company has a property code and is assigned to an estate agent. The property code consists of 10 digits e.g. 1312122019. The first digit indicates whether the property is for sale (1) or available for renting (2). The second digit indicates whether it is a business property (> 2) or a residential property (= 2). Properties that are for sale has a selling price while properties to be rented out has a rent amount (per month) and a value that indicates the duration of the contract (in number of months). Example data: Properties for sale Code Agent Selling price 1312122019 Matt 550000.00 1243022019 Lizzy 670000.00 Properties for rent Code Agent Rent pm Duration 2343052019 Julia 9500.00 12 2871112019 Dave 11000.00 6 The estate agency requires an application to do the following: • Calculate the total amount to be paid by either the buyer or the tenant. For properties that are for sale a tax amount is added to the selling price. The tax is calculated as follows: Less than R500000.00: no tax R500000.00 - R1000000.00: 10% of selling price More than R1000000.00: 15% of selling price If the property is rented out the total amount that the tenant has to pay is calculated by multiplying the monthly rent amount with the number of months that the property is to be rented. Calculate the commission eamed. For properties sold the commission is calculated as a percentage of the total amount paid (including tax). The percentage eamed as commission must be received as a parameter value. If the property is rented out the commission is calculated as a percentage (received as parameter) of monthly rent. If it is a business property a value of 2.5 is added to the percentage received as parameter.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY