Question: please write in c++,please i need fastt Task 2: Write a function named readinput. (14 marks) a) It receives an array of Employee of type

 please write in c++,please i need fastt Task 2: Write a

please write in c++,please i need fastt

Task 2: Write a function named readinput. (14 marks) a) It receives an array of Employee of type struct. b) The function should read data from the given input file named input, txt. The file contains employees' department, basic salary, number of overtime hours worked in one month, and name. Figure I shows an example of data that can be used to test the program c) Assuming you do not know, the number of employees. Calculate the number of employees available in the company based on the number of employee records found in the input file. d) The function should return the number of employees calculated in (c). Production 2500 27 Salman Ali Quality 1800 45 Hanif Haikal Production 2000 53 Rashid Abu Production 1800 59 Halim Hashim Quality 2400 35 Hani Imran Engineering 2300 27 Arina Hakim Accounting 2500 36 Anuar Omar Quality 1900 33 Zarith Zaid Engineering 2350 52 Rania Hassan Engineering 2250 44 Buhar Burhan Quality 2250 38 Citra Shari Accounting 2250 36 Amir Arshad Accounting 2180 41 Daud Kasim Engineering 2500 35 Sofian Saad Accounting 2450 29 Alisa Azman Figure 1: Sample data in the input file "input.txt

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!