EXAMPLE 6.6 Produce sales report
6546
Design a program that will read a file of sales records and produce a sales report. Each record in the file contains a customer's number, name, a sales amount and a tax code. The tax code is to be applied to the sales amount to determine the sales tax due for that sale, as follows: