Java Micro
Java Micro
A
MICRO PROJECT
ON
KPIT Page 1
Electricity Billing System
KPIT Page 2
Electricity Billing System
INTRODUCTION :-
Electricity Billing System is a software-based application:-
i. This project aims at serving the department of electricity by computerizing the
billing system.
ii. It mainly focuses on the calculation of units consumed during the specified
time and the money to be charged by the electricity offices.
iii. This computerized system will make the overall billing system easy,
accessible, comfortable, and effective for consumers. To design the billing
system more service oriented and simple, the following features have been
implemented in the project. The application has high speed of performance with
accuracy and efficiency.
The software provides facility of data sharing, it does not require any staff as in
the conventional system. Once it is installed on the system only the meter
readings are to be given by the admin where customer can view all details, it has
the provision of security restriction.
The electricity billing software calculates the units consumed by the customer
and makes bills, it requires small storage for installation and functioning. There
is provision for debugging if any problem is encountered in the system.
The system excludes the need of maintaining paper electricity bill, administrator
does not have to keep amanual track of the users, users can pay the amount
without visiting the office. Thus, it saves human efforts and resources.
The main aim of our project is to satisfy customer by saving their time by
payment process, maintaining records, and allowing the customer to view
his/her records and permitting them to update their details.
KPIT Page 3
Electricity Billing System
OBJECTIVES :-
The objectives of our project are as follows: To keep the information of
customer.
To keep the information of consuming unit energy of current month.
To keep the information of consuming unit energy of previous month.
To calculate the units consumed every month regularly.
To generate the bills adding penalty and rent.
To save the time by implementing payment process online.
FLOWCHART :-
KPIT Page 4
Electricity Billing System
ER-Diagram :-
KPIT Page 5
Electricity Billing System
KPIT Page 6
Electricity Billing System
CODE:-
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.GradientPaint;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Insets;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.text.DecimalFormat;
import javax.swing.BorderFactory;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTextArea;
import javax.swing.JTextField;
import javax.swing.SwingConstants;
import javax.swing.SwingUtilities;
public class ElectricityBillingSystem extends JFrame implements
ActionListener {
KPIT Page 7
Electricity Billing System
mainPanel.add(lblMeterNumber, gbc);
gbc.gridx = 1;
mainPanel.add(tfMeterNumber, gbc);
gbc.gridx = 0; gbc.gridy = 3;
mainPanel.add(btnCalculateBill, gbc);
gbc.gridx = 1;
mainPanel.add(btnClear, gbc);
gbc.gridx = 0; gbc.gridy = 4;
mainPanel.add(btnExit, gbc);
KPIT Page 10
Electricity Billing System
add(mainPanel, BorderLayout.CENTER);
button.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseEntered(java.awt.event.MouseEvent evt) {
button.setBackground(button.getBackground().darker()); // Darker
color on hover
}
return button;
}
KPIT Page 12
Electricity Billing System
if (name.isEmpty() || meterNumber.isEmpty() ||
unitsConsumedStr.isEmpty()) {
throw new Exception("Please fill in all fields.");
}
// Calculate bill
double billAmount = 0.0;
if (unitsConsumed <= 100) {
billAmount = unitsConsumed * 1.5;
} else if (unitsConsumed <= 200) {
billAmount = 100 * 1.5 + (unitsConsumed - 100) * 2.0;
} else {
billAmount = 100 * 1.5 + 100 * 2.0 + (unitsConsumed - 200) * 3.0;
}
KPIT Page 14
Electricity Billing System
OUTPUT:-
KPIT Page 15
Electricity Billing System
KPIT Page 16
Electricity Billing System
CONCLUSION:-
Usability testing was part of the post implementation review and performance
evaluation for the Electricity Online Bill Payment System, in order to ensure
that the intended users of the newly developed system can carry out the
intended task effectively using real data so as to ascertain the acceptance of the
system and operational efficiency.
It caters for consumers’ bills and also enables the administrator to generate
monthly reports. It is possible for the administrator to know the consumers have
made payment in respect of their bills for the current month, thereby improving
the billing accuracy, reduce the consumption and workload on the Electricity
Board employees or designated staff., increase the velocity of electricity
distribution, connection, tariff scheduling and eliminates variation in bills based
on market demand.
The conceptual framework allows necessary adjustments and enhancement
maintenance to integrate future demands according to the technological or
environmental changes with time. It manages the consumers’ data and validates
their input with immediate notification centralized in Electricity Board offices
across the nation.
REFERENCES:-
[1]. Arimoro, T. A., Oyetunji, A. K., &Odugboye, O. E. (2019).
Analysis of Electricity Billing System in Corporate Buildings in Lagos,
Nigeria. Studies, 1(6), 10-20.
[2]. Panthala, S., Islam, N., & Habib, S. A. (2015).
Automated industrial load measurement system. [3]. Adegboyega, A.,
Gabriel, A. A., Ademola, A. J., Victor, A. I., &Nigeri, K. (2013).
Design and Implementation of an Enhanced Power Billing System for
Electricity Consumers in Nigeria. African Journal of Computing & ICT,
6(1).
https://www.google.com/
KPIT Page 17
Electricity Billing System
KPIT Page 18