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 !

Well lionleo, welcome to Daniweb: where we don't code homework assignments for others. :D

What's the problem? Do you know how to read in a file? Grab lines from that file? Parse those lines?

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 !

You forgot to post the code whatever you have tried.

This article has been dead for over six months. Start a new discussion instead.