Answered step by step
Verified Expert Solution
Question
1 Approved Answer
please write in c++ help me, i need fasttt Task 4: Write a function named displayOutput. (11 marks) a) This is a non-retuming function b)
please write in c++ help me, i need fasttt
Task 4: Write a function named displayOutput. (11 marks) a) This is a non-retuming function b) It takes an array of Employee of type struct and the number of employees calculated in Task 2 as input parameters c) The function should display employees' names, department, basic salary. number of overtime (OT) hours worked in one month, monthly overtime (OT) pay, and monthly salary. The formula for calculating monthly overtime (OT) pay and monthly salary is as follows: Monthly overtime (OT) pry Overtime rate Number of overtime hours worked Monthly salan Monthly overtime pay Basic salan d) Figure 2 shows an example of the output that will be displayed on the screen based on the data in the input file "input.txt" shown in Figure 1 BE DEPARTMENT BASIC(F) OT (HOUR) 07 TAYM) SALARY (RM Salman Ali Hanif Haikal Fashid Ahu Malin Hashim Hant Imran Atina Hakim Anuat al Carith Zaid Rania Hassan Euhari Burhan Citra Shari Amir Arshad Daud Kasin Sofian laad Alina Azman Production Quality Production Production Quality Engineering Accounting Quality Engineering Engineering Quality Accounting Accounting Engineering Accounting 2500.00 1800.00 2000.00 1800.00 2400.00 2300.00 2500.00 1900.00 2350.00 2250.00 2250.00 2250.00 2180.00 2500.00 2450.00 27 45 53 58 35 27 36 33 52 270.00 517.50 530.00 580.00 402.50 405.00 450.00 379.50 780.00 260.00 437.00 450.00 512.50 525.00 362.50 2770.00 2317.50 2530.00 2380.00 2002.50 2705.00 2950.00 2279,50 1130.00 2910.00 2657.00 2700.00 2692.50 3025.00 2812.50 18 36 41 35 29 Figure 2: Expected output for Task 4Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started