English, asked by neekenduku, 4 months ago

somer buys N number of products from a
se and each product has a different price,
Dring the holiday season the shop owner
decides to introduce a special offer. He wishes
bute gift hampers to customers who
purchase products whose total price is a
gere cube f customers don't meet this
rement the owner will allow them to buy
a few more products order to make the total
tego the toprint Yes" if the
stomer will receive a gift hamper else print
og the price of the
the store should buy in order to​

Answers

Answered by nidaeamann
9

Explanation:

The algorithm for the scenario given would be that the program would first take all the products that a particular customer wishes to buy. Now the prices of all the products will be added up. If these prices are greater than the threshold value the system will print that the customer will recieve a gift. On the contrary, if sum of prices is less than threshold value, system will print that customer will have to buy all the products

Similar questions
Math, 2 months ago