Computer Science, asked by RohanJangam1938, 1 month ago

: . 4. Define a class Discount having the following description: to store the price of an article int cost Data members String name to store the customer's name double do to store the discount double amt to store the amount to be paid Member functions: void input() Stores the cost of the article and name of the customer void calo Calculates the discount and amount to be paid : void display() Displays the name of the customer, cost, discount and amount to be paid Write a program to compute the discount according to the given conditions and display the output as per the given format. List Price Rate of discount No discount Up to 5,000 From 35,001 to 10,000 10% on the list price From 10,001 to 15,000 15% on the list price Above 15,000 20% on the list price Output: Name of the customer Discount Amount to be paid​

Answers

Answered by Falcon06
1

Answer:

Please comment the programming language in which I need to do the program then i will edit the answer and write the program.

Explanation:

Similar questions