Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
BY
MAMUDU, FRANCIS I.
(UG14/SCCS/1008)
CONDUCTEDAT
INDUSTRIAL TRAINING.
NOVEMBER, 2017
DECLARATION
I hereby declared that this work is the product of my training effort, undertaken
under the supervision of Mal. Lamido Yahaya and has not been presented and will
requirement.
_______________ _______________
I|Page
CERTIFICATION
This is to certify that the report was carried out under my/our supervision
_______________________
II | P a g e
DEDICATION
III | P a g e
ACKNOWLEDGEMENT
My appreciation first goes to God almighty, the creator of Heaven and
Earth for granting me the grace and privilege to be able to complete this
And also to the Director of SIWES (Gombe State University) for given us
and my tutors for their thorough supervision and useful advice which helped
Department Mal. Muhammad Ahmad kabir for his advice and encouragement.
Lamido Yahaya for his advice and help in fulfillment of my SIWES report.
And finally, I want to thank my parents Mr. Mamudu Friday and Mrs.
Mamudu Grace for their financial support and love. Thanks and GOD bless
you all.
IV | P a g e
TABLE OF CONTENTS
DECLARATION ................................................................................................................................................. I
CERTIFICATION .............................................................................................................................................. II
DEDICATION ................................................................................................................................................... III
CHAPTER ONE ................................................................................................................................................ 1
1.0 INTRODUCTION TO SIWES .......................................................................................................... 1
1.1 AIM AND OBJECTIVES OF SIWES ............................................................................................. 2
1.2 HISTORY OF THE ORGANISATION (KHEMSAFE TECHNOLOGY) ..................................... 3
1.3.0 ORGANISATIONAL CHART OF KHEMSAFE TECHNOLOGY ................................................. 4
Brief description here .............................................................................. Error! Bookmark not defined.
CHAPTER TWO ................................................................................................................................................ 9
WORK EXPERIENCE .................................................................................................................................. 9
2.1. Java Programming .............................................................................................................................. 9
Philosophy .............................................................................................................................................. 10
Basic syntax of java ............................................................................................................................. 12
Exception Handling ...................................................................................................................... 20
Static polymorphism(Method Overloading) ........................................................................... 22
GUI Design(Swing)........................................................................................................................ 26
JDBC(Java database connectivity) .......................................................................................... 27
Concept of JInternalFrame in java GUI builder(Swing) ...................................................... 30
Table 2: Java JInternalFrame. ............................................................................................................. 37
2.2. Introduction to graphics design .................................................................................................... 37
2.3 Ms Access ............................................................................................................................................ 38
2.4 Ms PowerPoint .................................................................................................................................... 39
CHAPER THREE ............................................................................................................................................ 40
APPLICATION OF KNOWLEDGE ACQUIRED .................................................................................... 40
3.1.1 Graphic Design ............................................................................................................................ 40
3.1.2 Java Programming...................................................................................................................... 41
CHAPTER FOUR ............................................................................................................................................ 49
4.1 Summary............................................................................................................................................... 49
4.3 Conclusion ........................................................................................................................................... 49
4.4 Recommendations ............................................................................................................................. 49
REFERENCES ................................................................................................................................................ 51
APPENDICES.................................................................................................................................................. 53
Program source code for supermarket billing system ................................................................... 53
V|Page
LIST OF TABLES
VI | P a g e
LIST OF FIGURES
Figure 7: Loading 35
existing record 36
VII | P a g e
GLOSSARY
Object: - Objects have states and behaviors. Example: A dog has states-color,
name, and breed as well as behaviors -wagging, barking, and eating. An object is
an instance of a class.
It is in methods where the logics are written, data is manipulated and all the
VIII | P a g e
ABBREVIATIONS
IX | P a g e
CHAPTER ONE
INTRODUCTION
1.0 INTRODUCTION TO SIWES
given society. Ochiagha (1995) also posits that practical knowledge is learning
without which mastery of an area of knowledge may be too difficult to achieve and
that practical knowledge involves developing skills through the use of tools or
experience of their respective field of studies and to get acquainted with life
The Student Industrial Work Experience Scheme (SIWES) was founded in the
year 1973 under the Federal Government of Nigeria with its headquarters in Jos,
Plateau State and thereby making it mandatory for all ministries, companies and
parastatals to offer places for the participant for the minimum period of three (3)
months and a maximum of six (6) months in accordance with the provision of the
decree no. 47 of 1979, which was further amended 1980. The federal government
The scheme exposes students to industrial based skills that are necessary for
1|Page
smooth transition from the classroom to the world of work and it gives the students
provide the much needed high quality goods and services in a dynamic economy
Training Fund (ITF) in 1973/1974. The growing concern among our industrialists
1993/1994(Information and Guideline for SIWES, 2002). ITF has as one of its key
measures needed for safeguarding the work area and the workers in the industry.
Institutions for the industrial work situation they are likely to meet after graduation.
thereby bridging between the University work and the actual practice.
4. Exposing student to the right and proper attitude and the disciplinary measures to
work.
TECHNOLOGY)
Enugu, Port Harcourt, Abuja, Makurdi and Sokoto. The company was
USA. It was born out of the desire to create a Nigerian company that can always
be depended upon for reliable and high quality services in the areas of information
3|Page
1.3.0 ORGANISATIONAL CHART
Khemsafe computer institute Kaduna has Dr. Dave Obiora as the managing
director and it operates in a hierarchical manner i.e. from director down to the
Board of Directors
MD/CEO Corporat
e Affairs
(Business
Dev.)
Cleaners
4|Page
1.2.1 Objectives of the organisation:
To assist individual, private and public organization to identify the need for the
To training staff of private and public organizations in the use of computer for their
routine operations.
Short term executive training on application packages e.g. Ms Excel, Dbase, Word
1. Selling Unit: this unit deals purchase and selling of computer accessories like
2. Maintenance and Repair Unit: this department is responsible for the repair and
the community on the use and need of computer in their day to day operation. In
5|Page
this manner, the training department is responsible for providing this knowledge.
In line with the above objectives our training programme is divided into the
following areas:
I. DIPLOMA COURSE: The course is designed for both graduates and non-
time morning, Full- time afternoon and part-time evening. And the course duration
6 months and certificate of attendance will be issued to the end of the course.
III. CERITFICATE COURSE: This course is designed for those who want to
Database management system (DBMS), Computer aided design etc. which can
IV. EXECUTIVE COURSE: The course is designed for Managers, Board Chairman,
Executive Directors and professionals who cannot afford the time for a full-blown
computer course, but wish to latch into the computer train. The trainee has the
Computer appreciation
6|Page
Word processing
Presentation graphics.
V. PROFESSIONAL COURSES: This is design for those who want to computing full,
Networking(CISCO)
programs.The company also has fully air-conditioned and equipped training rooms
to ensure the best training environment for student/participants. There are enough
7|Page
computers to guarantee a computer to each student/participants throughout the
8|Page
CHAPTER TWO
WORK EXPERIENCE
1. Java Programming
3. Ms Access
4. Ms PowerPoint
compilation) by a Java Virtual Machine. The language itself borrows much syntax
from C and C++ but has a simpler object model and fewer low-level facilities. The
9|Page
Figure 2: java programming language workflow.
Philosophy
There were five primary goals in the creation of the Java language:
systems.
5. It should be easy to use by selecting what was considered the good parts of
Java JDK
It has an easy to use Swing GUI design tool to build user interfaces through
It auto completed code and gives programmers a list of possible code fragments
It debugs and gives hints on optimizing code, and even inserts the right code.
can’t talk about java without talking about objects, class, and methods.
Object: - Objects have states and behaviors. Example: A dog has states-color,
name, and breed as well as behaviors -wagging, barking, and eating. An object is
an instance of a class.
11 | P a g e
Methods: - A method is basically a behavior. A class can contain many methods.
It is in methods where the logics are written, data is manipulated and all the
Case Sensitivity: - Java is case sensitive, which means identifier Hello and hello
Class Names: - For all class names, the first letter should be in Upper Case. If
several words are used to form a name of the class, each inner word's first letter
Method Names: - All method names should start with a Lower Case letter. If
several words are used to form the name of the method, then each inner word's
Program File Name: - Name of the program file should exactly match the class
name. When saving the file, you should save it using the class name (Remember
Java is case sensitive) and append '.java' to the end of the name (if the file name
and the class name do not match your program will not compile). Example :
Assume 'MyFirstJavaProgram' is the class name, then the file should be saved
as'MyFirstJavaProgram.java'
public static void main(String args []): - Java program processing starts from
Types of variables
12 | P a g e
Local variables: Local variables are declared in methods, constructors, or blocks.
Local variables are created when the method, constructor or block is entered and
the variable will be destroyed once it exits the method, constructor or block.
method, constructor or any block. Instance variables are created when an object
is created with the use of the keyword 'new' and destroyed when the object is
destroyed
declared with the static keyword in a class, but outside a method, constructor or a
block. There would only be one copy of each class variable per class, regardless
Types of Modifiers
Access Modifiers
Non-Access Modifiers
levels for classes, variables, methods and constructors. The four access levels
are:
13 | P a g e
- Non-Access Modifiers: Java provides a number of non-access modifiers to
2. The final modifier for finalizing the implementations of classes, methods, and
variables.
4. The synchronized and volatile modifiers, which are used for threads.
Basic Operators
v. Assignment Operators (=, +=, -=,*=, /=, &=, %=, <<=, >>=, |=, ^=)
Loop Controls
i. While loop: A while loop is a control structure that allows you to repeat a task a
while(Boolean_expression)
//Statements
14 | P a g e
When executing, if the boolean_expression result is true, then the actions inside
the loop will be executed. This will continue as long as the expression result is
true. Here, key point of the while loop is that the loop might not ever run. When
the expression is tested and the result is false, the loop body will be skipped and
ii. do...while loop: A do...while loop is similar to a while loop, except that a
do {
//Statements
}while(Boolean_expression);
Notice that the Boolean expression appears at the end of the loop, so the
If the Boolean expression is true, the flow of control jumps back up to do, and the
statements in the loop execute again. This process repeats until the Boolean
expression is false.
iii. for loop: A for loop is a repetition control structure that allows you to efficiently
write a loop that needs to execute a specific number of times. A for loop is useful
for(initialization;Boolean_expression; update) {
//Statements
15 | P a g e
Enhanced for loop in Java: Syntax
for(declaration : expression) {
//Statements
with the elements of the array you are accessing. The variable will be available
within the for block and its value would be the same as the current array element.
• Expression: This evaluates to the array you need to loop through. The
Decision Making
if(Boolean_expression) {
If the Boolean expression evaluates to true, then the block of code inside the if
statement will be executed. If not, the first set of code after the end of the if
if(Boolean_expression){
16 | P a g e
//Executes when the Boolean expression is true
}else{
if...else statement, which is very useful to test various conditions using single
if...else if statement. When using if, else if, else statements there are few points to
keep in mind.
• An if can have zero or one else's and it must come after any else if's.
• An if can have zero to many else if's and they must come before the else.
• Once an else if succeeds, none of the remaining else if's or else's will be
tested.
Syntax
if(Boolean_expression1){
}elseif(Boolean_expression2){
}elseif(Boolean_expression3){
}else{
means you can use one if or else if statement inside another if or else if
statement. Syntax
if(Boolean_expression1){
if(Boolean_expression2){
against a list of values. Each value is called a case, and the variable being
switch(expression){
case value :
//Statements
break;
case value :
//Statements
default://Optional
//Statements
18 | P a g e
}
The variable used in a switch statement can only be a byte, short, int, or char.
You can have any number of case statements within a switch. Each case is
The value for a case must be the same data type as the variable in the switch and
When the variable being switched on is equal to a case, the statements following
When a break statement is reached, the switch terminates, and the flow of control
Not every case needs to contain a break. If no break appears, the flow of control
A switch statement can have an optional default case, which must appear at the
end of the switch. The default case can be used for performing a task when none
Java Array
Declaration of an array
Syntax
array_name[row_number]=value;
Byte Byte
Int Integer
Double Double
Float Float
Boolean Boolean
Char Character
Long Long
Exception Handling
program when a normal path of execution is not defined. For example, a Java
20 | P a g e
program may encounter a numeric expression that attempts to divide an integer
by zero. Such a condition may occur during the execution of the program and
means catching an exception and the code that handles the exception is known
as an exception handler.
i. Using try-catch block: A try/catch block is placed around the code that might
generate an exception. the syntax for using try/catch looks like the following:
try {
}catch(ExceptionName e1) {
//catch block
A catch statement involves declaring the type of exception you are trying to catch.
ii. finallyblock:The finally keyword is used to create a block of code that follows a
try block. A finally block of code always executes, whether or not an exception has
try {
//code
}catch(ExceptionType1 e1) {
//Catch block
}catch(ExceptionType2 e2) {
//Catch block
21 | P a g e
}catch(ExceptionType3 e3) {
//Catch block
}finally {
methods having same name, but their argument lists are different. Argument list
could differ;
i. Number of parameters
classDisplayOverloading{
22 | P a g e
From the example above, the two methods have same name but there are
Inheritance
create a new class by reusing code from an existing class. The new class is called
a subclass and the existing class is called the superclass. A superclass contains
the code that is reused and customized by thesubclass. It is saidthat the subclass
Technically, it may be possible to inherit a class from any existing class. However,
practically it is not always a good idea to inherit a new class from any existing
inheritance in normal human life. You inherit something from your parents; your
parents inherit something from their parents, and so on. . You need to use the
keyword extends followed by the superclass name in the class declaration of your
<<class_modifiers>>class<<Subclass_Name>>extends <<Superclass_Name>>
Interface
23 | P a g e
Interface looks likes class but it is not a class. An Interface can have
methods and variables just like the class but the methods declared in interface are
Interfaces are used for abstraction. Since methods in interface do not have
body, they have to implemented by the class before you can access them. The
class that implements interface must implement all its methods. Also, java
can achieve this as a class can implement more than one interfaces. However, it
Declaration of an interface
Interface MyInterface{
Interface Implementation
24 | P a g e
This is how a class implements an interface. It has to provide the body of
For instance;
Interface MyInterface{
System.out.println(“implementation of method1”);
System.out.println(“implementation of method2”);
MyInterfaceobj=new XYZ();
obj.method1();
25 | P a g e
obj.method2();
i. Without bothering about the implementation part we can achieve the security of
implementation.
ii. In java, multiple inheritance is not allowed, however by using interface you can
GUI Design(Swing)
etc. What is a GUI? Before I define a GUI, let me first define a user interface (UI).
c. Produces outputs
and a program, in terms of inputs and outputs. In other words, a user interface
defines the way the interaction between the user and a program takes place.
Typing text using a keyboard, selecting a menu item using a mouse, or clicking a
26 | P a g e
button can provide input to a program. The output from a program can be
as a bar chart, a picture, etc. A GUI lets users interact with a program using
other devices.
SwingComponents:JFrame,JPanel,JLabel,JMenu,JCheckBox,JRadioButto
components to design GUI for some simply application we develop and also
language, and a wide range of databases. The JDBC library includes APIs for
each of the tasks mentioned below that are commonly associated with database
usage.
27 | P a g e
JDBC provides a complete set of interfaces that allows access to an underlying
database. Java can be used to write different types of executable, such as:
i. Java Applications
All of these different executable are able to use a JDBC driver to access a
database, and take advantage of the stored data. JDBC provides the same
code.
Prerequisite
The JDBC API supports both two-tier and three-tier processing models for
ii. JDBC Driver API: This supports the JDBC Manager-to-Driver Connection.
connection requests from the java application with the proper database driver
28 | P a g e
using communication subprotocol. The first driver that recognizes a certain
ii. Driver: This interface handles the communications with the database server. You
will interact directly with Driver objects very rarely. Instead, you use
DriverManager objects, which manage objects of this type. It also abstracts the
iii. Connection: This interface with all methods for contacting a database. The
iv. Statement: You use objects created from this interface to submit the SQL
v. ResultSet: These objects hold data retrieved from a database after you execute
an SQL query using Statement objects. It acts as an iterator to allow you to move
vi. SQLException: This class handles any errors that occur in a database
application.
Since, JDBC requires the knowledge of a relational database (Like SQL), so the
on the database, such as creating entries, reading content, updating content, and
deleting entries.
29 | P a g e
i. MySql Connector driver:which is use with MySql database.
i. Import JDBC packages: Add import statements to your java program to import
ii. Register JDBC Driver: This step causes the JVM(Java Virtual Machine) to load
the desired driver implementation into memory so that it can fulfill your JDBC
requests.
iii. Database URL Formulation: This is to create a properly formatted address that
iv. Create Connection Object: Finally, code a call to the DriverManager object’s
After all these steps, now you can manipulate your database using the DML(Data
Language).
within another window. Usually, you add internal frames to a desktop pane.
30 | P a g e
The desktop pane, in turn, might be used as the content pane of a JFrame.
both frames and internal frames, you can get an idea of the tradeoffs involved
in choosing one over the other.Here is a picture of an application that has two
Create
JInternalFrame()
a JInternalFrame instance. The
JInternalFrame(String)
first argument specifies the title
JInternalFrame(String, boolean)
(if any) to be displayed by the
JInternalFrame(String, boolean, boolean)
internal frame. The rest of the
JInternalFrame(String, boolean, boolean,
arguments specify whether the
boolean)
internal frame should contain
JInternalFrame(String, boolean, boolean,
decorations allowing the user to
boolean, boolean)
resize, close, maximize, and
31 | P a g e
iconify the internal frame
static
intshowInternalConfirmDialog(Component,
Object)
static String
showInternalInputDialog(Component,
Object)
static
intshowInternalOptionDialog(Component,
Object)
Method Purpose
32 | P a g e
Set or get the internal frame's content pane,
void setJMenuBar(JMenuBar)
Set or get the internal frame's menu bar.
JMenuBargetJMenuBar()
void
JLayeredPane getLayeredPane()
Method Purpose
33 | P a g e
int)
void
int, int)
void
Explicitly set the size of the internal frame. (Inherited
setSize(Dimension)
from Component).
void setSize(int, int)
Method Purpose
34 | P a g e
alFrameListener) listener). See How to Write an Internal
removeInternalFrameListener(In
ternalFrameListener)
35 | P a g e
frame.
Method Purpose
void setFrameIcon(Icon) Set or get the icon displayed in the title bar of the
void setClosable(boolean) Set or get whether the user can close the internal
booleanisClosable() frame.
void
Set or get whether the internal frame can be
setIconifiable(boolean)
iconified.
booleanisIconifiable()
void
Set or get whether the user can maximize this
setMaximizable(boolean)
internal frame.
booleanisMaximizable()
booleanisResizable() resized.
void setTitle(String)
Set or get the window title.
String getTitle()
36 | P a g e
Constructor or Method Purpose
getAllFrames() contains.
Graphic design is not only associated to the design and creating of wedding
and birthday cards, flyers but also in application development (either web app,
37 | P a g e
The tool we used in the graphic design class is CorelDraw-X7. Knowledge
acquired include:
e. Creating 2017 calendar using different forms of designs and calendar wizard
2.3 Ms Access
retrieval.
38 | P a g e
Terms in Ms Access
- Table
- Forms
- Query
- Report
2.4 Ms PowerPoint
i. Title slide
39 | P a g e
CHAPER THREE
With the knowledge acquired in graphics design using Corel Draw, I was able to
40 | P a g e
3.1.2 Java Programming
With the knowledge acquired in java programming using netbeans IDE, I was
language.
41 | P a g e
Figure 5: admin login window.
42 | P a g e
Figure 6: cashier login window.
43 | P a g e
Figure 4: Change admin.
44 | P a g e
Figure 7: Loading.
45 | P a g e
Figure 8: Admin main window.
46 | P a g e
Figure 9: Adding stock to inventory.
47 | P a g e
Figure 12: Creating bill for customer.
48 | P a g e
CHAPTER FOUR
This report is vividly on what the Student industrial experience scheme is all
about and the experience acquired during the period of industrial training which is
4.3 Conclusion
part of study which helps students to go for industrial attachment and equip
them with necessary skills needed for industrial adaptation. Thus, it enhances
ones behavior, knowledge and exposure. Experience they say is the best
teacher, no doubt to say that I have also benefited from this scheme. During
this six months programme, I have been able to put in practice the theory part
opportune to learn not only about computer science but also about life after
4.4 Recommendations
SIWES is a very relevant and necessary program for all Students and should be
taken seriously by every student for each student’s professional development prior
to graduation.
49 | P a g e
placement opportunities, training, equipment, facilities, as well as direct funding of
SIWES
50 | P a g e
REFERENCES
Roy Shilkrot, D. l. (2012). Mastering OpenCV with practical computer vision project.
Roy, U. K. (2015). Advanced java programming. Kolkata: Oxford University Press 2015.
51 | P a g e
52 | P a g e
APPENDICES
importjava.util.*;
importjavax.swing.JOptionPane;
importjavax.swing.JTable;
importjavax.swing.table.DefaultTableModel;
/**
*
* @author SAMEER
*/
public class CreateBillextendsjavax.swing.JInternalFrame {
/**
* Creates new form CreateBill
*/
publicCreateBill() {
initComponents();
Fillcombo();
showdate();
getsum();
billno();
AutoCompleteDecorator.decorate(jComboBox2);
this.setLocation(260, 10);
53 | P a g e
}
/**
* This method is called from within the constructor to initialize the
form.
* WARNING: Do NOT modify this code. The content of this method is
always
* regenerated by the Form Editor.
*/
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">
private void initComponents() {
}
catch(Exception e)
{
JOptionPane.showMessageDialog(null,e);
}
}
55 | P a g e