You will have an array of employee structs to keep the


In this program, you will manage the information of employees in a company. You will read the employees.txt file and store every employee information in a struct called Employee.

You will have an array of Employee structs to keep the information of all employees. The employees.txt file may be in different size.

The first line of the file shows the number of employees. And the rest of the file contains a single employee information in each line.

After you learned the number, you will dynamically define the array size using dynamic memory allocation. Each employee has 5 information such as Employee ID, Employee Name, Department ID, Department Name, and Salary.

Each information will be stored in a field in the Employee struct. Once your struct array is ready, you will provide following operations to the user in a menu.

Print All Employees Print all information of all Employees Print By Department Get an input from the user (department ID) Print all information only for employees in that department Print By Salary Get a salary input from the user Print all employees that have equal or more annual salary to given input Exit Exit from the program As a bonus feature you can add following operations in the menu of your program Print By Name (BONUS Option) Get a character from the user.

Print only the employees whose name starts with that character.

Update Employee Information Get an Emp ID from the user. Ask which information to be updated. Let user update that information of the employee.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: You will have an array of employee structs to keep the
Reference No:- TGS02900708

Expected delivery within 24 Hours