0% found this document useful (0 votes)
7 views8 pages

priyanshu,rishi, manraj

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views8 pages

priyanshu,rishi, manraj

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

PUNJAB COLLEGE OF TECHNICAL

EDUCATION

PROJECT REPORT ON
Employee salary system

SUBMITTED BY :- SUBMITTED TO:-


NAME: priyanshu MS. NAVKIRAN
Manraj
Rishi
CLASS: BCA-1-E
ROLL NO: 2024BCA1226
2024BCA2929
2024BCA1247
SUBMITTED TO:-
MS. NAVKIRAN
Introduction:
In today's rapidly evolving business environment, efficient
and accurate management of employee salary information is
crucial for the smooth operation of any organization.
Traditional methods of salary management, which often
involve manual record-keeping and calculations, are prone
to errors and time-consuming. This project seeks to address
these challenges by developing an employee salary
management system using the C programming language.
The proposed system will allow users to input, update, and
retrieve employee salary details with ease. By leveraging the
capabilities of C, a robust and widely-used programming
language, this system promises reliability and performance.
The system will be designed to ensure accuracy in salary
computations, thereby reducing the risk of financial
discrepancies. Additionally, the user-friendly interface will
facilitate smooth interactions, making it accessible to users
with varying levels of technical expertise.
This project not only serves as a practical solution for salary
management but also provides an excellent opportunity for
students to apply their programming skills in a real-world
scenario. Through this project, students will gain hands-on
experience in system design, development, and testing,
preparing them for future professional challenges.
In summary, the employee salary management system aims
to revolutionize the way organizations handle salary
information, bringing about significant improvements in
efficiency, accuracy, and user satisfaction.

Objective:
The primary objective of this project is to develop a
comprehensive employee salary management
system using C programming language. This
system aims to streamline the process of managing
employee salary information, ensuring accuracy,
efficiency, and user-friendliness. By implementing
this system, we seek to achieve the following
specific goals:
1. Automation: To automate the process of
adding, updating, and displaying employee
salary details.
2. Accuracy: To minimize errors in salary
calculations and ensure precise financial
records.
3. Usability: To design a user-friendly interface
that facilitates easy interaction with the system.
4. Scalability: To create a system that can handle
an increasing number of employees and salary
data without performance degradation.
5. Security: To ensure that the system protects
sensitive employee data from unauthorized
access.
#include <stdio.h>
#include <string.h>

struct Employee {
int id;
char name[30];
float salary;
};

// Function to add an employee


void addEmployee(struct Employee *e, int id, const char
*name, float salary) {
e->id = id;
strcpy(e->name, name);
e->salary = salary;
}

// Function to print employee details


void printEmployee(struct Employee e) {
printf("ID: %d, Name: %s, Salary: %.2f\n", e.id, e.name,
e.salary);
}
// Function to display all employees
void displayAllEmployees(struct Employee employees[], int
size) {
for (int i = 0; i < size; i++) {
printEmployee(employees[i]);
}
}

// Function to calculate the total salary of all employees


float calculateTotalSalary(struct Employee employees[], int
size) {
float totalSalary = 0.0;
for (int i = 0; i < size; i++) {
totalSalary += employees[i].salary;
}
return totalSalary;
}

// Main function
int main() {
struct Employee employees[5];
int numberOfEmployees = 0;
int id;
char name[30];
float salary;

// Adding employees using the addEmployee function


printf("Enter the number of employees: ");
scanf("%d", &numberOfEmployees);

for (int i = 0; i < numberOfEmployees; i++) {


printf("Enter details for employee %d\n", i + 1);
printf("ID: ");
scanf("%d", &id);
printf("Name: ");
scanf("%s", name);
printf("Salary: ");
scanf("%f", &salary);

addEmployee(&employees[i], id, name, salary);


}

// Displaying employee details


printf("Employee Details:\n");
displayAllEmployees(employees, numberOfEmployees);

// Calculating and displaying the total salary expenditure


printf("Total Salary Expenditure: %.2f\n",
calculateTotalSalary(employees, numberOfEmployees));

return 0;
}

You might also like