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.

15 Sep 2022
Answer :
Word Count : 313

#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
Skip in 10
Top
📞
Call Support Instant phone assistance IGNOU MCS 11 2022 2023 - Using Structures in C, write an interactive program to display the pay | IGNOU Academy
→
🟢
WhatsApp Chat Fast live messaging
→
Email Us Business enquiries & support
→