128k views
2 votes
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. The property tax is then 72¢ for each $100 of the assessment value. The tax for the acre assessed at $6,000 will be $38.40. Write a function that accepts the actual value of a piece of property and displays the assessment value and property tax.

javascript

User Ild Flue
by
7.6k points

1 Answer

3 votes

Answer:

#include <stdio.h>

int main()

{

printf("Please enter the actual value: $"); //taking actual value from the user

float actualValue ;

scanf("%f",&actualValue);

float asseValue = 0.6*actualValue; //calculating the assessment value

printf("The assessment value is: $%.2f\\",asseValue); //printing the assessment value

float tax = 0.0072*asseValue; //calculating the tax

printf("The tax is: $%.2f\\",tax); //printing the tax

return 0;

}

Step-by-step explanation:

See function that accepts the actual value of a piece of property and displays the assessment value and property tax above.

User Thomas Vos
by
6.9k points