Question: Please use C++ LAB 4 [FILE INPUT OUTPUT] SECJ1013 SEM1 202021 QUESTION 1 Read employee's information (ID, sales) from input file as shown in Figure
![Please use C++ LAB 4 [FILE INPUT OUTPUT] SECJ1013 SEM1 202021](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f3d29366fd2_18766f3d29316e7e.jpg)
Please use C++
LAB 4 [FILE INPUT OUTPUT] SECJ1013 SEM1 202021 QUESTION 1 Read employee's information (ID, sales) from input file as shown in Figure 1. Determine whether the employee get bonus or not and calculate the average sales of all employees. Write the result to the output file as shown in Figure 2. The number of employees is unknown. Employee can get bonus if the number of sales is greater than or equal to 250. AS11223 450 bonus AS11223 450 PA01223 350 bonus PA01223 350 QW1234 150 no bonus QW1234 150 Average = 316.675 Figure 2: Output file Figure 1: input file
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
