Code:

#include<stdio.h>
#include<stdlib.h>
void load(float*s)
{
printf("Enter the salary");
scanf("%f",&(*s));
}
float rate(float s)
{
if(s<30000)
return 7.0;
if(s>=30000&&s<=40000)
return 5.5;
if(s>40000)
return 4.0;
}
void calc(float s,float rate,float*total,float*raise,float*totalr,float*news,float*totaln)
{
*raise=(s*rate)/(float)100;
*total=*total+s;
*news=*raise+s;
*totalr=*totalr+*raise;
*totaln=*totaln+*news;
}
void print(float s,float rate,float raise,float news)
{
printf("\t%0.2f\t%0.2f\t\t%0.2f\t\t%0.2f\n",s,rate,raise,news);
}
void main()
{
float s1,rate1,total=0.0,raise1,totalr=0.0,news1,totaln=0.0;
load(&s1);
float s2,rate2,raise2,news2;
load(&s2);
float s3,rate3,raise3,news3;
load(&s3);
float s4,rate4,raise4,news4;
load(&s4);
float s5,rate5,raise5,news5;
load(&s5);
float s6,rate6,raise6,news6;
load(&s6);
float s7,rate7,raise7,news7;
load(&s7);
rate1=rate(s1);
calc(s1,rate1,&total,&raise1,&totalr,&news1,&totaln);
printf("\tSalary\t\tRate%\t\tRaise\t\tNew Salary\n");
print(s1, rate1, news1, news1);
rate2=rate(s2);
calc(s2,rate2,&total,&raise2,&totalr,&news2,&totaln);
print(s2,rate2,raise2,news2);
rate3=rate(s3);
calc(s3,rate3,&total,&raise3,&totalr,&news3,&totaln);
print(s3,rate3,raise3,news3);
rate4=rate(s4);
calc(s4,rate4,&total,&raise4,&totalr,&news4,&totaln);
print(s4,rate4,raise4,news4);
rate5=rate(s5);
calc(s5,rate5,&total,&raise5,&totalr,&news5,&totaln);
print(s5,rate5,raise5,news5);
rate6=rate(s6);
calc(s6,rate6,&total,&raise6,&totalr,&news6,&totaln);
print(s6,rate6,raise6,news6);
rate7=rate(s7);
calc(s7,rate7,&total,&raise7,&totalr,&news7,&totaln);
print(s7,rate7,raise7,news7);
printf("Total\t%0.2f\t\t\t%0.2f\t%0.2f\n",total,totalr,totaln);
system("PAUSE");
}