0
1.7kviews
An electronic component vendor supplies three products: transistors, resistors and capacitors. The vendor gives a discount of 10% on order for transistors if the order is more than Rs. 1000.
written 5.7 years ago by | • modified 5.7 years ago |
On order of more than Rs. 100 for resistors, a discount of 5% is given and discount of 10% is given on orders for capacitors of value more than Rs. 500. Assume numeric code 1, 2 and 3 used for transistors, capacitors and resistors respectively. Write a program that reads the product code and the order amount, and prints out the net amount that the customer is required to pay after discount.
Subject : Structured Programming Approach
Title : Control Structures
Difficulty : Medium
ADD COMMENT
EDIT
1 Answer