Define a class to calculate the electricity bill. The rates of electricity per unit are as follow: If the units consumed are equal or less than 300, then the cost is Rs. 3/- per unit. If unit consumed...




  1. Define a class to calculate the electricity bill. The rates of electricity per unit are as follow:



  • If the units consumed are equal or less than 300, then the cost is Rs. 3/- per unit.

  • If unit consumed are more than 300, then the cost is Rs. 3.5/- per unit and a surcharge of 5% of bill is added.



Jun 05, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here