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 ID, name, a sales amount, and a validated GST code. The GST code is to be applied to the sales amount to determine the sales tax due for that sale...

SalesReport
Read customer file
Get TaxCode
Get GSTAmount SalesTax
Calculate SalesTax
Process customer record 
Read cust name, Sales Amount, TaxCode
If TaxCode = 0 Then 
Let tax amt = 0 
ElseIf tax code = 1 Then 
Let tax amt = Sales Amount * 0.05 
ElseIf tax code = 2 Then 
Let tax amt = Sales Amount * 0.10 
EndIf 
Let TotalSalesAmount = SalesAmount+Tax amt 
Then Display “CustomerID,Name,SalesAmount,SalesTax,TotalSalesAmount”
End

So whats the problem? Look's ok to me (besides ever-helpfull indentation).

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.