Question: Write a C++ program that will need to read from a file of employee data for how many hours each employee worked for a week.
Write a C++ program that will need to read from a file of employee data for how many hours each employee worked for a week. Then for each of the employees, a total of the hours worked is made and then the employees are sorted into descending order based on their total hours using bubble sort.
Input file looks like this:

Output should look something similar to this:

Jones,Frank 2 3 8 3635 Smith, Tiny 883082 Turk, Tom 9104700 e Jackson,Jim 5 6 56 5 6 5 Catan,Doug 7 387257
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
