Solution 1 1 1 1 1 2 2 2 2 2 3 3 3 3 3 4 4 4 4 4 1 2 3 4 5 1 2 3 4 5 1 2 3 4 5 1 2 3 4 5 1000 1000 1000 1000 1000 2000 2000 2000 2000 2000 3000 3000 3000 3000

Solution

Solution

45 (Solution) 1 1 1 1 1 2 2 2 2 2 3 3 3 3 3 4 4 4 4 4 1 2 3 4 5 1 2 3 4 5 1 2 3 4 5 1 2 3 4 5 1000 1000 1000 1000 1000 2000 2000 2000 2000 2000 3000 3000 3000 3000...

 Category: General Words: 1050 Amount: \$12 Writer:

Paper instructions

Write an assembly language program that solves the following problem. The Albatross Company has four salespeople (1 to 4) who sell five different products (1 to 5). Once a day, each salesperson reports their sales of each product. These reports are consolidated over time into a file. Each record in the file contains three values: • The salesperson number from 1 to 4 (3 characters wide, right justified) • The product number from 1 to 5 (3 characters wide, right justified) • The dollar value of that product sold that day by that salesperson (9 characters wide, right justified) Your program must prompt the user for a file name, process the file, and report the totals for each salesperson and for each product. A sample data file called “Albatross.dat” is provided to allow you to test your program. Your program must be able to handle a data file that contains any number of sales records. This means that it is possible for the input data file to contain 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 happen 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 the sample data file, the sample data file, and finally with a data file that contains more records than the sample data file.1 1 1000 1 2 1000 1 3 1000 1 4 1000 1 5 1000 2 1 2000 2 2 2000 2 3 2000 2 4 2000 2 5 2000 3 1 3000 3 2 3000 3 3 3000 3 4 3000 3 5 3000 4 1 4000 4 2 4000 4 3 4000 4 4 4000 4 5 4000