Q1. An eletronic shop has announced the following seasonal discount on the purchase of certain items.
Purchase Amount
Discount on Laptop
Discount on Desktop
0 - 2500
0.0%
5.0%
2501 - 5700
5.0%
7.5%
5701 - 10000
7.5%
10.0%
More than 10000
10.0%
15.0%
Write a program based on the above criteria - amount of purchase and the type of purchsed (L for Laptop and D for Desktop) by a customer. Compute and print the net amount to be paid by the customer along with his name and address.
Enter the amount of purchase:
Enter your choice:
Laptop
Desktop
Net amount to be paid:
home
Solution
Solution
×
IF-ELSE JS