NEED HELP !

Quarterly Property Tax and Annual Property Tax isn't converting into the right decimal value..

Here is what should be inputted by the user.

Assessed Value: 5.72
Property Value: 235000
Name of Person

Displayed should be

Property Value: 235000.00
Assessed Value: 141000.00
Taxable Value: 136000.00
Annual Property Tax: 7778.20
Quarterly Property Tax: 1944.80

What am I doing wrong !!


// To Compute the property tax payment in four equal quarterly payments

#include <iostream> // for I/O
#include <cmath> // for using pow function
#include <string> // used for string
#include <iomanip> // required header for strings
using namespace std;

int main()
{

double tax_Rate;
cout << "Enter the tax rate for each $100 of assessed value: ";
cin >> tax_Rate;

double property_Value;
cout << "Enter the actual value of the property: ";
cin >> property_Value;

string tax_Payer;
cout << "Enter the taxpayer's name: ";
cin.ignore();
getline(cin, tax_Payer);
cout << endl;


cout << "For taxpayer " << tax_Payer << " the tax information is: ";
cout << endl;





cout << setprecision(2) << fixed;
cout << left << setw(25) << "Property value: " << "$" << right << setw(10) << property_Value;
cout << endl;


double assessed_Value;
cout << setprecision(2) << fixed ;
assessed_Value = property_Value * 0.60;
cout << left << setw(25) << "Assessed value: " << "$" << right << setw(10) << assessed_Value;
cout << endl;



double tax_Value;
cout << setprecision(2) << fixed;
tax_Value = assessed_Value - 5000.00;
cout << left << setw(25) << "Taxable value: " << "$" << right << setw(10) << tax_Value;
cout << endl;



double annual_Tax;
cout << setprecision(2) << fixed ;
annual_Tax = tax_Rate * tax_Value;
cout << left << setw(25) << "Annual Property Tax: " << "$" << right << setw(10) << annual_Tax;
cout << endl;



double quarterly_Value;
cout << setprecision(2) << fixed ;
quarterly_Value = annual_Tax / 4.0;
cout << left << setw(25) << "Quarterly Property Tax: " << "$" << right << setw(10) << quarterly_Value;
cout << endl << endl;



return 0;
}
Enter the tax rate for each $100 of assessed value


It looks like they're supposed to pay $5.72 for each $100 of assessed value, but in this calculation, they're paying $5.72 for every $1 of assessed value.

annual_Tax = tax_Rate * tax_Value;
Topic archived. No new replies allowed.