Your question (max 1024 symbols) Home Work Question 1:
write a complete C program to implement an e
mployee directory. Structure contains name,
employee id, department, profession, registration d
ate 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
6- Sort
A – According to ID
B – According to Name
7-Quit
struct date
{
int day, month, year;
};
struct car
{
int ID;
char name[20], dept [4], prof [4];
struct date reg_date, exp_date;
}emp_directory[100];
**Important notes:
Write a user defined function
for each menu option.
•
For Department field, use the following sample code
s:
o
CNT, DP1, DP2
•
For profession field, use the following codes:
o
PRO,INV, RES, TST
Detailed explanation: NO
Numbers and figures are an essential part of our world, necessary for almost everything we do every day. As important…
APPROVED BY CLIENTS
"assignmentexpert.com" is professional group of people in Math subjects! They did assignments in very high level of mathematical modelling in the best quality. Thanks a lot
Comments
Leave a comment