In: Computer Science
Design a pseudocode design to process a property tax report. A different tax amount is charge based on whether the property is a home or commercial property. If the home is owned, is it a residence or noresidence, the how much is it worth? If the property is commercial is a commercial building or commercial land, then how much is it worth? Process the problem for any number of input records. A zero(0) is entered for the property type after the last input is entered.
Check only one condition in each decision statement. (You can not use the AND condition with the IF statement.)
Input consists of:
Property type (1 or 2) 1 = Home
2 = Commercial
Property owner name
Home type ( 0 or 1) 0 – Non residence
1 – Residence
Assessed Value
Commercial property type
0 – Commercial Land
1 – Commercial Building
Outout consists of:
Property owner name
Assessed value
Tax rate
Property type (tax rate * assessed value)
Total line output:
Average assessed value of buildings
Average assessed value of land
Total number of buildings worth over $200,000
Total number of home worth under $150,000
The Property Tax is determined in the following manner:
If the property is a home, is used as the residence of the owner, and the assessed value is greater than $150,000, the tax rate is 2%
If the property is a home, is used as the residence of the owner, and the assessed value is equal to or less than $150,000, the tax rate is 1.4%
If the property is a home, is not the primary residence of the owner, and the assessed value is greater than $95,000, the tax rate is 2%
If the property is a home, is not the primary residence of the owner, and the assessed value is less than or equal to $95,000, the tax rate is 1.4%
If the property is commercial, is a building, and the value is greater than $200,000, the tax rate is 2.5%
If the property is commercial, is a building, and the value is less than or equal to $200,000, the tax rate is 2%
If the property is commercial, is land, and the value is greater than $60,000, the tax rate is 2.5%
If the property is commercial, is land, and the value is equal to or less than $60,000, the tax rate is 2%
Pseudo code:
Begin
Declare variable choice1 for property_type selection
Declare variable property owner name.
Declare variable choice2 for home type selection.
Declare variable value for Assessed value.
Declare variable value for Tax rate.
Declare variable choice3 for commercial property type selection.
Prompt for the property type.
Input choice1.
Prompt for the owner name.
Input owner name.
If choice1==1
Declare property_type=Home.
Prompt for the choice of home type.
Input choice2.
If choice2==0
Declare residence type=Non Residence.
Prompt for the Assessed value.
Input Assessed value.
If(residence type= Non Residence AND Assessed value >$95,000)
Tax rate=2%.
Value1= Tax rate* Assessed value
Print Owner name
Print Assessed value
Print Tax Rate
Print residence type
Print value1
End if
If(residence type= Non Residence AND Assessed value =<$95,000)
Tax rate=1.4%.
Value1= Tax rate* Assessed value
Print Owner name
Print Assessed value
Print Tax Rate
Print residence type
Print value1
End if
Else if(choice2==1)
Declare residence type= Residence.
Prompt for the Assessed value.
Input Assessed value.
If(residence type= Residence AND Assessed value >$150,000)
Tax rate=2%.
Value2= Tax rate* Assessed value
Print Owner name
Print Assessed value
Print Tax Rate
Print residence type
Print value2
Print Owner name
Print Assessed value
Print Tax Rate
Print residence type
Print value2
End if
If(residence type= Residence AND Assessed value =<$150,000)
Tax rate=1.4%.
Value2= Tax rate* Assessed value
Print Owner name
Print Assessed value
Print Tax Rate
Print residence type
Print value2
End if
Total = value1 +value2
If(property type= Residence || Non Residence and Total<1500,000)
Print Total Home worth: Total
End if choic1
End if //choice2
Else if(choice1==2)
Prompt for the choice of commercial property type.
Input choice3.
If choice3==0
Declare commercial property type= commercial land.
Prompt for the Assessed value.
Input Assessed value.
If(commercial property type= commercial land AND Assessed value >$60,000)
Tax rate=2.5%.
Value1= Tax rate* Assessed value
Print Owner name
Print Assessed value
Print Tax Rate
Print commercial property type
Print value1
End if
If(commercial property type= commercial land AND Assessed value =<$60,000)
Tax rate=2%.
Value1= Tax rate* Assessed value
Print Owner name
Print Assessed value
Print Tax Rate
Print commercial property type
Print value2
End if
Average=value1+value2/2
Print Average Assessed value of land: average
Else if(choice3==1)
Declare commercial property type= commercial building.
Prompt for the Assessed value.
Input Assessed value.
If(commercial property type= commercial building AND Assessed value >$200,000)
Tax rate=2.5%.
Value1= Tax rate* Assessed value
Print Owner name
Print Assessed value
Print Tax Rate
Print commercial property type
Print value2
End if
Average=value1+value2/2
Print Average Assessed value of buildings: average
If(commercial property type= commercial building AND Assessed value =<$200,000)
Tax rate=2%.
Value2= Tax rate* Assessed value
Print Owner name
Print Assessed value
Print Tax Rate
Print commercial property type
Print value2
End if
End if
Total = value1 +value2
If(commercial property type= commercial building and Total>200,000)
Print Total building worth: Total
End if choice1
End