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

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

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!