Computer Science, asked by b17cs131, 7 months ago

Problem statement
Implement the following function:
float CumulativeDiscount(float arr[], int n);
The function accepts a float array 'arr' comprising 'n' discount
percentages applied on marked price of an object. Order of discounts
in 'arr' is same in which discounts are applied on the object.
Implement the function to calculate the cumulative discount
percentage and return the same.
Discounted price = Marked Price ** (100 - discount%) / 100
Discount% = 100 - (Discounted Price ** 100 / Marked Price)
For eg, if marked price is $100 and discounts 10%6, 20%, 30% are
applied in this sequence then,
After 10% discount, price = $100 = (100 - 10) / 100 = $90
After 20% discount price = $90 + (100 - 20)/100 = $72.
After 30% discount price = $72 (100 - 30/100
For final discounted price, discount = 100 - 50.4 * 100 1.100)
www​

Answers

Answered by PramitBasuSLB
0

Answer:

Is it a Bluej program?....?

Similar questions
Math, 11 months ago