The question is :
Create a C program with a stub program code to calculate taxes?
void calculatetaxes (float gross, float deferred, float *fedtax,float *statetax,float *ssitax) ; //3.5
float calcfedtax(float gross, float deferred); //3.5.1
float calcstatetax (float fedtax) ; // 3.5.2
float calcssitax (float gross, float deferred); //3.5.3
// stub program code
#include <stdio.h>
#define ADDR(var) &var
int main (void)
{
float ft,st,ssit;
calculatetaxes (1000, 100,ADDR(ft),ADDR(st),ADDR(ssit));
printf(" fedtax = %8.2f\n",ft);
printf(" StateTax = %8.2f\n",st);
printf(" ssitax = %8.2f\n",ssit);
fflush(stdin);
getchar();
return 0;
}
I am trying to make a code to calculate the fedtax,statetax, and ssitax for C and was wondering why my void for the stub program doesn't work and the #define addr(var) $var
doesn't define my variables.