A company named ABC hired three employees in different years, each employee gets an inc...
Â
Solve part 4 in C language
Question: A company named ABC hired three employees in different years, each employee gets an increment of 5000 yearly. Also each employee gets bonus amount of 10k for each project he has done yearly. The programs should have following attributes that should be entered by the user according to their need in specific parts: Employee name Served years No of projects done per year Initial salary 1. Write a simple program using a for loop which will calculate the current salary of an employee in a year 2020. (5 marks) 2. Write a program using an array that will calculate the current salary of each employee in a year 2020. (5 marks) 3. Write a program which will calculate the average salary of an employee got per month in year 2020 including the bonus amount by passing to a function. Function must have argument passed as well return a value (7 marks) 4. Declare a structure for an employee, mention the attributes (name, no of years served, salary), declare an array of structures for no of employees. Then declare two functions, one should return a structure by value with no argument passed and in second pass the pointer structure as an argument to a function and it should display the current salary of employees. (10 marks)
Solved
Programming in C,C++
1 Answer
Sachin Sachdeva
Login to view answer.