program that produces a report with a header line containing the total sales and total expenses. Following this header should be a table with each salesperson's name, percentage of total sales, and percentage of total expenses, sorted by salesperson's name.
the text file should be like the following form
bob 5000 1000
alex 6000 1100
red 7000 8000
tom 4500 2200
Item should be a struct type that holds one salesperson's information. Therefore, the list is a list of structs.
program should then display :
1. the number of sales people read from the file,
2. the original list in the order they were read from the file
3. the sorted list (by salesperson's name) with the corresponding Sales and Expenses
4. the sorted list (by salesperson's name) with the corresponding percentage of sales and expenses to the total.
Thank You
Regards !