Write a program that will determine the additional state tax owed by an employee.
If the state charges a 4% tax on net income determine net income by subtracting a \$ 500 allowance for each dependent from gross income. Your program will read gross income number of dependent and tax amount already deducted. It will then compute the actual tax owed and print the difference between tax owed and tax deducted follow by the message. "send check" or "refund" depending on whether this difference is positive or negative.

Tnx..

2
Contributors
3
Replies
4
Views
7 Years
Discussion Span
Last Post by 0pawix

Where are your efforts ? :) First post what ever you have tried so far for this problem then we will help to correct that.

Edited by sundip: n/a

``````Full View
[ No Subject ]
From:
Kalvin Opawix Paloma <opawixkalvin@yahoo.com>
To: [email]wackyrodarevalo@yahoo.com[/email]
#include<iostream>
using namespace std;
int subtraction(int a,int b)
{
int r;
r=a-b;
return(r);
}
int main()
{
int Z_rand;
int ZzZz_percents;
{
double ncome;
int Percents(int ZzZz_percents);
cout<<"enter amount:";
cin>>Z_rand;
Z_rand=rand()%ZzZz_percents;
cout<<"Z_rand = "<<Z_rand<<"   ";
ncome=Z_rand%(4/Z_rand);
}
float ncome,tdd,gncome=500;
tdd== ncome-gncome;
cout<<"tax deducted:"<<tdd;
cout<<"tax onwed:"<<ncome;
if(tdd<0)
cout<<"refund";
else
cout<<"send check";
system("pause");
return 0;
}
``````

Edited by mike_2000_17: Fixed formatting

hey guys heres my idea. i want to get the 4% of the income to subtract \$500 of dependnt gross income,mm very confuse. im a newbie in programming pls help me. tnx.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.