Online shopping often offers various
discounts. Here the requirement is to
calculate the final bill amount based on the
discount policy
Discounts offered are:
1. 30% discount on total bill amount if the
purchase happens between 10:00 p.m.
and 11:00 p.m.
2. Buy one get one offer with the amount of
highest priced item if the purchase
happens after 11:00 p.m. and 12:00 a.m.
This offer is applicable only if 2 items are
purchased. Should there be more than 2
items in the bill, then this offer is not
applied.
3. If the total price is equal or above 1000
there is a flat 100 discount offer. This
discount is applicable on top of above 2
discounts. This discount is applicable at
all times.
4. Delivery charge is free if the customer is
enrolled in prime plan. Otherwise, 40 is
the delivery charge per bill. Delivery
charge will be added after all amount
calculation for non nrima cuctomere
e here to search
Answers
Answered by
0
Answer:
my answer is 940.
explain
purchase items = 1,000
offer = 1,00
= 1,000- 1,00
=9,00
delivery charge = 40
=40+9,00
= 940.
Answered by
0
Answer:
30
_
100
-a
_
100
Explanation:
30+100+40=170
Similar questions