20CYS181 - Periodicals 1: Calculate Electricity Consumption


Submit solution

Points: 20
Time limit: 0.15s
Memory limit: 2M

Author:
Problem type
Allowed languages
C

Problem Definition

An Tamil Nadu Electricity Board (TNEB) charges the following rates for the use of electricity:

  • For the first 100 units, its free,
  • next 300 units 2 Rupees 25 paise per unit:
  • for the next 100 units 4 Rupees 50 paise per unit:
  • for the next 100 units 6 Rupees per unit;
  • beyond 600 units 8 Rupees per unit.

Please allow the TNEB official to enter the readings for 5 houses. The Input for each house is name of the consumer, EB number, units consumed. Please allow the user to find the electricity bill for their consumption. The output should be the electricity bill in INR.

Note: Submit the solution after executing them in Linux Terminal and Faculty In-charge verify. This will be manually evaluated.


Comments

There are no comments at the moment.