Professional Documents
Culture Documents
May 2014
Data exists for ten items. Each line of data consists of a product name, price and discount %.
You are required to read the data and complete the following tasks.
(i) Print the product name, the discount for that product followed by the new price.
For example, given
Shirt 120 25
The algorithm should print
Shirt 30 90
where “Shirt” is the product, $30 is the discount of 25% and $90 is the price after
the discount.
(ii) Print the TOTAL amount of product discounts overall.
If the total amount of discounts is greater than $500, print “Discounts exceeded.”
Construct a flow chart to represent the algorithm given in above
May 2018
May 2019
In the space provided on page 17, draw a flowchart to represent the process flow
in the algorithm.