A company deals with two types of customers (i.e. dealer and retailer) for selling its goods. The company offers discount to the dealer and retailer at the time of purchasing goods for paying the bill as per the tariff given below:Days of paymentDiscount (on purchase amount)DealerRetailerWithin 30 days15%10%31 to 45 days10%5%46 to 60 days5%2%More than 60 days0%0%Write a program to accept name of the customer, number of days within which the bill is to be paid, type of customer (‘D’ for dealer and ‘R’ for retailer) and the amount of purchase. Calculate the discount according to the table above and net amount to be paid (purchase amount –discount). Print the bill in the following format:NameType of customerPurchase amountDiscountNet amountxxxxxxxxxxxxxxxxxxxxxxxx
Answers
Answered by
0
Answer:
just a minutes I am solve your question......
Similar questions
English,
2 months ago
Physics,
2 months ago
English,
2 months ago
English,
6 months ago
Science,
6 months ago
English,
11 months ago
Psychology,
11 months ago
Political Science,
11 months ago