Here are the instructions given to me.. I am not expecting ANYONE to write the program for me. I just need some hints and i'll try to update as much as possible.
The following table shows the total sales for salespeople of the ABC
Manufacturing Company.
Salesperson Week 1 Week 2 Week 3 Week 4
=============== ====== ====== ====== ======
Nguyen, Michael 25 30 45 20
Johnson, Mary 32 30 33 29
Nagasake, David 15 17 21 20
...
The price of the product being sold is $1985.95 Define it as a memory
constant.
Write a program that permits the input of the data, up to 25 salespersons,
and prints both a replica of the original table and a table showing the
dollar value of sales for each individual during each week along with his
or her total sales. Also print the total sales, the lowest and the highest
value for each week, and the total sales for the company.
Input : Read data from a text file. A salesperson's name consists of
20 characters. The first number in the input file represents
the number of salespersons. The input file format is as follows:
3
Nguyen, Michael 25 30 45 20
Johnson, Mary 32 30 33 29
Nagasake, David 15 17 21 20
Output : See SAMPLE_OUTPUT.TXT
Write the output to another text file.
Write a beginning message, an ending message,
and any other messages such as
" *** Error opening/closing files *** ",
" *** Warning: data file is to large *** ", or
" *** The output is in SALESRES.TXT *** "
to screen.
Data : Run your program once using the data file SALES.TXT
Note : DO NOT USE STRINGS! Read all names one character at a time.