Write a complete C or C++ program to implement an employee directory. Structure contains name, employee id, department, profession, registration date and contract expiry date as day, month, year. Your program should have the following menu. Write necessary functions for the menu:
Menu:
1- Add a new employee to directory
2- Delete an employee from the directory
3- List available employees in the directory
4- Search an employee:
A – Search according to employee id
B – Search according to registration year
5- Update employee information (give prompt to update all the fields)
6- Sort
A – According to ID
B – According to Name
7- Calculate salary (employee ID, workdays and rate are user inputs: salary = workdays * rate)
8- Quit
Comments
Leave a comment