Computer Science, asked by SHABEEBSADIQ89, 1 month ago

write a program in Java to print the amount to be paid to purchase a led tv with selling price of RS. 80000 with a discount of RS 25000.
please it's urgent. don't spam spammers will be Reported.​
language : Java​

Answers

Answered by cutebrainlystar
1

Java program to calculate discount price :

In this tutorial, we will learn how to calculate the price of a product after discount. We will take both the inputs from user.

Calculating the price after discount :

To calculate the final price after discount, we will have to multiply the actual price with the discount . e.g. If the actual price is 300 and discount is 10%, final price will be : 300 * 10/100 . 10% means, you will get discount of 10 for a product priced at 100. For a product priced at 1, you will get discount of (10/100). And , for a product priced at 300, you will get discount 300*(10/100).

Product price 100 = Discount 10

Product price 1 = Discount 10/100 ( divide by 100 on both side)

Product price 300 = Discount 300 * (10/100) ( multiply by 300 on both side)

Easy, isn’t it ? Let’s take a look into the program :

Similar questions