A REPORT OF SIX WEEKS INDUSTRIAL TRAINING
At
APTECH LEARNING INSTITUTE LUDHIANA
SUBMITTED IN PARTIAL FULFILLMENT OF THE REQUIREMENT FOR THE
AWARD OF THE DEGREE OF
BACHELOR OF TECHNOLOGY
(Electronics & Communication Engineering)
JUNE-JULY, 2019
SUBMITTED BY: UNDER THE GUIDANCE OF:
AMANDEEP SINGH (1706704) LOUIIE ABHISHEK
AJIT SINGH(1706703) DESIGNATION : S.D.E .IT
DEPARTMENT OF ELECTRONICS & COMMUNICATION ENGINEERING
GURU NANAK DEV ENGINEERING COLLEGE LUDHIANA
(An Autonomous College under UGC ACT)
CANDIDATE DECLARATION
I “AMANDEEP SINGH” declare that I have undertaken 6 weeks training in of Java Core
Programming Language at Aptech Institute , Ludhiana during a period from 07 June to 21 July
in practical fulfillment of requirements for graduation in electronics and communication
engineering. The work which is being presented in the training report submitted to department
of electronics and communication engineering at GURU NANAK DEV ENGINEERING
COLLEGE LUDHIANA is an authentic record of training work.
Signature of student:
The industrial training viva-voice Examination of has been held on
and accepted.
Signature of Internal examiner Signature of external examiner
CANDIDATE DECLARATION
I “AJIT SINGH” declare that I have undertaken 6 weeks training in of Java Core Programming
Language at Aptech Learning Institute , Ludhiana during a period from 07 June to 21 July in
practical fulfillment of requirements for graduation in electronics and communication
engineering. The work which is being presented in the training report submitted to department
of electronics and communication engineering at GURU NANAK DEV ENGINEERING
COLLEGE LUDHIANA is an authentic record of training work.
Signature of student:
The industrial training viva-voice Examination of has been held on
and accepted.
Signature of Internal examiner Signature of external examiner
ABSTRACT
Today this modern era is world of technology and we cannot achieve anything in this field
until or unless theoretical education acquired in classroom is effectively wedded to its practical
approach. Doing six weeks training at Aptech Learning Institute, Ludhiana helps me in better
understanding and implementation of theoretical knowledge that I gained. During This period I
have studied various concepts about java programming language. I learned java language
which is integral part of designing applications. We studied about the desktop applications
both theoretical as well as practical and also learned the programming and how to create a
desktop application.
ACKNOWLEDGEMENT
We are highly grateful to Dr. Sehajpal Singh, Director, GNDEC, Ludhiana, for providing us
this opportunity to carry out six week training at Aptech Institute, Ludhiana. We express
gratitude to Prof. Ameeta Seehra(HOD, ECE) for their intellectual support.
We would like to express our deep sense of gratitude and thank profusely to Abhishek Kumar
at Aptech Learning Institute who instructed us and assisted us during the training period. We
also thanks to the programming department for provision of excellent all the latest equipment’s
and resources for us to utilize. Training here was itself true learning experience which is going
to help us immensely in our career.
ABOUT THE INSTITUTION
Aptech Learning is the pioneer in education & skill-building since 1986 across various
industries & countries. Join Aptech Learning to kick-start your career with industry-relevant
curriculum for developing in-demand skills, and get prepared for job opportunities in top
companies.
WHY APTECH LEARNING?
Quality education provider since 1986
•Presence across 40 countries
•Training by industry experts
•Job placement assistance*
•Latest curriculum based on industry requirement
•Regular workshops for students' development
LIST OF FIGURES
Figure no: Page no:
Figure 1.1:Features of Java 3
Figure 1.2: Structure of Java program 6
Figure 3.1: The design of login page 16
Figure 3.2: Source code of login page (a) 17
Figure 3.3: Source code of login page (b) 18
Figure 3.4: The design of failed login page 19
Figure 3.5: Source code of failed login page (a) 20
Figure 3.6: Source code of failed login page (b) 21
Figure 3.7: Design of paying mode 21
Figure 3.8: Source code of paying mode (a) 22
Figure 3.9: Source code of paying mode (b) 23
Figure 3.10: Design of recharge frame 24
Figure 3.11: Source code of recharge frame(a) 25
Figure 3.12: Source code of recharge frame(b) 26
Figure 3.13:Design for pay electricity bill 27
Figure 3.14: Source code for pay electricity bill(a) 28
Figure 3.15: Source code for pay electricity bill(b) 29
Figure 3.16: Source code for pay electricity bill(c) 30
Figure 3.17: Design for pay water bill 30
Figure 3.18: Source code for pay water bill(a) 31
Figure 3.19: Source code for pay water bill(b) 32
Figure 3.20:Source code for pay water bill(c) 33
Figure 3.21:Testing for login page 34
Figure 3.22:Testing for pay bills 35
Figure 3.23: Testing for enter wrong details 36
Figure 3.24: Testing for pay water bill 37
Figure 3.25: Testing for get receipts 38
Figure 3.26: Testing for get printed bill receipts 39
CONTENTS
Topic Page No.
Certificate by Company/Industry/Institute i
Candidate’s Declaration ii
Abstract iii
Acknowledgement vi
About the institute v
List of Figures vi
CHAPTER 1 INTRODUCTION 1-10
1.1 Overview of Java Programming 1
1.2 Features of Java 1- 3
1.3 Object and Class 4
1.4 Data Type 5
1.5 Operators and Types 5-6
1.6 Programming Concepts 6-8
1.7 Java Object Oriented 8-9
1.8 Method Overloading 10
CHAPTER 2 PROJECT DESIGN 11-13
2.1 Project Prospective 11
2.2 Project Functions 11-12
2.3 Project Constrains 12
2.4 User Characterstics 12-13
2.5 Equipments and Apparatus Required 13
2.6 Methodology 13
CHAPTER 3 DEVELOPMENT AND IMPLEMENTATION 14-39
3.1 Introduction to tool (Netbeans) 14
3.2 Another Supporting tools used 15
3. 3 Project frames and source using screen shots 16-27
3.4 Testing and Verification 28-39
CHAPTER 4 CONCLUSION & FUTURE SCOPE 40-42
4.1 Conclusion 40
4.2 Future Scope 41
REFERENCES 42
CHAPTER 1 - INTRODUCTION
1.1 OVERVIEW OF JAVA PROGRAMMING:
Java is a platform independent, more powerful, secure, high preformance,multithreaded
programming [Link] we discuss some points related to java.
The Java Runtime Environment (JRE) is part of Java Development Kit (JDK).it contains set
of libraries and tools for developing java [Link] Java Runtime Environment
provides the minimum requirements for executing a java application.
JVM is a set of programs developed by sun micro systems and supplied as a part of JDK for
reading line by line of byte code and it converts into native understanding form of operating
system. Java language is one of the compiled and interpreted programming language.
1.2 Features Of JAVA
Features of a language are nothing but the set of services or facilities provided by the language
vendors to the industry programmers. Some important features are:
Simple: Java has made life easier by removing all the complexities such as pointers, operator
overloading as you see in C++ or any other programming language.
1
Portable: Java is platform independent which means that any application written on one platform
can be easily ported to another platform.
Object-oriented: Everything is considered to be an Object which posses some state, behavior and
all the operations are performed using these objects.
Secured: All the code is converted in bytecode after compilation, which is not readable by a
human and java does not use an explict pointer. It enables to develop virus-free, tamper-free
system/applications.
Dynamic: It has ability to adapt to an evolving environment which supports dynamic memory
allocation due to which memory wastage is reduced and performance of the application is
increased.
Distributed: Java provides a feature which helps to create distributed applications. Using
remote method invocation (RMI), a program can invoke a method of another program across a
network and get the output. You can access files by calling methods from any machine on
internet.
Robust: Java has strong memory management system. It helps in eliminating error as it checks
the code during compile and runtime.
fig. 1.1 Features Of Java
High Performance: Java achives high performance through the use of byte code which can
be easily translated into native machine code. With the use of JIT compiler, java enable high
performace.
Interpreted: Java is compiled to bytecodes, which are interpreted by a java run-time environment.
Multithreaded: Java supports multiple threads of execution including a set of synchronisation
primitives. This make programming with threads much easier.
1.3 Object And Class
Object is the physical as well as logical entity where as class is the only logical entity.
Class: Class is a blue print which is containing only list of variables and methods and no
memory is allocated to them. A class is a group of objects that has common properties.
A class in Java contains:
1. Data Member
2. Method
3. Constructor
4. Block
5. Class and Interface
Object: Object is an instance of class, object has state and behaviours. An object in Java has
three characteristics:
1. State: Represents value of a object.
2. Behaviour: Represents the functionality of a object such as deposit, withdraw etc.
3. Identity: Object identity is implemented via unique ID. The value ID is not visible to
external user. But, it used internally by the JVM to identify the each object uniquely.
1.4 Data Types
Data Type is a special keyword used to allocate memory space for the data, n other words
data types is used for representing the data in main memory (RAM) of the computer.
1. Fundamental or primitive data types
2. Derived data types
3. User defined data types
Variable is an identifier which hold data or another one variable is an identifier whose value
can be changed at the execution time of program. Variable is an identifier which can be used
to identify input data in program.
1.5 Operators And Its Types
It ia a special symbols performing operation on one, two or three operands and then
returning a result. Java operators are generally classified into different categories:
1. Arithmetic Operator
2. Assignment Operator
3. Relational Operator
4. logical Operator
5. Bitwise operator
6. Ternary or Conditional Operator
1.6 PROGRAMMING CONCEPTS
1.6.1 Structure Of Java Program
Structure of Java program is the standard format released by language developer to the
industry programmer. Sun Micro System has prescribed the following structure for the Java
programmers for developing Java applications.
Fig. 1.2 Structure of a java program
1.6.2 Decision Making Statement
Decision making statements are also called section statements. That is depending upon
condition block need to be executed or not which is decided by condition. If condition is
“true”statement block will executed. If condition is “false” then statement block will not be
[Link] Java there are three types of decision making statement:
1. if
2. if-else
3. switch
1.6.3 Looping Statements
Looping Statements are the statements execute one or more statement repeatedly several
number of times. There are three types of loops:
1. for loop
2. while loop
3. do while
1.6.4 Wrapper Classes
For each and every fundamental data type there exist a pre-defined class is called wrapper class.
The purpose of wrapper class is to convert numeric string data into numerical or fundamental data.
1.6.5Access Modifiers
Access modifiers are those which are applied before data members or methods of class. These
are used to where to access and where not to access data members or methods. In Java
programming we have these access modifiers:
1. Private
2. Protected
3. Public
A constructor in Java is special method that is used to initialize objects. The constructor is
called when an object of class is created.
1.7 Java Object Oriented
1.7.1 Inheritance
The process of obtaining the data members and methods from one class to another class is
known as inheritance. It is one of the fundamental features of object-oriented programming.
1.7.2 Types of inheritance:
1. Single inheritance
2. Multiple inheritance
3. Heirarchical inheritance
4. Multilevel inheritance
5. Hybrid inheritance
1.7.3 Why Use Inheritance?
1. For method overriding.
2. Its main uses are to enable polymorphism and to able to reuse code for different classes by
putting it in a common super class.
3. For re-usability.
1.8 Method Overloading
Whenever same method name is existing multiple times in the Same class with different
number of parameter or different order of parameter or different types of parameter is known
as method overloading.
1.8.1 Different Ways To Overload Method
There are two ways to overload the method in java:
1. by changing number of arguments or parameters.
2. By changing the data type.
3. By changing the order of arguments.
1.8.2 Method Overriding
When ever same method name is existing in both base class and derived class with same types
of parameter or same order of parameter is known as method overriding.
Advantages of Java Method Overriding:
1. Method Overriding is used to provide specific implementation of a method that is already
provided by its super class.
CHAPTER-2 (PROJECT DESIGN)
2.1 PROJECT PROSPECTIVE
The main objective of Java project on billing system is to manage the details of the bills, customer
payments, transactions, logins. It manages all the information about the bills, transaction history
login bills. The project is totally build at administrative end and thus only the administrator is
guaranteed the access. The purpose of the project is to build application program to reduce the
manual work for managing bills,customers, transactions history, payments. It tracks all the details
about the payment, transaction,login.
2.2 PROJECT FUNCTIONS
1. Provide the searching facilities based on various factors, such as bills, payments,
transactions, login.
2. College management system also sells the employee details online for the student details,
employee details, courses
3. It track all the information about the customer transaction history, transaction ect.
4. Manage the information of the customer.
5. Show the information and description of bills and payments.
6. To increase the efficiency of managing the bills , customers.
7. To detail with monitoring the information and transactions of Transactions.
8. Manage all the information of the bills.
9. Editing, adding, and updating of the report is improved which result in proper resource
management of bills, data.
10. Manage the information of transaction.
11. Integration of all record of login
2.3 Project Constraints
1. In this project excel export has not been developed for readings, connections due to some
criticality.
2. The transactions are executed in off line mode.
3. Online data for bills, customers capture and modifications is not possible.
4. Off-line reports of bills, units, consumptions cannot be generated due to batch mode
execution.
2.4 User characteristics
This project can be used by the followings:
1. It can be used by administrations of various departments for billing and receipt generation.
2. It can be used by users for paying bills by using their login credentials.
3. It can be used by the people which have knowledge of data entry and using the computer.
2.5 Equipements and apparatus required
1. Laptops/Computer
2. Netbeans / Eclipse installed
3. JDK(Java Development Kit)
4. Printer
2.6 Methodology
1. A java application is formed first then under this a package is created.
2. In this J frame form namely Login page is formed and then three buttons are placed in this
design
3. Further if it satisfies the condition of logging in (i.e. username and password matched) then
a new frame (login2) is called otherwise the new frame (login1) is called.
4. Then if login successfully it shows 4 buttons namely Recharge, Electricity bill ,Water bill
and logout.
5. A new J frame is called behind every button.
6. For e.g if we click on Electricity bill then after filling the details it will show the receipt
by clicking on button receipt.
7. After that we can print the receipt by clicking the print receipt button which is further
connected by printer.
Chapter-3 (DEVELOPMENT AND IMPLEMENTATION)
3.1 Introduction to tool(Netbeans)
NetBeans is an open-source integrated development environment (IDE) for developing with Java,
PHP, C++, and other programming languages. NetBeans is also referred to as a platform of
modular components used for developing Java desktop applications. NetBeans is coded in Java and
runs on most operating systems with a Java Virtual Machine (JVM), including Solaris, Mac OS,
and Linux.
NetBeans manages the following platform features and components:
1. User settings
2. Windows (placement, appearance, etc.)
3. NetBeans Visual Library
4. Storage
5. Integrated development tools
6. Framework wizard
NetBeans uses components, also known as modules, to enable software development.
NetBeans dynamically installs modules and allows users to download updated features.
3.2 Another Supporting tools used
The Java Development Kit (JDK) is one of three core technology packages used in Java
programming, along with the JVM (Java Virtual Machine) and the JRE (Java Runtime
Environment). It's important to differentiate between these three technologies, as well as
understanding how they're connected:
1. The JVM is the Java platform component that executes [Link] JRE is the on-disk
part of Java that creates the JVM.
2. The JDK allows developers to create Java programs that can be executed and run by the
JVM and JRE.
Developers new to Java often confuse the Java Development Kit and the Java Runtime
Environment. The distinction is that the JDK is a package of tools for developing Java-based
software, whereas the JRE is a package of tools for running Java code.
The JRE can be used as a standalone component to simply run Java programs, but it's also part of
the JDK. The JDK requires a JRE because running Java programs is part of developing them.
3.3 Project Frames and Source code using Screen Shots
3.3.1 The design of login page
Fig.3.1 Design of login page
3.3.2 Source code of login page:
fig. 3.2 Source code of login page (a)
fig.3.3 source code of login page(b)
3.3.3 The design of failed login page
fig. 3.4 Design of failed login page
3.3.4 The Source code of failed login page
fig. 3.5 source code of failed login page(a)
fig.3.6 source code of failed login page(b)
3.3.5 The design of paying mode
fig.3.7Design of paying mode
3.3.6 The Souce code of paying mode
fig.3.8 Source code of paying mode(a)
fig. 3.9 Source code of paying mode(b)
3.3.7 The design of Recharge frame
fig. 3.10 Design of Recharge Frame
3.3.8 The Source Code of recharge frame is:
fig. 3.11 Source code of recharge frame(a)
fig. 3.12 Source code of recharge frame (b)
3.3.9 The design for pay Electricity Bill
fig.3.13 Design for pay electricity Bill
3.4.0 The Source code for pay Electricity Bill
fig. 3.14 Source code for pay electricity bill (a)
fig.3.15 Source code for pay electricity bill(b)
fig.3.16 Source code for pay electricity bill(c)
3.4.1 The design for pay water Bill
fig.3.17 Design for pay water bill
3.4.2The Source code for pay Water bill
fig. 3.18 Source code for pay water bill(a)
fig.3.19 Source code for pay water bill(b)
fig.3.20 Source code for pay water bill (c)
3.5 Testing And Verification
Step 1: First enter your username and password.
Fig.3.21 Testing of login page
Step2: Then press Login button if it satisfied (matched username and password) at backend
then it will logging in.
fig. 3.22 Testing of Pay bills
If condition do not satisfied then it will show this display:
fig. 3.33 Testing for enter wrong details
Step3: We can Recharge our mobile phone or pay electricity bill or water bill we have to press
respective button. For e.g. if we want to pay water bill click on water bill button and a window will
displayed and put the details and amount of bill.
Fig. 3.24 Testing for pay water bill
Step4: Then click on receipt button it will display the receipt of bill:
fig. 3.25 Testing of get receipt
Step5: If we want to get receipt then click on print receipt and then you get print
options and then you get a final receipt of bill.
Fig. 3.26 Testing for get printed bill receipt
Chapter-4 (CONCLUSION AND FUTURE SCOPE)
4.1 Conclusion
We have explode the practicality of doing coding in java. Java can be compiled to the code of
efficiency comparable with C.
A software system to modernize the billing procedure is required. This project would
replace existing traditional type of billing system and would also ensure ease and comfort in
billing. This project would consume less time, less employees required as compared to traditional
system. Customers will get receipt at the instant the bill is paid that would be useful in future for
maintaining records.
4.2 Future Scope
1. This project will help the store keeper, administration [Link] fast billing.
2. This project will help to maintain database of the customers or users.
3. With some advancements, we can make this project to able that user can pay bill and
recharge manually.
Refrences :-
1. [Link]
2. [Link]
3. [Link]
4. [Link]
5. [Link]