Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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 fileStep 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