Posts

Showing posts with the label Electricity Bill Calculation

Electricity Bill Calculation

Image
Per Unit Rate in TamilNadu 2020: For 0 to 100 units, the per unit is Zero For 0 to 200 units, for the First 100 unit the per unit cost is Zero  and           the next 100 units, the consumer shall pay Rs. 1.5 per unit. For 0 to 500 units, the consumer shall pay Rs. 0 for the first 100 units, for the next 100 units the consumer shall pay Rs. 2 per unit, for the next 300 units the unit cost is Rs.3 per unit For Above 500 units, the per unit cost is as shown in the table. Program Code: d ef   des ():      print ( "..........................................." )      print ( '\t'"ELECTRICITY BILL CALCULATION" )      print ( "..........................................." ) def   calc ():      while( 1 ):           print ( '\t'"Consumer Details" )          print ( '\t'"~~~~~~~~~~~~~~~~" )    ...