Example:
User entered 3 months
gym subscription for 120 KD plan.
The output:
Month number 1 the
discount percentage is 0% and the discount amount is 0KD
Month number 2 the
discount percentage is 5% and the discount amount is 6KD
Month number 3 the
discount percentage is 10% and the discount amount is 12KD
Answer –
Start
Declarations
Integer month , plan_price , discount, dicounted_amt
Input month
Input plan_price
Calculate_discount (month, plan_price)
Stop
Calculate_discount (a,b)
discount = ((a-1)*5)
dicounted_amt = ((b*discount)/100)
output “Month number is +a the
discount percentage is + discount % and the discount amount
is +dicounted_amt
KD”}
Return a, discount , dicounted_amt
For Detailed Answer or Copy of file
WhatsApp at +91-91311223317- mail us at jainanupam166@gmail.com
We Provide help with assignments all over the world follow us.
Post a Comment
Post a Comment