Write a program (propertyTax.java) to the following specification:
The local property tax is about to be collected by the government. You are to program an alternative way of calculating the property tax.
A user is asked for the following information about their home:
Number of bedrooms·
Is it urban or rural?·
Is it terraced, semi-detached, or detached?·
Use the method specifications overleaf to develop the methods calculateSize and calculatePropertyTax.
Use the methods to calculate the property tax for a user and then display the value to the user.
Method name - calculateSize
Description - This method determines roughly how big the house might be.
It uses the following formula:
Initial size of the house is set as follows:
Terraced: 800 square feet
Semi-detached: 900 square feet
Detached: 1,000 square feet
Each bedroom adds 100 square feet.
E.g. Semi-detached house with 3 bedrooms = 900 + (3 x 100) = 1,200
Returns The estimated square footage
Parameters accepted:
1. Number of bedrooms
2. House type (i.e. Is it terraced, semi-detached or detached)
See the following for calculatePropertyTax:
Method name - calculatePropertyTax
Description - This method calculates the property tax as follows:
The tax is initially calculated as 15% of the square footage.
If the house is urban, the tax is multiplied by 1.25
Example:
Estimated square footage of 1,200 square feet.
Urban: 1,200 x 15% = 180
Urban, so multiply by 1.25... 180 x 1.25 = 225
Returns - The property tax amount
Parameters accepted:
1. Estimated square footage
2. Value indicating if house is urban or rural
The system must accept multiple properties, and give the Highest, Lowest, Average, and Total Property Tax Information.