Q : Write a C program to store the employee details with the following attribute?
Sr No.
|
Basic Salary
|
Sales Percentage
|
Bonus Amount
|
1
|
<=7000
|
<=10
|
1500
|
2
|
<=7000
|
>=10
|
3000
|
3
|
>7000 and
<=15000
|
<=10
|
2000
|
4
|
>7000 and <=15000
|
>=10
|
4000
|
5
|
>15000
|
<=10
|
2500
|
6
|
>15000
|
>=10
|
4500
|
Solution :
/*
============================================
Girfa Student Help
Program : Salary Calculation
For more program visit
:http://girfahelp.blogspot.in/p/c-language-structure-programming.html
================================================*/
#include<stdio.h>
#include<conio.h>
typedef struct stu
{
int empid;
int pf;
int mediclaim;
int basicsal;
int sp;