---
title: "Mini Project on Electricity Bill Calculator in C Language"  
description: "Mini Project on Electricity Bill Calculator in C Language"  
author: "Vilas Shende"  
published: 2013-10-08  
updated: 2020-03-04  
canonical: https://www.mindstick.com/articles/1374/mini-project-on-electricity-bill-calculator-in-c-language  
category: "visual c++"  
tags: ["visual c++"]  
reading_time: 3 minutes  

---

# Mini Project on Electricity Bill Calculator in C Language

In this Article I explain about Mini Project on Electricity Bill Calculation, This Mini Project is developed in C Language. I have used Dev C++ IDE to compile & run this project.\

1. Pen IDE, below is snap of IDE I used.

![Mini Project on Electricity Bill Calculator in C Language](https://www.mindstick.com/mindstickarticle/1d342dae-5135-4380-b3f8-d6f58aeb4658/images/d3209929-a860-403d-b6db-791c0bcd355c.png)

\

2. Go to Menu Bar > file > New > Project\

![Mini Project on Electricity Bill Calculator in C Language](https://www.mindstick.com/mindstickarticle/1d342dae-5135-4380-b3f8-d6f58aeb4658/images/18f5369e-413c-44b2-b36d-8eb102bbb5aa.png)

3. Select Consol Application & give name to your project then press ok button.

\

![Mini Project on Electricity Bill Calculator in C Language](https://www.mindstick.com/mindstickarticle/1d342dae-5135-4380-b3f8-d6f58aeb4658/images/1e4feb96-9cc3-4f89-8b85-e3fd9b8b2dc9.png)

4. Save Your Project on Desktop (You can save anywhere in you machine)

![Mini Project on Electricity Bill Calculator in C Language](https://www.mindstick.com/mindstickarticle/1d342dae-5135-4380-b3f8-d6f58aeb4658/images/45148d1f-2f9f-42b3-a0de-aa6ea4d4817e.png)

Now time to code your Program for Electricity Calculation, Below given Program is helpful for calculation of monthly Electricity Bill's Write below given code in code window.

```
#include<stdio.h>

#include<conio.h>



int main()

{

    int units;

    float total_bill;

    printf("\n\nYOU ARE WELLCOME IN ELECTRTICITY BOARD DEPPARTMENT\n.\n");

    printf("ELECTRICITY BOARD RATE CHART (Rates/Unit)\n\n");

    printf("An electricity board charges the following rates to domestic users to discourage large consumption of energy:\n\n");

    printf("0 Unit to 50 Units ..................................=Rs.2.5/Unit\n\n");

    printf("51 Unit to 100 Units .............................. =Rs.3/Unit\n\n");

    printf("101 Unit to 200 Units .............................. =Rs.3.5/Unit\n\n");

    printf("201 Unit to 300 Units .............................. =Rs.4/Unit\n\n");

    printf("301 Unit to 400 Units .............................. =Rs.4.5/Unit\n\n");

    printf("401 Unit to 500 Units .............................. =Rs.4.75/Unit\n\n");

    printf("and more than 500 Uits .............................. =Rs.5/Unit\n");

    printf(".............................................................\n\n");

    printf("\nPlease enter the number of units which has been consumped as per meter\n\n");

    scanf("%d",&units);

    if(units <= 50)

            total_bill = units * 2.5;

    else if(units <= 100)

            total_bill = units * 3;

    else if(units <= 200)

           total_bill = units * 3.5;

     else if(units <= 300)

           total_bill = units * 4;

     else if(units <= 400)

           total_bill = units * 4.5;

     else if(units <= 500)

           total_bill = units * 4.75;

     else

           total_bill = units * 5;

      printf("\n\nthe bill to be paid by you Rs.%f", total_bill);

      getch();

}
```

##### Output: -

##### \

![Mini Project on Electricity Bill Calculator in C Language](https://www.mindstick.com/mindstickarticle/1d342dae-5135-4380-b3f8-d6f58aeb4658/images/cdbaeeb0-f736-4747-8ce2-ace77b4eb4bf.png)

---

Original Source: https://www.mindstick.com/articles/1374/mini-project-on-electricity-bill-calculator-in-c-language

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
