No. Total Price (RM) Discount
1. Less than 100 10%
2. Greater than 100 but less than 200 15%
3. Greater than 200 but less than 300 20%
4. Greater than 300 25%
analyse the calculation of total prices and discount based on customer’s purchases at the sundry shop. Customers may buy many products in multiple quantities and you will need to consider the prices of each item and its quantity.
Based on the above programming problem:
i. Analyse the problem to identify required items to be used in designing algorithm
ii. Write an algorithm in a pseudo code
iii. Draw a flowchart based on the pseudo code
iv. Produce a Tracing Table that will show the projected values for a customer’s purchases total price and discount.