Reference no: EM132397
Question
Write down an assembly language program that solves following problem. The Albatross Company has four salespeople who sell five diverse products (1 to 5). Once a day, each salesperson reports their sales of each creation. These reports are consolidated over time into a file. Each record in the file enclose three values-
The salesperson number from one to four (3 characters wide, right justified)
The product number from one to five (3 characters wide, right justified)
The dollar value of that product sold that day by that salesperson (9 characters wide, right justified)
Your program have got to prompt the user for a file name, process file, and report the totals for each salesperson and for each product. A sample facts file called "Albatross.dat" is provided to allow you to test your program.
Your program has to be able to handle a data file that contains any number of sales records. This means that it is probable for the input data file to hold multiple records for each salesperson and product combination. Do not write your program so that it always (and only) expects the number of records that ensue to be in the sample data file. Your program will be tested and graded by executing it with a data file that contains fewer records than sample data file, the sample data file, and finally with a data file that contains more records than sample data file.