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..

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

Full View
[ No Subject ]
From:   
Kalvin Opawix Paloma <opawixkalvin@yahoo.com> 
Add to Contacts
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;
}

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.