Question: 4 . a ) A store offers bulk purchase discounts based on the quantity of items purchased: 1 - 1 0 items: No discount 1
a A store offers bulk purchase discounts based on the quantity of items purchased:
items: No discount
items: discount
items: discount
More than items: discount
Design an algorithm to calculate the final price after applying the appropriate bulk purchase discount.
b A store offers different discounts based on the payment method:
Cash: No additional discount
Credit Card: additional discount
Debit Card: additional discount
Mobile Payment: additional discount
Create a C program that calculates the final price after applying the appropriate bulk purchase discount.
c A store offers discounts based on the total purchase amount as follows:
Up to Rs there is no discount.
Between Rs and Rs a discount is applied.
Between Rs and Rs a discount is applied.
Above Rs a discount is applied.
Create a C program to calculate the final price after applying the appropriate discount.
d Combine all previously mentioned discounts into one comprehensive program. The program should:
Apply the base discount based on the total purchase amount.
Apply the payment method discount.
Apply the discount based on quantity.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
