Question: Write a Java program to calculate Discount Price for the description given below. To calculate the final price after discount, we will have to multiply

Write a Java program to calculate Discount Price for the description given below. 

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).


solve this complete and and also show screenshot or code with him

Step by Step Solution

3.36 Rating (162 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Java Program to calculate Discount import javautilScann... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!