Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle Autonomous Database In Enterprise Architecture

Authors: Bal Mukund Sharma, Krishnakumar KM, Rashmi Panda

1st Edition

1801072248, 978-1801072243

More Books

Students also viewed these Databases questions