السلام عليكم ..
بليز ممكن احد يساعدني في دا السؤال بكرا عندي اختبار والاستاذه قالت حيجي سؤال مشابه له وانا مااعرف املي ثلاثه مصفوفات مع بعض
Write a program that reads a number of employees, then enter the employee ID , Salary and Age such as:
No. of employee = 6
Age Sal ID
22 6000 103
25 7000 546
21 5000 264
30 3000 756
60 10000 760
70 150000 435
And then check if the age greater than or equal 60, divide the salary by 2
ID sal age
22 6000 103
25 7000 546
21 5000 264
30 3000 756
60 5000 760
70 7000 435
Finally, print the array values after checking.
- Using the following functions implement the program:
• Void get_data(int x[],int no);
// to read Id , Salary and Age from the user .
• Void check_salary( int Sal[], int Age[],int no);
//to check if the age >=60, then salary/2
• Void display(int ID[], int Sal[], int Age[],int no);
// print the array values after checking

