Vivian's home electricity bill is calculated based on the below criteria.
Unit Range | Price per unit |
---|
000 - 100 | ₹1.5 |
101 - 200 | ₹2.5 |
201 - 300 | ₹4.0 |
301 - 350 | ₹5.0 |
Above 350 | ₹1500 fixed charge |
Vivian checked his electricity meter which showed a total of 241 units consumption.
Write a program that will calculate and print the amount that Vivian has to pay.