Hello,
I have a project due this week. The project is:
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 “[login to view URL]” 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.
This project is based on ch 6 to 9 from [login to view URL],.Kip.R..Irvine..6ed (Section 9.4 of our textbook discusses two-dimensional arrays. Section 9.4.2 discusses Base-Index Operands)
Sample Data File
Attached Files:
File [login to view URL] (342 B)
In this set of sample data salesperson 1 records sales of $1,000 for each of the five products. Salesperson 2 records sales of $2,000 for each of the five products. Salesperson 3 sells $3,000 of each and salesperson 4 sells $4,000 of each product.
If your program executes correctly, it will display totals of 5000, 10000, 15000, and 20000 for each of the four salespeople. The total for each of the five products should be 10000.
This set of data and two different sets of data, one smaller and one larger, will be used to grade the program you submit.
We are currently using visual studio 2013 to compile the projects.
Hello,
I can write the program you requested. I'm familiar with x86 assembly language and used K. R. Irvine's library for similar projects on this site, please check my work history
Sincerely,
Serge