Ok, the problem is I need to calculate my net pay after taxes.
I want to have a user defined function which calculates the math portion and displays the results in the main function. These are the parts of the problem:
Medical plan deduction = $75.65
Social security tax rate = 7.51%
Federal income tax rate = 16.5%
State income tax rate = 4.5%
United Fund deduction = $15.00
The medical deduction must be subtracted from the gross pay before the tax amounts are computed. Then the taxes should be computed and subtracted from the gross. As each one is computed, I want to print the amount. Finally, I need to subtract the United Fund contribution and return the remaining amount.
----------------------------------------------
This is what I have thus far:
Code:
#include <stdio.h>
float netpay()
int main(void)
{
int grosspay;
printf("This program calculates gross pay./n");
printf("Please enter the gross pay: ");
scanf("%d", &grosspay);
return 0;
}
Please be gental I'm still very much a C newbie in need of help. I would appreciate any constructive help. Thanks.
-Ricky