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
Step: 1
Java Program to calculate Discount import javautilScann...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started