0% found this document useful (0 votes)
5 views12 pages

Electricity Bill Management Software

The document outlines a software model for generating electricity bills, including an abstract that introduces the importance of digital record-keeping and the objective of designing a simple C program for managing electricity bills. It provides an algorithm detailing the steps to calculate units consumed and bill amounts based on usage, along with the corresponding C code. The outcome is a working prototype demonstrating basic electricity bill record management.

Uploaded by

vinodkumar447112
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views12 pages

Electricity Bill Management Software

The document outlines a software model for generating electricity bills, including an abstract that introduces the importance of digital record-keeping and the objective of designing a simple C program for managing electricity bills. It provides an algorithm detailing the steps to calculate units consumed and bill amounts based on usage, along with the corresponding C code. The outcome is a working prototype demonstrating basic electricity bill record management.

Uploaded by

vinodkumar447112
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

SOFTWARE MODEL

PREDENTATON TO
GENERATE ELECTRICITY BILL

NAME OF THE STUDENTS


MOHAMMAD ABDUL AREEB (25261A6640)
HARINI KUNCHAL (25261A6639)
VINOD KUMAR (25261A6638)
OMKAR REDDY (25261A6637)
[Link](25261A6636)
INDEX
ABSTRACT
ALGORITHIM
DESIGN(FLOWCHART)
CODE
RESULT SCREEN SHORT
 REFERENCES
ABSTRACT
BREIF INTRODUCTION TO
ELECTRICAL BILL
MANAGEMENT
IMPORTANCE OF DIGITAL
RECORD KEEPIG IN
ELECTRICAL BILL
OBJECTIVE : TO DESIGN A
SIMPLE C PROGRAME
THAT MANAGES
ELECTRICTY
BILLS(ADD,SEARCH,DISPLA
Y)
SCOPE EXTENDABLE TO
INCLUDE BILLING AND FILE
STORAGE
 OUTCOME A WORKING
PROTOTYPE
DEMONSTRATING BASIC
ELECTRICITY BILL RECORD
MANAGEMENT.

ALGORITHM
STEP1 Start
STEP 2 Declarevariables for consumer
number, name, previous reading,
current reading, units, and bill amount
STEP 3 Read consumer number and name

STEP 4 Read previous and current meter


readings
STEP 5 Calculate units consumed
 units = current_reading -
previous_reading
STEP 6 Calculate bill amount based on
units:
 If units ≤ 100 → ₹1.50 per unit
 If units ≤ 200 → ₹2.00 per unit
 If units ≤ 300 → ₹2.50 per unit
 If units > 300 → ₹3.00 per unit
STEP7 Display consumer details, units
consumed, and total bill
STEP 8 Stop

CODE
#include <stdio.h>
int main()
{
int consumer_no;
char name[30];
int prev_reading, curr_reading, units;
float bill = 0;

// Input details
printf("Enter Consumer Number: ");
scanf("%d", &consumer_no);

printf("Enter Consumer Name: ");


scanf("%s", name);

printf("Enter Previous Meter Reading: ");


scanf("%d", &prev_reading);

printf("Enter Current Meter Reading: ");


scanf("%d", &curr_reading);

// Calculate units
units = curr_reading - prev_reading;

// Calculate bill amount


if (units <= 100)
bill = units * 1.50;
else if (units <= 200)
bill = units * 2.00;
else if (units <= 300)
bill = units * 2.50;
else
bill = units * 3.00;

// Display bill
printf("\n----- ELECTRICITY BILL -----\n");
printf("Consumer No : %d\n", consumer_no);
printf("Name : %s\n", name);
printf("Units Consumed: %d\n", units);
printf("Total Amount : Rs. %.2f\n", bill);

return 0;
}

OUTPUT
CHOICE 1

CHOICE 2

CHOICE 3
CHOICE 4

CHOICE 5
FLOW CHART

You might also like