0

If any one can do this PLEASE help me to do this...

Q. A company gives a festival discount on the purchase of their products in the following percentage:- i) If purchase amount less than 1000, 5% discount. ii) If purchase amount greater than equal to 1000 but less than 3000, 10% Discount. iii) If purchase amount greater than 3000, 15% discount. Write a C++ program using nested if/else-if to compute the amount to be paid by the customers after discount.

28th Oct 2018, 1:49 AM
Himangshu Hazarika
Himangshu Hazarika - avatar
2 Answers
+ 2
tip: 1) extract the conditions from the given text 2) write down how to compute the final sum in each case 3) do the coding
28th Oct 2018, 9:35 AM
Matthias
Matthias - avatar
+ 4
Please show your own attempts.
28th Oct 2018, 2:48 AM
Hatsy Rei
Hatsy Rei - avatar