posted by jee
a sales report. Each record in the file contains a customer's number and 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:
Tax code Sales tax
0 Tax exempt
The report is to print a heading 'SALES REPORT', and detail lines listing the customer number, name, sales amount, sales tax and the total amount owing.
Task need to do:
Total amount to match the tax using own creativity and logic.
1. Design algorithm [Note: Pseudocode and Flowchart]
2. Write program and use control structures required
• A DOWHILE loop to control the repetition
• A case structure to calculate the sales tax
Assume that the tax code field has been validated and will only contain a value of 0, 1, or 2.