Write a program that reads a number of employees, then enter the employee ID , Salary and Age such as:
No. of employee = 6
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.
Output:
ID Salary Age
103 6000 22
546 7000 25
264 5000 21
756 3000 30
760 5000 60
435 7500 70