Skip to content

agarg2004/Employee-Payroll-System

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 

Repository files navigation

🏒 Employee Payroll Management System

A C++ & MySQL-based Employee Payroll Management System designed to simplify employee salary management, track loans, allowances, and automate payroll calculations efficiently.


✨ Features

  • Add / Insert Employee Records Add new employees with complete details such as name, code, designation, experience, age, and working hours.

  • Automatic Salary Computation Calculates salary components including:

    • Basic Salary
    • DA (Dearness Allowance)
    • HRA (House Rent Allowance)
    • PF (Provident Fund)
    • Tax
    • Meal, Medical, Transport Allowances
    • Loan deduction if applicable
  • Update Employee Records Modify existing employee data and automatically update salary computations.

  • Save to Database Integrates with MySQL to persist employee records using INSERT and ON DUPLICATE KEY UPDATE.

  • Input Validation Ensures clean and valid employee data entry.

  • Interactive Console UI Simple and user-friendly interface using console positioning functions (gotoXY) and menus.


πŸ’» Technologies Used

  • C++ – Core language for console application logic
  • MySQL – Database for storing employee records
  • Dev-C++ – Development environment
  • SQL Queries – For CRUD operations on employee database

πŸ›  Installation

  1. Clone the repository:
git clone https://github.com/your-username/employee-payroll-system.git
  1. Open in Dev-C++ or your preferred IDE.

  2. Make sure MySQL Server is installed and running.

  3. Update database connection parameters in your code:

// Example
db.connect("localhost", "root", "password", "payrolldb");
  1. Compile and run the project.

πŸ“ Usage

  1. Run the executable employee payroll.exe.

  2. Use menu options to:

    • Insert new employee records
    • Update or edit records
    • Save all records to the database
    • View employee salary details

DEMO

Screenshot 2025-09-27 163824Screenshot 2025-09-27 163831 Screenshot 2025-09-27 164003 Screenshot 2025-09-27 164012 Screenshot 2025-09-27 164023 Screenshot 2025-09-27 164035 Screenshot 2025-09-27 164058


⚑ Future Improvements

  • GUI-based interface for better user experience
  • Export payroll reports to Excel/PDF
  • Support for multiple currencies and tax brackets
  • Role-based access control for admin and HR staff

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages