Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

14569 50 45 2375 18519 60 44 2760 All data should be recorded into the file payf

ID: 3615519 • Letter: 1

Question

14569    50    45   2375
18519    60    44   2760

All data should be recorded into the filepayfile.dat.Write then a program to read the file payfile.dat and displaysthen the content on the screen.

Find the following:

1. The employee who earns the highest salary. Givehis number and wage.
2. Find the average wages of all employees.
3. Find the average payment per worked hour thatthe company pays.
4. Ask the company to enter its weekly income. Seethen if there is some deficit or benefit. Note that the company'sexpenses are salaries and indirect costs which represent 20% of thesalaries.
empNum payRate
hours
wages

Explanation / Answer

please rate - thanks #include #include using namespace std; int main() {double hours,payRate,total=0,wage; int empNum; ofstream out; out.open("payfile.dat");              coutempNum;     while(empNum!=0)        {coutpayRate;         couthours;         if(hours
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote