Using the sample solution algorithms provided in this chapter, design a solution algorithm for the following programming problems. Your solution should contain:
• a defining diagram
• a hierarchy chart
• a pseudocode algorithm
• a desk check of the solution.
The Multi-Disk computer company requires a single-level control break program to produce a sales report by salesperson from their sales file. Design an algorithm that will read the sales file and create the sales report as shown below.
Each record on the sales file contains the salesperson’s number, name, the product number of the product sold, the quantity sold and the price of the product. There may be more than one record for each salesperson, depending on the products sold that month. The sales file has been sorted into ascending sequence of salesperson number.
Your program is to read the sales file sequentially, calculate the extension amount (price * quantity sold) for each product sold and print a detail line for each record processed. Control total lines showing the sales total for each salesperson are to be printed on change of salesperson number. Print headings and column headings at the top of each page, allowing for 40 detail lines per page.
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.