Design a class program in java to calculate the discount given to a customer on purchasing LED television . the program also displays the amount paid by the customer after discount . The details are given as: <br />class name : television<br />Data members:int cost,int discount,int amount <br />Accept ():to input the cost of television <br />Calculate the discount <br />Display():to show the discount and the amount paid after discount<br /><br />
Answers
Answered by
0
A: Discount is defined as the reduction in the price something you sell to the customers. Most of the discount rate is given in percentage rate.
Here is the formula to calculate the discount:
Discount = List price x Discount Rate
For example :
A pen costs 50$ and it is been sold at a discount of 12%, what is the discount price of the pen?
A: = 50 x 12/100
= 50 × 0.12
= $ 6
dynamothunder43:
bhai computer ka question hai
Similar questions