Design an algorithm and souce code C++ that will read a file of employee records and produce a weekly report of gross earnings for those employees. Gross earnings are earnings before tax and other deductions have been deducted. Each input record contains the employee number, the hours worked and the hourly rate of pay. Each employees gross pay is calculated as the product of the hours worked and the rate of pay. At the end of the report, print the total gross earnings for that week
employee.txt
10 35 25.15
5 20 10.25
1 45 8.65
15 60 12.35
4 37 15.45
12 42 13.05