A shopping mall is celebrating annual MEGA SALE during which they are offering discounts on the total purchase amount based on the following criteria [15] AMOUNT DISCOUNT UPTO Rs.1000 5% 1001 to 2500 10% 2501 to 5000 12% Greater than Rs.5000 15% Write a program to assign the amount and display the discount and net price after availing the discount.
Answers
Answered by
0
Answer:
Explanation:
class Hello
{
public static void main (String args [])
{
double p=1000, d, dis, np;
if(p < =1000)
d=0.5;
else if (p > 1000 && p < =25000)
d=0.10;
else if (p > 2500 && p< =5000)
d = 0.12 ;
else
d=0.15;
dis=d*p;
np=p-dis
System. out. println (net price=+np
}
}
Explanation:
!!!please mark me as Brainliest !!!
Similar questions