write a program in java to help a shopkeeper selling electronic goods. who gives a discount of 5% on every purchase ,thoughout the year He offers discount of 10% discount during festival time. The electronic goods are given below:
Television Rs 12 3981-
oven Rs 8,7341-
Refrigerator Rs 134971–
fan Rs 2678–
Your program should be able to calculate the total amount after the purchase made by a customer and amount to be paid after discount.
please guys help me and if you give the correct answer I will mark you as Brainlist
Answers
Answer:
write a program in java to help a shopkeeper selling electronic goods. who gives a discount of 5% on every purchase ,thoughout the year He offers discount of 10% discount during festival time. The electronic goods are given below:
Television Rs 12 3981-
oven Rs 8,7341-
Refrigerator Rs 134971–
fan Rs 2678–
Your program should be able to calculate the total amount after the purchase made by a customer and amount to be paid after discount.
please guys help me and if you give the correct answer I will mark you as Brainlist
Answer:
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