This program will calculate annual property tax
#include <iostream>
using namespace std;
int main ()
{
//declaration
of variables
double const
tax_rate = 2.64;
double amount,
payable, taxable_amt, payable_tax;
const int rating =
100;
cout<<"Enter the actual value of a piece of
land\n";
//prompts th user
cout<<endl;
cin>>amount;
cout<<"Actual value of the property
is:"<<"$"<<amount; //displays actual
property price
cout<<endl<<endl;
//computation of
taxable amount
taxable_amt = 0.6
* amount;
cout<<"taxable amount is :" <<"$"
<<taxable_amt;
//displays taxable amount
cout<<endl;
cout<<endl;
//computes annual
property tax
payable =
taxable_amt/rating;
payable_tax =
payable * tax_rate;
cout<<
"Annual property tax is
:"<<"$"<<payable_tax; //displays annual property
tax
cout<<endl;
cout<<endl;
system("pause");
return
0;
} //ends main
Comments