Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

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

Handbook Of Relational Database Design

Authors: Candace C. Fleming, Barbara Von Halle

1st Edition

0201114348, 978-0201114348

More Books

Students also viewed these Databases questions

Question

7. It is advisable to do favors for people whenever possible.

Answered: 1 week ago