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
struct date
{
int day, month, year;
};
struct employee
{
int ID;
char name[20];
struct date reg_date, exp_date;
float salary;
}emp_directory[100];
Numbers and figures are an essential part of our world, necessary for almost everything we do every day. As important…
APPROVED BY CLIENTS
Finding a professional expert in "partial differential equations" in the advanced level is difficult.
You can find this expert in "Assignmentexpert.com" with confidence.
Exceptional experts! I appreciate your help. God bless you!
Comments
Leave a comment