Question
Using Structures in C, write an interactive program to display the pay-slips for 10 employees working in a small departmental stores.
Note: Assumptions can be made wherever necessary and mention them.
Answer :
Word Count : 313
_________ ______ ______ ________ ____ __________ _________.
______ ___ ___ ______ _________ _______.
____ __________ _____ _______ _______ ______ _________ _________.
___ ______ _______ ______ ______ ________ _____ _______ _______ __________.
________ __________ ____ ___ _________ _______ _______ _________ ____.
________ _________ _______ ____ __________ _____ _____ _______ __________ __________ ________.
______ __________ __________ ______ ___ ______ _______ _____ __________.
______ ______ ________ ___ _______ _________ ______ ___ __________ ______ _________.
___ _________ _______ _______ ___ _________ _______ _________ _________ _________ _____.
______ __________ ________ ___ ______ __________ _________.
_____ _______ ________ ___ _______ ____ ___ ____ _______ ____ _________.
_________ _________ _______ __________ __________ ________ ______ _________ ______ __________ _________ ________.
_____ _____ ____ __________ ______ ________ _______ _________ _____ __________ __________.
_____ _______ _____ _________ ______ _____ __________ _____.
_____ _________ _____ __________ ___ __________ _____ _____.
__________ ___ __________ ___ ____.
________ ______ ________ ______ __________.
______ ____ ____ _____ __________ _________ ___.
__________ ________ _______ ___ __________ _________.
_________ ____ _____ _______ __________ ____ __________ ______ ______.
__________ ____ _________ _______ ___.
______ __________ _____ ______ _________ _____ ______ _____ _________ _________.
__________ ________ ___ ______ ______.
______ ___ ________ ____ ________ _____ ________ ______ _________ ______ _____ _____.
_______ _____ ______ __________ __________ _________ __________ ________.
______ ____ ____ ________ _____ _____ ____ ______ ______ __________.
_____ _________ ____ _______ __________ ________.
____ ___ __________ ___ ___.
_________ _______ ___ ___ _______ __________.
_______ __________ _____ _________ ______ __________ ____ _____.
______.
Skip in 10
#include <stdio.h>
#define MAX_EMPLOYEES 10
struct Employee {
int id;
char name[50];
float basic_salary;
float hra;
float da;
float pf;
float net_salary;
};
void calculate_net_salary(struct Employee *employee) {
employee->net_salary = employee->basic_salary + employee->hra + employee->da - employee->pf;
}
int main()
______ ___ ___ ______ _________ _______.
____ __________ _____ _______ _______ ______ _________ _________.
___ ______ _______ ______ ______ ________ _____ _______ _______ __________.
________ __________ ____ ___ _________ _______ _______ _________ ____.
________ _________ _______ ____ __________ _____ _____ _______ __________ __________ ________.
______ __________ __________ ______ ___ ______ _______ _____ __________.
______ ______ ________ ___ _______ _________ ______ ___ __________ ______ _________.
___ _________ _______ _______ ___ _________ _______ _________ _________ _________ _____.
______ __________ ________ ___ ______ __________ _________.
_____ _______ ________ ___ _______ ____ ___ ____ _______ ____ _________.
_________ _________ _______ __________ __________ ________ ______ _________ ______ __________ _________ ________.
_____ _____ ____ __________ ______ ________ _______ _________ _____ __________ __________.
_____ _______ _____ _________ ______ _____ __________ _____.
_____ _________ _____ __________ ___ __________ _____ _____.
__________ ___ __________ ___ ____.
________ ______ ________ ______ __________.
______ ____ ____ _____ __________ _________ ___.
__________ ________ _______ ___ __________ _________.
_________ ____ _____ _______ __________ ____ __________ ______ ______.
__________ ____ _________ _______ ___.
______ __________ _____ ______ _________ _____ ______ _____ _________ _________.
__________ ________ ___ ______ ______.
______ ___ ________ ____ ________ _____ ________ ______ _________ ______ _____ _____.
_______ _____ ______ __________ __________ _________ __________ ________.
______ ____ ____ ________ _____ _____ ____ ______ ______ __________.
_____ _________ ____ _______ __________ ________.
____ ___ __________ ___ ___.
_________ _______ ___ ___ _______ __________.
_______ __________ _____ _________ ______ __________ ____ _____.
______.
IGNOU ACADEMY
Your IGNOU journey, made easier.
- Solved Assignments
- Study Notes
- Guess Papers
- Question Papers
Continue Reading — It's Free
Sign in with Google to unlock more of this answer.
✓ Free access
✓ Unlock up to 60% of the answer
✓ No payment required
✓ Unlock up to 60% of the answer
✓ No payment required
Quick Google sign-in. No separate registration form.