Shoprite is a grocery shop that has outlets nationwide. They give discounts to customers who buy products in bulk. For a given number of products their discounts are as follows:
0 – 20 No discount
More than 20 10%
More than 30 15%
More than 40 20%
More than 50 30%
They are planning to get a computerised system which automates calculation of total amount due for a given number of products.
1 Based on the above scenario, design a solution for Shoprite using a flowchart.
2 Based on the outcome of Question 3.1, create a C++ program using Visual Studio. Your program must enter the quantity of products then compute the discount based on the quantity and output the total amount due.