Esempio n. 1
0
//REPORTS THE TAX OWED FOR COMMERCIAL PROPERTY
void Commercial::reportTax()
{
	double owed = calcTax();
	cout << "Taxes due for the property at: " << address << endl;
	cout << "   Property ID: " << id << endl;
	cout << "   This property has an estimated value of: $" << value << endl;
	cout << "   Taxes due on this property are: $" << owed << endl << endl;
}
Esempio n. 2
0
/*uses calcInterest and calcTax to calculate the interest and tax, and update the account balances*/
void updateAccounts(struct account accounts[], int num)
{
	int i;

	for (i = 0; i < num; i++)
	{
		accounts[i].interest = calcInterest(accounts[i].balance);
		accounts[i].tax = calcTax(accounts[i].interest);
		accounts[i].balance += (accounts[i].interest - accounts[i].tax);
	}
}