N O T I C E

Project on Computer topics, Programs for practicals for BCA Students, and Mobile Android app requirements. Please pay less and get more immediate delivery for school and higher level. Thank You. Contact me - at +91-8800304018(w)

Wednesday, March 18, 2026

Electricity Bill Calculation System in C Language (100 Units Free Scheme)

 


ElectricitybillCalculation System In C Language (100 Units Free Scheme) Download Free

       Help Us by Donating



Here is a complete C Language Project on Electricity Bill Management System with documentation. It is suitable for BCA / Computer Practical File and includes Introduction, Algorithm, Program, Output, and Viva Questions.


ELECTRICITY BILL MANAGEMENT SYSTEM (C LANGUAGE)

1. Title

Electricity Bill Calculation System in C Language (100 Units Free Scheme)


2. Introduction

Electricity billing systems are used to calculate the electricity charges consumed by a customer.
This project is developed in C programming language to calculate the electricity bill based on units consumed.

In this system, the first 100 units are free as per government scheme, and charges are applied only after 100 units.

This program takes customer details and electricity units consumed as input and calculates the final bill amount automatically.


3. Objective

The objectives of this project are:

  • To calculate electricity bills using C programming.
  • To apply government scheme (first 100 units free).
  • To practice structures, conditional statements and arithmetic operations in C.
  • To generate a formatted electricity bill.

4. Features of the System

  • Customer Name Input
  • Consumer Number
  • Units Consumed
  • First 100 Units Free
  • Automatic Bill Calculation
  • Display Final Bill

5. Assumed Electricity Tariff

Units Range

Rate

0 – 100

Free

101 – 200

₹5 per unit

201 – 300

₹7 per unit

Above 300

₹10 per unit


Electricity Bill Calculation System in C Language (100 Units Free Scheme)

6. Algorithm

1.    Start the program.

2.    Input customer name.

3.    Input consumer number.

4.    Input units consumed.

5.    Check if units ≤ 100

o    Bill = 0

6.    If units between 101 and 200

o    Bill = (units − 100) × 5

7.    If units between 201 and 300

o    Bill = (100 × 5) + (units − 200) × 7

8.    If units above 300

o    Bill = (100 × 5) + (100 × 7) + (units − 300) × 10

9.    Display customer details and bill amount.

10.                       Stop the program.


7. Flowchart (Text Representation)

Start

   |

Enter Customer Details

   |

Enter Units Consumed

   |

Units <= 100 ?

   |Yes

Bill = 0

   |

   No

Units <= 200 ?

   |Yes

Bill = (Units-100)*5

   |

   No

Units <= 300 ?

   |Yes

Bill = (100*5) + (Units-200)*7

   |

   No

Bill = (100*5)+(100*7)+(Units-300)*10

   |

Display Bill

   |

End


8. C Program

#include<stdio.h>

 

int main()

{

    char name[50];

    int consumer_no;

    float units, bill=0;

 

    printf("\n===== Electricity Bill System =====\n");

 

    printf("Enter Customer Name: ");

    scanf("%s", name);

 

    printf("Enter Consumer Number: ");

    scanf("%d", &consumer_no);

 

    printf("Enter Units Consumed: ");

    scanf("%f", &units);

 

    if(units <= 100)

    {

        bill = 0;

    }

    else if(units <= 200)

    {

        bill = (units - 100) * 5;

    }

    else if(units <= 300)

    {

        bill = (100 * 5) + (units - 200) * 7;

    }

    else

    {

        bill = (100 * 5) + (100 * 7) + (units - 300) * 10;

    }

 

    printf("\n\n----- Electricity Bill -----\n");

    printf("Customer Name     : %s\n", name);

    printf("Consumer Number   : %d\n", consumer_no);

    printf("Units Consumed    : %.2f\n", units);

    printf("Total Bill Amount : Rs %.2f\n", bill);

 

    printf("\nFirst 100 Units are Free (Govt Scheme)\n");

 

    return 0;

}



Electricity Bill Calculation System in C Language (100 Units Free Scheme)


9. Sample Output

===== Electricity Bill System =====

 

Enter Customer Name: Asif

Enter Consumer Number: 1025

Enter Units Consumed: 250

 

 

----- Electricity Bill -----

Customer Name     : Asif

Consumer Number   : 1025

Units Consumed    : 250

Total Bill Amount : Rs 850.00

 

First 100 Units are Free (Govt Scheme)


10. Advantages

  • Simple and easy to use
  • Reduces manual billing errors
  • Implements government subsidy logic
  • Useful for learning C programming

11. Limitations

  • Works for a single customer at a time
  • No database storage
  • No file handling

12. Future Improvements

  • Add file handling to store customer records
  • Add multiple customer billing
  • Create menu-driven program
  • Convert into GUI application

13. Viva Questions

1. What is C language?
C is a general-purpose programming language used for system and application programming.

2. What is a variable?
A variable is a named memory location used to store data.

3. What is an if statement?
It is a conditional statement used to execute code based on conditions.

4. What is printf()?
It is a function used to display output on the screen.

5. What is scanf()?
It is used to take input from the user.

6. What are data types in C?
Examples: int, float, char, double.


14. Conclusion

The Electricity Bill Management System developed in C successfully calculates the electricity bill based on the number of units consumed while applying the 100 units free government scheme. This project demonstrates the use of conditional statements, input/output functions, and arithmetic calculations in C.


 

 Electricity Bill Calculation System in C Language (100 Units Free Scheme)

 

If you want, I can also give you:

  • Full BCA Practical File Format (Cover Page + Certificate + Acknowledgement + Index)
  • Improved Version with File Handling (Store Customer Records)
  • Menu Driven Electricity Bill System (More Professional Project)
  • 30 Viva Questions for Exam

Just tell me 👍.

 

Thank you

 

No comments:

Post a Comment