Please help, I keep getting error C2664: 'State_Tax' : Cannot convert parameter 1 from 'float *' 'to float'
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "./myheader.h"
void Calculate_Taxes(float gross, float deferred, float *federaltax,
float *statetax, float *ssitax);
float Federal_Tax(float deferred, float gross);
float State_Tax(float federaltax);
float SSI_Tax(float gross, float deferred);
void Calculate_Taxes(float gross, float deferred, float *federaltax,
float *statetax, float *ssitax)
{
*federaltax = Federal_Tax(gross, deferred);
*statetax = State_Tax(federaltax);
*ssitax = SSI_Tax(gross, deferred);
}
float Federal_Tax(float gross, float deferred)
{
return (gross - deferred)*FEDTAXRATE;
}
float State_Tax(float federaltax)
{
return (federaltax)*STATETAXRATE;
}
float SSI_Tax(float gross, float deferred)
{
return (gross - deferred)*SSITAXRATE;
}