You are on page 1of 32

VISVESVARAYA TECHNOLOGICAL UNIVERSITY

Jnana Sangama, Belagavi- 590 018

A
Mini Project Report
On
Cable and Wi-Fi Management Systems
Submitted in partial fulfillment for the award of the Bachelor of Engineering degree
In
Computer Science and Engineering
V Semester
15CSL58 – DBMS Laboratory with Mini Project
For the academic year 2017 – 2018

By

Akash Kumar Jain S 1HK15CS007


Bharat Raina 1HK15CS024

Under the guidance of


Ms. Vijayalakshmi V
Assistant Professor, Department of Computer Science and Engineering
November 2017

Department of Computer Science & Engineering


HKBK COLLEGE of ENGINEERING
(Approved by AICTE & Affiliated to VTU)
22/1, Nagawara, Arabic College Post, Bangalore-45, Karnataka
Email: info@hkbk.edu.in URL: www.hkbk.edu.in
2017 - 2018
HKBK COLLEGE of ENGINEERING
Nag aw ar a, Ba n g a lo r e – 5 6 0 0 4 5
Approved by AICTE & Affiliated to VTU

Department of Computer Science and Engineering

Certificate
Certified that the Project Work entitled “Cable and Wi-Fi Management”, carried out by Akash
Kumar Jain S(1HK15CS007) and Bharat Raina (1HK15CS024) bonafide students of HKBK
COLLEGE of ENGINEERING, in partial fulfillment for the award of Bachelor of Engineering in
Computer Science and Engineering of the Visvesvaraya Technological University, Belgavi,
during the year 2017–18. It is certified that all corrections/suggestions indicated for Internal
Assessment have been incorporated in the report deposited in the departmental library. The project
report has been approved as it satisfies the academic requirements in respect of 15CSL58–DBMS
Laboratory with Mini Project prescribed for the said Degree.

_____________________ _____________________
Ms. Vijayalakshmi V Dr. Loganathan R
Guide Professor &HOD

External Viva
Name of the Examiners Signature with Date

1. _______________________________

2. _______________________________ ______________________________
ABSTRACT
Internet, it has changed the way we look at the world. We are now broader and better open to information, internet,
getting connected to social platforms, having a stage to voice your opinion. It has all become true due to the internet.

We here believe that the internet should be everyone’s right and hence we try to provide every user with the best
services possible.

The cable and Wi-Fi management systems provide the users the chance to be open to the world of new plans and
services provided and hence giving the users all they would dream of to get and the types of cable services provided to
them, hence obtaining maximum entertainment without much inconvenience.

This also enables the administrator and managers to look after the work and make sure that maximum profit for the
organization is being obtained and hence, the overview of Cable & Wi-Fi Management Systems.

I
ACKNOWLEDGEMENT

We are grateful to the Chairman, Mr. C.M. Ibrahim and the Director Mr. Faiz Mohammed
C.M. for having provided us with excellent facilities in the college during our course.

We are indebted to the Principal, for facilitating a congenial academic environment in the college.

We are grateful to Dr. Loganathan R, HOD, Dept. of CSE for his kind support, guidance and
motivation during the course of this project work.

We would like to thank our guide, Ms. Vijayalakshmi V and all the staff members of Computer
Science and Engineering Department and our friends who have directly or indirectly helped us
with valuable suggestions in the successful completion of this project.

Akash Kumar Jain S 1HK15CS007


Bharat Raina 1HK15CS024

II
TABLE OF CONTENTS

ABSTRACT I

ACKNOWLEDGEMENT II

TABLE OF CONTENTS III

LIST OF FIGURES IV

LIST OF TABLES V

1. INTRODUCTION 1

2. SYSTEM REQUIREMENTS 2

2.1. Functional Requirements. 2

2.2. Non Functional Requirements. 3

2.3. Hardware Requirements. 4

2.4. Software Requirements. 4

3. SYSTEM DESIGN 5

3.1. System Architecture. 5

3.2. ER-Diagram. 6

3.3. Schema Diagram. 7

4. SYSTEM IMPLEMENTATION 8

4.1. Tools And Languages Used. 8

4.2. Source Code for all Functions. 9

5. SNAPSHOTS 13

6. CONCLUSION 24

7. BIBLIOGRAPHY 25

III
List of Figures

Serial Number Figure Number Figure Name Page Number


1 3.1 System Architecture 5
2 3.2 ER Diagram 6
3 3.3 Schema Diagram 7
4 5.1 Snapshot 1 –Login Page 13
5 5.2 Snapshot 2 – Admin Page 13
6 5.3 Snapshot 3 – Admin Login 14
7 5.4 Snapshot 4 – User Login 14
8 5.5 Snapshot 5 – Manager Login 15
9 5.6 Snapshot 6 – Add New User 15
10 5.7 Snapshot 7 – Delete Existing User 16
11 5.8 Snapshot 8 – Getting Information 16
12 5.9 Snapshot 9 – Update Area ID 17
13 5.10 Snapshot 10 – User Page 17
14 5.11 Snapshot 11 – Manager Page 18
15 5.12 Snapshot 12 – Add Wi-Fi Plan 18
16 5.13 Snapshot 13 – Delete Existing Wi-Fi Plan 19

IV
List of Tables

Serial Number Table Number Table Name Page Number


1 5.14 Area Table 20
2 5.15 Cable Properties Table 20
3 5.16 Collectors Table 20
4 5.17 Manager Table 21
5 5.18 Servers Table 21
6 5.19 Wi-Fi Properties Table 21
7 5.20 Clients Table 22

V
Chapter 1: Introduction

We all belonged to places and times where we would have nothing but the sun and now, we are in an
era where Internet is the sensation. Everyone from the small kids to the grown-ups, businessmen to
companies, everyone we know around us is evolving with the internet. We are now so dependent on the
internet that half or almost ninety percent of our work depends on the internet. From applications such as the
Drive storages to downloading files to video conferences and so on.

You name it and the internet provides it you. Man would be fine with the speed he gets outside his
home. But inside his home is where he is the most of himself and hence, he needs to be provided with the best
speeds of the internet and with a delight of television of his choice. Our database management system takes
care of this information about the plans and his subscription to the plans. He can take care of his account and
if he has any difficulties, he can send a message to the server manager who will take care of the necessary
things.

The server manager can be able to access the database information and hence is able to determine what
the users may need. We have an administrator who handles the whole database and grants access to each kind
of user that would interact with the database. We have specialized windows that provide the users their access
that are provided with a username and password. Entering the details would give them their respective pages
and hence, they can access the information required. This is the cable and Wi-Fi management systems of the
day.

The database maintains information about the plans of the Wi-Fi and the cable services that the
company would provide to the users, the server managers. This database is handled by the administrator who
has the right to grant access users to the information in the database. The administrator using his privilege
writes code that can be used by the users and the managers to access the database. This would be the front-end
design that is used to access the database. The manager is the person who handles the servers and is the person
to be contacted during new changes that the client requires. The client sends a message to the manager on his
phone number and this information is then forwarded to the administrator to make the necessary changes in
the database.

The cable and Wi-Fi management systems provide the users the chance to be open to the world of new
plans and services provided and hence giving the users all they would dream of to get and the types of cable
services provided to them, hence obtaining maximum entertainment without much inconvenience. This also
enables the administrator and managers to look after the work and make sure that maximum profit for the
organisation is being obtained and hence, Cable & Wi-Fi Management Systems.

Through Cable and Wi-Fi Management Systems, we goal ourselves to certain expected outcomes as
discussed below:
 Allow Users to know their plans opted and also show them newer plans so as to give them the open-
ness that they deserve.

 Allow the managers to look out for the growth of the business by keeping track of how many
customers have been allocated in what areas.

 To allow the Administrator make every necessary changes on the database.

 To allow the users the ability to send messages to their respective managers and hence to help them get
the best of service.

Department of CSE 1 2017-2018


Chapter 2: System Requirements

2.1 Functional Requirements:


The cable and WIFI management system provides the following functions so as to provide maximum
efficient use of the database.

1. Administrator :
 Add New Plans: The administrator can add new plans into the database.
 Send Notifications: The administrator can send notifications to the users about newer plans and other
information.
 Add users: The administrator can add users to the database.
 Delete users: The administrator can delete users to the database.
 Delete existing plans: The administrator can delete existing plans from the database.
 Search for users: The administrator can search for an existing user in the database.
 Search plans: The administrator can search for existing plans in the database.

2. Users :
 Search plans: The user can search for existing plans in the database.
 View Data: The user can view his data on the database.
 Request for plan change: The user can request the administrator for a change in his current plan.

3. Server Managers :
 Search for users: The administrator can search for an existing user in the database.
 View Data: The Manager can view data about the user and his plan used.
 Allot Collector: The Manager can allot collectors to collect money and feedback from the users based
on the locality the collectors come under.
 Information Updates: The Manager sends information to the administrator to update new plans for the
users.

Department of CSE 2 2017-2018


Cable and Wi-Fi Management Database System Requirements

2.2 Non Functional Requirements


Performance:
The performance parameter is the time taken by the software to run the application or the speed in which the
operations are performed. The application must be run on NetBeans. The time taken to build and run the
application in the system used in developing the application is approximately five seconds. Exceeding this
time limit can only occur if the background project scan and the Class-path scanning is not completed this
may occur due to the improper start of the system after Shutdown.

Reliability:
The reliability of the application is the occurrence of failure and how the system deals with this failure. If any
invalid input is put into the application by the user then the application is designed to trigger an invalid input
message for the user. Or if the user tries to violating the constraints during the insertion of data the triggers
are sent as a warning so that the user can make changes in the respective fields.

Security:
To work on the application the user has to fill in the username and password assigned to the user by the
administrator. This is due to the security concerns of the application. The login makes the application more se-
cure by restricting the unauthorised users to be able to access and manipulate confidential data.

Usability:
The application does not depend on any network to connect to the database, This can be done in an offline
mode by using the local host. The localhost resolves to the IP address 127.0.0.1, which is the most
commonly used IPv4 loopback address.

Maintainability:
Any changes regarding the functionality or the interface of the application can be made easily since Java
swings is used as a language to develop the application where the developer need just select whatever changes
he needs to add on and rebuild the JFrame forms. The coding part is also made simple since very less change
is made in each frame functionality.

Efficiency:

The application can provide the user with accurate data immediately when the data is searched. This is be-
cause there is no ambiguity in the data or loss of data due to the security measures taken by the admin.
The data is well protected and can be viewed when necessary only by any authorised users.


Department of CSE 3 2017-2018


Cable and Wi-Fi Management Database System Requirements

2.3 Hardware requirements


1. Microsoft Windows Vista SP1/Windows 7 Professional
 
 Processor: 800MHz Intel Pentium III or equivalent
 
 Memory: 512 MB
 Disk space: 750 MB of free disk space 

2. Ubuntu 9.10
 Processor: 800MHz Intel Pentium III or equivalent

 Memory: 512 MB
 
Disk space: 650 MB of free disk space

3. Macintosh OS X 10.7 Intel


 
 Processor: Dual-Core Intel
 Memory: 2 GB

 Disk space: 650 MB of free disk space

2.4 Software Requirements


NetBeans IDE is a modular, standards-based integrated development environment (IDE), written in the
Java programming language. The NetBeans project consists of a full-featured open source IDE written in the
Java programming language and a rich client application platform, which can be used as a generic frame-
work to build any kind of application.
NetBeans IDE runs on the Java SE Development Kit (JDK) which consists of the Java Runtime
Environment and developer tools for compiling, debugging, and running applications written in the Java
language. The tested JDK for this release is JDK 8u101 for Windows, Linux, and OS X. The 8.2 version of
the IDE can-not be installed or run on the JDK older than JDK 8.

The application is developed using Java Programming language with swing GUI framework. The
database used is MySQL.


Department of CSE 4 2017-2018


Chapter 3: System Design
3.1 System Architecture

Fig. 2.1 System Architecture

1. Database:
The database holds all the data of the Wi-Fi and the cable services the company provides to the clients
and also information of the collectors and managers and all who interact with the database.

2. Administrator:
The Administrator looks after all the working, updates, needs of the users, managers and the full working
of the database. He has designed certain access routines / Specialized Interfaces that can be used by the
users and the managers for their working.

3. Users:
The users can access information about their plans that have been undertaken and are always kept to date
with the new plans that the company has introduced for their well being.

4. Server Manager:
The server managers look after the collectors who visit the clients under their jurisdiction and collect the
money for their service undertaken. The Manager also looks after the well being of the clients and looks
after their complaints.

5. Cable and Wi-Fi Management system:


The cable and Wi-Fi management systems looks after the database by implementing software and
hardware used to store data into the database

Dept. of CSE, HKBKCE 5 2017-2018


Cable and Wi-Fi Management Database System Design

3.2 ER Diagram:

Fig. 2.2 ER Diagram

Dept. of CSE, HKBKCE 6 2017-2018


Cable and Wi-Fi Management Database System Design

3.4 Schema Diagram:

Fig. 2.3 Schema Diagram


Dept. of CSE, HKBKCE 7 2017-2018


Chapter 4: System Implementation

4.1 Tools and Languages Used


The NetBeans integrated development environment (IDE) delivers. The NetBeans IDE can boost
your productivity when you're working with Java SE, Java EE, or Java ME technology as well as PHP,
Groovy, JavaScript, and C/C++. Visual tools that generate skeleton code are also available, letting you create
a basic application without writing a single line of code.

▪ Works Out of the Box:



Simply download and install the NetBeans IDE and you are good to go. Installation is a breeze with its
small download size. All IDE tools and features are fully integrated—no need to hunt for plug-ins—
and they work together when you launch the IDE.

▪ Free and Open Source:



When you use the NetBeans IDE, you join a vibrant, open-source community of thousands of users
ready to help and contribute. There are discussions on the NetBeans mailing lists, blogs on PlanetNet-
Beans, and helpful FAQs.

▪ Connected Developer:

The NetBeans IDE is the tool of choice for teams working in a collaborative environment. You can
create and manage java.net-hosted projects, for example; file issue tracking reports using both Jira and
Bugzilla, and collaborate with like-minded developers—all directly from within the familiar interface
of the IDE.

▪ Powerful GUI Builder:



The GUI Builder (formerly known as Project Matisse) supports a sophisticated yet simplified Swing
Application Framework and Beans Binding. Now you can build GUIs in a natural way.
 Support for
Java Standards and Platforms

The IDE provides end-to-end solutions for all Java development platforms including the latest Java
standards.

▪ Non-Java Code Support:



You're not limited to the Java programming language. You can include many other programming
languages, such as C/C++, scripting languages like JavaScript, etc. Even more exciting, define your
own language and include it in your projects. Dedicated Support Available


Dept. of CSE, HKBKCE 8 2017-2018


Cable and Wi-Fi Management Database System Implementation

1. XAMPP :
▪ It is Easy to Install as compare to other web server's like WAMP.
▪ It is Multi Cross Platform which means XAMPP is available for Windows and Linux.
▪ It also comes with a number of other modules including OpenSSL, PHPMyAdmin,
MediaWiki, Joomla, WordPress and more.
▪ XAMPP is offered in both a full and a standard version (Smaller version).
▪ You can start and stop the whole webserver+database stack with one command.

2. Swing:
▪ Swing provides both additional components and added functionality to AWT-replacement components.
▪ Swing components can change their appearance based on the current "look and feel" library that's being
used. You can use the same look and feel as the platform you're on, or use a different look and feel.
▪ Swing components follow the Model-View-Controller paradigm (MVC), and thus can provide a
much more flexible UI.
▪ Swing provides "extras" for components, such as:

- Icons on many components.


- Decorative borders for components.
- Tooltips for components.
- Swing components are lightweight (less resource intensive than AWT).
- Swing provides built-in double buffering.
- Swing provides paint debugging support for when you build your own components.

4.2 Line of Code


1. Insert code for Clients Table:
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
String cid = ClientID.getText();
String cname = ClientName.getText();
String area=AreaID.getText();
String server=ServerID.getText();
String wifi=WIFIID.getText();
String cable=CableID.getText();
String subs=SubscriptionFor.getText();
try {
Class.forName("com.mysql.jdbc.Driver");
conn =
DriverManager.getConnection("jdbc:mysql://localhost:3306/cableandwifimanagementsystems","root","");
pst= conn.prepareStatement("insert into client values(?,?,?,?,?,?,?)");
pst.setString(1, cid);
pst.setString(2, cname);
pst.setString(3, area);
pst.setString(4, server);
pst.setString(5, wifi);
pst.setString(6, cable);
pst.setString(7, subs);
int i = pst.executeUpdate();
if(i>0){
JOptionPane.showMessageDialog(null, "data is saved");
}

Dept. of CSE, HKBKCE 9 2017-2018


Cable and Wi-Fi Management Database System Implementation

else {
JOptionPane.showMessageDialog(null, "data is not saved");
}
} catch (Exception ex) {
JOptionPane.showMessageDialog(null,ex);
}
update_table();
}

2. Delete code For Clients:

private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {


String i =ClientID.getText();
Connection conn = null ;
PreparedStatement ps = null ;
try {
Class.forName("com.mysql.jdbc.Driver");
conn =
DriverManager.getConnection("jdbc:mysql://localhost:3306/cableandwifimanagementsystems","root","");
ps= conn.prepareStatement("delete from client where ClientID=?");
ps.setString(1, i);
int n = ps.executeUpdate();
if(n>0){
JOptionPane.showMessageDialog(null, "data is deleted");
}
else {
JOptionPane.showMessageDialog(null, "data is invalid");
}
} catch (Exception ex) {
JOptionPane.showMessageDialog(null,ex);
}
update_table();
}

3. Reset code:

private void ResetActionPerformed(java.awt.event.ActionEvent evt) {


ClientID.setText(null);
ClientName.setText(null);
AreaID.setText(null);
ServerID.setText(null);
WIFIID.setText(null);
CableID.setText(null);
SubscriptionFor.setText(null);
}

6. Search code for Collectors:


private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
try {
String i = CollectorID.getText();
Connection conn = null ;
Class.forName("com.mysql.jdbc.Driver");
conn =
DriverManager.getConnection("jdbc:mysql://localhost:3306/cableandwifimanagementsystems","root","");
pst= conn.prepareStatement("select * from collectors where CollectorID=?");

Dept. of CSE, HKBKCE 10 2017-2018


Cable and Wi-Fi Management Database System Implementation

pst.setString(1, i);

//Excuting Query
ResultSet rs = pst.executeQuery();

if (rs.next()) {
String s = rs.getString(2);
String s1 = rs.getString(3);
CollectorName.setText(s);
AreaID.setText(s1);

} else {
JOptionPane.showMessageDialog(null, "ID not Found");
}

} catch (Exception ex) {

System.out.println(ex);
}

5. Display code for Tables:


private void update_table(){
String sql = "select cl.ClientID,cl.ClientName,c.CollectorID,c.CollectorName from collectors c,client cl
where c.AreaID in(select a.AreaID from area a where a.AreaID=cl.AreaID) group by cl.ClientID";
try{
Class.forName("com.mysql.jdbc.Driver");
conn =
DriverManager.getConnection("jdbc:mysql://localhost:3306/cableandwifimanagementsystems","root","");
pst=conn.prepareStatement(sql);
rs=pst.executeQuery();
table.setModel(DbUtils.resultSetToTableModel(rs));
}catch(Exception e){
JOptionPane.showMessageDialog(null, e);
}
}

6. Update code for Clients:

private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {


try {
String cid = ClientID.getText();
String area=AreaID.getText();
String sql = "update client set AreaID = '"+area+"' where ClientID='"+cid+"'";
Class.forName("com.mysql.jdbc.Driver");
conn =
DriverManager.getConnection("jdbc:mysql://localhost:3306/cableandwifimanagementsystems","root","");
pst= conn.prepareStatement(sql);

Dept. of CSE, HKBKCE 11 2017-2018


Cable and Wi-Fi Management Database System Implementation

pst.execute();
int i = pst.executeUpdate();

if(i>0){
JOptionPane.showMessageDialog(null, "data is updated"); 11
}
else {
JOptionPane.showMessageDialog(null, "data is not updated");
}
} catch (Exception ex) {
JOptionPane.showMessageDialog(null,ex);
}
update_table();
}

Dept. of CSE, HKBKCE 12 2017-2018


Chapter 5: Snapshots
I. Login Page:

Fig. 5.1 Login Page

II. Admin Page:

Fig. 5.2 Admin Page 


Dept. of CSE, HKBKCE 13 2017-2018


Cable and Wi-Fi Database Management Snapshots

III. Admin Login:

Fig. 5.3 Admin Login

IV. User Login:

Fig. 5.4 User Login


Dept. of CSE, HKBKCE 14 2017-2018
Cable and Wi-Fi Database Management Snapshots

V. Manager Login:

Fig. 5.5 Manager Login

VI. Add New User:

Fig. 5.6 Add New User

Dept. of CSE, HKBKCE 15 2017-2018


Cable and Wi-Fi Database Management Snapshots

VII. Delete Existing User:

Fig. 5.7 Delete Existing User

VIII. Getting Information:

Fig. 5.8 Getting Information

Dept. of CSE, HKBKCE 16 2017-2018


Cable and Wi-Fi Database Management Snapshots

IX. Update Area:

Fig. 5.9 Update Area

X. User Page:

Fig. 5.10 User Page

Dept. of CSE, HKBKCE 17 2017-2018


Cable and Wi-Fi Database Management Snapshots

XI. Manager Page:

Fig. 5.11 Manager Page

XII. Add Wi-Fi Plan:

Fig. 5.12 Add Wi-Fi Plan

Dept. of CSE, HKBKCE 18 2017-2018


Cable and Wi-Fi Database Management Snapshots

XIII. Delete Wi-Fi Plan:

Fig. 5.13 Delete Wi-Fi Plan

Dept. of CSE, HKBKCE 19 2017-2018


Cable and Wi-Fi Database Management Snapshots
List of Tables:
1. Area Table:

Fig. 5.14 Area Table

2. Cable Properties Table:

Fig. 5.15 Cable Properties Table


3. Collectors Table:

Fig. 5.16 Collectors Table

Dept. of CSE, HKBKCE 20 2017-2018


Cable and Wi-Fi Database Management Snapshots

4. Manager Table:

Fig. 5.17 Managers Table

5. Servers Table:

Fig. 5.18 Servers Table


6. Wi-Fi Properties:

Fig. 5.19 Wi-Fi Properties


Dept. of CSE, HKBKCE 21 2017-2018
Cable and Wi-Fi Database Management Snapshots

7. Clients Table:

Dept. of CSE, HKBKCE 22 2017-2018


Cable and Wi-Fi Database Management Snapshots

Fig. 5.20 Clients Table

Dept. of CSE, HKBKCE 23 2017-2018


Chapter 6: Conclusion
The cable and Wi-Fi management system keeps track of the status of the business by showing the
managers how many customers they have in their jurisdiction and bringing up plans to make the profit better.

The users are always up-to-date with the plans that are available and hence are always given the best
choices for their needs. This helps keep everyone on the track with the updates.

The administrator can in future make updates on the access codes in such a way that the users can
directly send messages to the managers of their area and hence and book a complaint, make a change of plan
or just any information that the users want for their convenience.

Since there may be many spam messages also arriving, there can be an application that filters all spam
and hence forwards only those messages which are found to be useful and of some meaning that pertains to a
particular format that is specified during the time of service introduction.

This is the Cable and Wi-Fi Database Management Systems.

Dept. of CSE, HKBKCE 24 2017-2018


Chapter 7: Bibliography
MySQL server documentations. (https://dev.mysql.com/doc/)
NetBeans Documentations. (https://netbeans.org/kb/)
Explanations through YouTube Search (https://www.youtube.com/)
Ms. Vijaylakshmi and Ms. Sumathi (Guides)
XAMPP Documentation (https://www.apachefriends.org/faq_windows.html)
Database Management Textbook by Ramez Elmsari and Shamkant B, Ramakrishnan and Gehrke.
Ms. Pushpa Mohan, Professor at HKBKCE.

Dept. of CSE, HKBKCE 25 2017-2018

You might also like