يا جماعة ممكن تساعدوني ..
انا عاوز حدا بعرف بلغة السي يعملي البرنامج هاد
Suppose you are working in accompany . Your manger asked you to design a reservation system using the following rules
Employee ID, address, salary, tax, date of birth, number of years he had in the company, martial status, number of children(if he had), reserve money, insurence.
The salary=main salary+years*A-tax-insurance(for single user)
But salary=main salary+years*B+20(wife)+children*8-insurance(if he has)-tax
Notes: tax=25% of total salary.
. A=15 if number of years<=10.
. B=20 if number of years >10
.Insurence=10*number of family persons the employee has.
.Reserved money=18% of the main salary.
-your program must contain an array (you may use array of structure and function).
1-the program must proceed the following menus:
1-To have any information about any employee enter I.
2-To add new employee enter Y.
3- To display the name of employee he has maximum salary enter M.
4- To sort the employees according to there ID"s enter s.
5- To exit enter X.
If the user input I, the following menu should be appeared:
1- To search about any employee enters.(By ID number).
2- To display the total salaries of the searched employee enter T.
3- To display the reserved money of the searched employee enter V.
4- To display age of the searched employee enter G.
5- To update the information enter U.(the reverse money).
6- To exit press Q.