A county collects property taxes on the assessment value of property, which is 6
ID: 3681640 • Letter: A
Question
A county collects property taxes on the assessment value of property, which is 60 percent of the property’s actual
value. For example, if an acre of land is valued at $10,000, its assessment value is $6,000. ($10,000 * .60). The
property tax rate varies based on the result of the assessment value of the property. Here is a chart to show the
appropriate property tax rate based upon the assessment value:
Assessesment Value Property Tax Rate
Greater than $10,000 . .75
Between $7,500 and $10,000 .70
Between $5,000 and $7,499. .68
Below $5,000 . .64
Design the logic for a program that asks the user to enter the actual value of a piece of property and calculates and
displays the assessment value, the property tax rate, and property tax, and message. The program MUST include
the following FUNCTIONS for use in the program:
calcAssessmentValue – this function should accept the value of the actual value of the property as an argument and
calculate and return the assessment value and assign it to an appropriately declare local variable in main.
determineTaxRate – this function should accept the value of the assessment value as an argument and return the
appropriate property tax rate based upon the table provided above and assign it to an appropriately declared local
variable in main.
calcPropertyTax – this function should accept the value of the assessment value and the property tax rate as
arguments and calculates and returns the property tax and assign it to an appropriately declared local variable in
main.
displayMessage – this function should accept the value of the property tax and return the appropriate message
based upon the table provided below and display the message in the main module:
Property Value Message
Greater than $5,000 > That is a high property tax
Between $2,500 and $4,999.99 > That is an average property tax
Between $1,000 and $2499.99 >That is a moderate property tax
Below $1,000 > That is a low property tax
Using a Word Processing program (e.g. Microsoft Word) complete the following items related to problem
statement provided above (Do NOT use Visual Logic):
1. Design IPO charts for the calcAssessmentValue, determineTaxRate, calcPropertyTax, and displayMessage
functions as described above. See the section entitled Using IPO Charts on pages 239240 of the textbook
for assistance.
2. Write the pseudocode for the main module, calcAssessment function, determineTaxRate function,
calcPropertyTax function, and displayMessage function.
Explanation / Answer
#include<iostream.h>
#include<conio.h>
#include<string.h>
double calcAssessmentValue(double propval)
{
double assval=propval*60/100;
return assval;
}
double determineTaxRate(double asval)
{
double rate;
if(asval>10000)
rate=.75;
else if(asval>=7500 && asval<=10000)
rate=.70;
else if(asval>=5000 && asval<=7499)
rate=.68;
else if(asval<5000)
rate=.64;
return rate;
}
double calcPropertyTax(double asval, double ra)
{
double prot=asval*ra;
return prot;
}
char* displayMessage(double pt)
{
char s[50];
if(pt>5000)
strcpy(s,"That is a high property tax ");
else if(pt>=2500 && pt<=4999.99)
strcpy(s,"That is an average property tax");
else if(pt>=1000 && pt<=2999.99)
strcpy(s,"That is a moderate property tax");
else
strcpy(s,"That is a low property tax");
return s;
}
void main()
{
char msg[50];
double pval,r,pt;
cout<<"Enter Property value";
cin>>pval;
double asval=calcAssessmentValue(pval);
r=determineTaxRate(asval);
pt=calcPropertyTax(asval,r);
strcpy(msg,displayMessage(pt));
cout<<msg;
getch();
}
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.