The program allows an administrator to manage employee records, calculate salaries, generate reports, and print salary slips. It includes functionalities for adding, deleting, editing, and searching for employees, as well as calculating net salaries considering EPF (Employee Provident Fund) and ETF (Employee Trust Fund) deductions.
- Initializes the program and handles the main menu navigation.
- Validates the user’s password before allowing access to the menu options.
- Employee data is stored in
empdata.txt, and temporary data manipulation is done usingtmpdata.txt.
- Ensures that only authorized personnel can access the system.
- Add, delete, edit, and search for employee records.
- Computes net salary by considering basic salary, working hours, overtime, EPF, and ETF contributions.
- Displays the welcome message when the program starts.
- Prompts the user to enter a password. The correct password is
anjula.
- Displays the main menu options.
- Provides a sub-menu for managing employees (add, delete, edit, search).
- Collects employee details and appends them to
empdata.txt.
- Deletes an employee record based on the provided employee ID.
- Edits the salary and hours worked for a specified employee ID.
- Searches for and displays an employee’s details based on the employee ID.
- Generates a report of all employees, displaying their salary details and deductions.
- Prints the salary slip for a specified employee ID.
- Displays the employee management sub-menu.
- Displays a thank you message when exiting the program.
- Displays the welcome message.
- Prompts for a password.
- Manage Employees: Provides options to add, delete, edit, and search for employees.
- Print Report: Displays the report of all employees.
- Print Slip: Prints the salary slip for a specific employee.
- Exit: Exits the program.
Note: The program uses a simple text file-based storage for employee records. Make sure the empdata.txt file is in the same directory as the program executable.