86% found this document useful (7 votes)
4K views44 pages

Report of The Six

The document provides a report on the student's six-month industrial training at the NIIT Surulere Center in Lagos, Nigeria. It includes an introduction describing the history and objectives of the Students Industrial Work Experience Scheme (SIWES) program. It also provides an overview of the host organization, NIIT, including its mission, objectives, staff structure, and organizational structure. The report further details the student's activities, duties, and skills gained during the training, including an introduction to Python programming language and MySQL database management.

Uploaded by

Christian Orji
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
86% found this document useful (7 votes)
4K views44 pages

Report of The Six

The document provides a report on the student's six-month industrial training at the NIIT Surulere Center in Lagos, Nigeria. It includes an introduction describing the history and objectives of the Students Industrial Work Experience Scheme (SIWES) program. It also provides an overview of the host organization, NIIT, including its mission, objectives, staff structure, and organizational structure. The report further details the student's activities, duties, and skills gained during the training, including an introduction to Python programming language and MySQL database management.

Uploaded by

Christian Orji
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
You are on page 1/ 44

REPORT OF THE SIX-MONTH INDUSTRIAL TRAINING AT

NIIT SURULERE CENTER, LAGOS

STUDENTS INDUSTRIAL WORK EXPERIENCE SCHEME


(SIWES):CIS372

BY

ORJI, OBUMNEME CHRISTIAN

2017 224 101

DEPARTMENT OF COMPUTER SCIENCE

FACULTY OF PHYSICAL SCIENCES

CHUKWUEMEKA ODUMEGWU OJUKWU UNIVERSITY

ULI CAMPUS

JANUARY, 2021

vi
REPORT OF THE SIX-MONTH INDUSTRIAL TRAINING AT

NIIT SURULERE CENTER, LAGOS

STUDENTS INDUSTRIAL WORK EXPERIENCE SCHEME


(SIWES):CIS312

BY

ORJI, OBUMNEME CHRISTIAN

2017 224 101

SUBMITTED TO THE

DEPARTMENT OF COMPUTER SCIENCE, FACULTY OF


PHYSICAL SCIENCES

CHUKWUEMEKA ODUMEGWU OJUKWU UNIVERSITY, ULI


CAMPUS

IN PARTIAL FULFILMENT OF THE REQUIREMENTS FOR


THE AWARD OF BACHELOR OF SCIENCE (B.SC.) DEGREE
IN COMPUTER SCIENCE

JANUARY, 202

vi
DEDICATION

This SIWES report is dedicated to my parents SIR/LADY EBERE ORJI for their moral and
financial support, without them it will be very difficult for me to complete this research work.

vi
ACKNOWLEDGEMENTS

Glory is to Almighty God, who gave me the opportunity to undergo this study.

My deep appreciation goes to my parents for their support, kindness, benevolence, love, loyalty,
prayer, moral and financial support from my childhood up to today, May God reward them
abundantly.

My profound gratitude and appreciation goes to all my lecturers in the Department of Computer
Science.

Finally, my special gratitude goes to my Industrial Based Supervisor Mr Akeem Jimoh and the
staffs of the organization whose understanding and all necessary support became the significant
tools of my success in undertaking this research work.

vi
SUMMARY

vi
TABLE OF CONTENTS

Dedication ii

Acknowledgements iii

Summary iv

List of Figures v

List of Tables

CHAPTER ONE: INTRODUCTION

1.1 History of SIWES


1.2 Objectives of SIWES
1.3 Importance of SIWES

1.4 Overview of Organization of Attachment

1.5 History of Organization of Attachment

1.6 Organization Mission Objective

1.7 Staff Structure of the Enterprise

1.8 Remuneration of Staff and Attaches

1.9 Organogram of the Organization

1.10 Various Department and Section Of The Organization

1.11 Industry Supervisor

CHAPTER TWO: INTRODUCTUION TO PYTHON

2.1 History of Python

2.2 Benefits of using Python

2.3 Activities Engaged In During Attachment

2.4 Equipment and Tools Encountered

2.5 Software / Ide Encountered

vi
2.6 Duties and Responsibilities Assigned To the Student

2.7 Knowledge and Skills Gained During SIWES Program

CHAPTER THREE: MySQL DATABASE

3.1 MySQL database

3.2 PHP connect to MySQL database

3.3 Create a database

3.4 Insert data into a database table

3.5 Select data from a database table

CHAPTER FOUR: CONCLUSION

4.1 Summary of Knowledge and Skills Gained During SIWES Program

4.2 Problems and Challenges Faced During Attachment

4.3 Personal Observation in the SIWES Program

4.4 Ways of Improving the SIWES Program

4.5 Advice for Future Participants

vi
LIST OF FIGURES

FIGURE PAGE

vi
LIST OF TABLES

The table below shows the organogram of the institution

Chief Executive Officer

Director of Studies

Microsoft Office Software Department


Web Department

Ms Word/ Ms Excel Web Developers Software Developers

Ms Access Web Development Team Developer team

Database management Mobile Development

Database Administrators Mobile Developers

Database management Mobile Development


Team Team

vi
CHAPTER ONE

INTRODUCTION

1.1 HISTORY OF SIWES

The Students Industrial Work Experience Scheme (SIWES) is the accepted skills training
programs, which forms part of the approved minimum academic standards in the various degree
programs for all the Nigerian Universities. It is an effort to bridge the gap existing between
theory and practice of engineering and technology, science, agriculture, medial, management and
other professional educational programs in the Nigerian tertiary institutions. (Akerejelo, 2008)

The scheme is a tripartite programmed, involving the students, the universities and the industry
(employers of labor). It is funded by the Federal government of Nigeria and jointly coordinated
by the industrial Training Fund (ITF) and the National Universities commission (NUC).

SIWES was established by ITF in 1973 to solve the problem of lack of adequate practical skills
preparatory of employment in industries by Nigerian graduates of tertiary institution.

Participation in SIWES has become a necessary precondition for the award of diploma and
degree certificates in specific disciplines in most institutions of higher learning in the country, in
accordance with the education policy of government.

Duration: Four months for polytechnics and colleges of education, and six months for the
universities.

1.2 OBJECTIVES OF SIWES

Specifically, the objectives of the students’ industrial work experience scheme are to:

1. Prepare students for the work situation they are likely to meet after graduation.
2. Provide an avenue for students in the Nigerian Universities to acquire industrial skills and
experience in their course of study.

vi
3. Make the transition from the university to the world of work easier, and thus enhance
students’ contacts for later job placements.
4. Provide students with an opportunity to apply their theoretical knowledge in real work
situation, thereby bridging the gap between university work and actual practices.
5. Expose students to work methods and techniques in handling equipment and machinery
that may not be available in the universities.
6. Enlist and strengthen employers’ involvement in the entire educational process of
preparing university graduates for employment in industry.

1.3 IMPORTANCE OF SIWES

 It provides students with an opportunity to apply their theoretical knowledge in real life
situations.
 It exposes students to more practical work methods and techniques.
 It strengthens links between the employers, universities and industrial training fund
(ITF).
 It also prepares the students for the labor market after graduation

1.4 THE PARTICULAR ITF OFFICE VISITED

I visited the ITF office located Lagos Area Office Plot 120/124, Funsho Williams Avenue,

1.5 ROLE OF STUDENTS DURING SIWES

 Arrange their own living accommodation during the period of attachment.


 Students are expected to be regular and punctual at respective place of attachment.
 They are to comply with the employer’s rule and regulation.

vi
 Keep proper record of training activities and other assignments in the log book
 Submit to ITF through their employer (form SPE)
 Submit to ITF through their institution the Evaluation report, Form 8 duly completed by
the student, employers and the institution.

1.5 BENEFITS OF INDUSRIAL TRAINING

Industrial training gives students great experience during their bachelor of engineering degree
program. Few of the benefits are outlined below.

 First-hand experience working as an engineering professional


 Apply your technical knowledge and engineering methods to a real life situation
 Work with other engineering professionals
 Increase your technical, interpersonal and communication skills, both oral and written.
 Witness the functioning and organization of business and companies

1.6 OVERVIEW OF ORGANISATION OF ATTACHMENT

NIIT is a leading Global Talent development corporation, building skilled manpower pool for
global industry industry requirements. The company which was set up in 1981, to help the
nascent IT industry overcome its human resource challenges, has today grown to be among
world’s leading talent development companies offering learning solutions to individuals,
Enterprises and institutions across 40 countries.

1.8 ORGANIZATION MISSION STATEMENT

“Inspire the world with our innovative technologies, products and design that enrich people’s
lives and contribute to social prosperity by creating a new future”

vi
1.9 ORGANIZATION MISSION OBJECTIVE

Eradicating computer illiteracy and building a world with innovative technologies.

1.11 RENUMERATION OF STAFF AND ATTACHES

I wasn’t paid.

1.12 ORGANOGRAM OF THE ORGANIZATION

The organogram of the organization can be seen in page iv

1.13 VARIOUS DEPARTMENTAND SECTIONS OF THE


ORGANISATION

The various departments and section of the organization are, Microsoft Department, Web
department and Software Department.

Networking Department has the following section:

 Microsoft Office
 Web Department
 Software Department

1.14 INDUSTRY SUPERVISOR

My industry supervisor is MR AKEEM JIMOH (PhD

vi
CHAPTER TWO

INTRODUCTION TO PYTHON

2.1 HISTORY OF PYTHON

Python is high-level, multi-purpose programming language created by Guido Van Rossum and
released in 1991. It is the world’s fastest growing and most popular programming language
among Software Engineers, Mathematics, Data Analyst, Scientist, Accountants, Network
Engineers and Kids.

Because of its simple easy-to-use syntax which reads like English, it has gained popularity for
being a beginners-friendly language and has replaced java as the most popular introductory
language. Python can handle a lot of complexity allowing beginners to focus on learning
programing concept and not to worry about too much details. With Python it is easier to fix
errors because it allows you to easily compile your work and run until you hit the problematic
part. It has wide range of application from Web Development, Mathematics and computing to
desktop graphical user interface.

2.2 BENEFITS OF USING PYTHON

 It helps you to solve complex problems in less time with fewer lines of code
 It has wide application because it can be used for Data Analysis, Web/Mobile/Desktop
Application, Artificial Intelligence, Machine Learning, Data Testing and hacking.
 It is a high-level task so you don’t have to worry about complex task such as memory
management as with c++
 It is a cross-platform; you can use it on Windows, Macintosh and Linux Operating
system.

vi
 It has a huge community which can help you solve any problem you encounter while
using it. Whatever you want accomplish in python, it is likely that someone has already
done
 It has a large ecosystem of libraries, tools and framework.

2.3 ACTIVITIES ENGAGED IN DURING ATTACHMENT

I was engaged with the post of an assisting tutor, and I was also a student.

2.4 DUTIES AND RESPONSIBILTY

 My duties were to resume work by 9am


 Replace my the senior lecture when he is not around especially in the MS Office
department
 Attend my python Class at mid-day

2.5 EQUIPMENT AND TOOLS ENCOUNTERED

The tools I encountered are

 Access Point
 Laptop

2.6 SOFT WARE AND IDE ENCOUNTERED

The software and IDE encountered are:

 Python Interpreter

vi
 This is a program that executes codes i.e. you can you can type python codes in a file and
give it to this program to execute or type directly to the interactive shell or environment.
E.g. Type 2+2 in the python shell and press Enter, the result is displayed as 4.

o Type 4>2 and Enter- The answer is returned as True


o Type 2<7 and Enter- The answer is False
o Type 4> and Enter- You get a Syntax Error (code format not correct or complete

 Code Editors

To build a real life application, you cannot do that from python command prompt, you need a
Code Editor or an IDE (Integrated Development Environment).

An IDE is a code editor that has the following features;

o Auto Completion: This feature helps you complete your code as you types it.
o Debugging: Helps you find (bugs) in your program.
o Testing: Helps you test your program if it works well.

There are different types of Code Editors and IDEs and they include;

Code Editors: The most common is VS Code (Visual Studio Code), Atom and Sublime.

IDEs: The most common are PyCharm, IDLE etc.

2.7 KNOWLEDGE AND SKILL GAINED DURING SIWES PROGRAM

I gained so many knowledge and they are listed below:

 Developing Graphic Application in Python.

vi
So far we have learnt some of the basic codes of python and how they are applied. But the main
aim of any programming language is to develop visible or visual real life applications that can be
used to users.
Every Windows application begins with a “Window Screen”. It is this window screen that users
interact with, to work with application.

Python provides various options for developing graphical user interface (GUIs). Most important
are listed below.

 Tkinter: - Tkinter is the Python interface to the Tk GUI toolkit shipped with
Python. We would look this option in this chapter
 wxPython – This is an open-source python interface for wxWiindows
http://wxpython.org
 JPython – Jpython is a Python port for java which gives Python scripts seamless
access to java class librabries on the local machine http://www.jython.org

There are many other interfaces available which you can find them on the net.

 Programming with Tkinter

Tkinter is a standard GUI library for python. Python when combined with Tkinter provides a fast
and easy way to create GUI applications. Tkinter provides a powerful object-oriented interface to
the Tk GUI toolkit.

Creating a GUI application using Tkinter is an easy task. All you need to do is perform the
following steps –

 Import the Tkinter module.


 Create the GUI application main window
 Add one or more of the above mentioned widgets to the GUI application.
 Enter the main event loop to take action against each event triggered by the
user.

vi
vi
Tkinter Widgets

Tkinter provides various controls, such as buttons, labels, and text-boxes used in a GUI
application. These controls are commonly called widgets.

There are currently 15 types of widgets in Tkinter. I present these widgets as well as a
brief description in the following table-

Sr.No Operator & Description


.

1 Button

The Button widget is used to display buttons in your application.

2 Canvas

The Canvas widget is used to draw shapes, such as lines, ovals, polygons and

vi
rectangles, in your application.

3 Checkbutton

The Checkbutton widget is used to display a number of options as checkboxes.


The user can select multiple options at a time.

4 Entry

The Entry widget is used to display a single-line text field for accepting values
from a user.

5 Frame

The Frame widget is used as a container widget to organize other widgets.

6 Label

The Label widget is used to provide a single-line caption for other widgets. It
can also contain images.

7 Listbox

The Listbox widget is used to provide a list of options to a user.

8 Menubutton

The Menubutton widget is used to display menus in your application.

9 Menu

The Menu widget is used to provide various commands to a user. These


commands are contained inside Menubutton.

10 Message

The Message widget is used to display multiline text fields for accepting values

vi
from a user.

11 Radio button

The Radio button widget is used to display a number of options as radio buttons.
The user can select only one option at a time.

12 Scale

The Scale widget is used to provide a slider widget.

13 Scrollbar

The Scrollbar widget is used to add scrolling capability to various widgets, such
as list boxes.

14 Text

The Text widget is used to display text in multiple lines.

15 Top level

The Top level widget is used to provide a separate window container

Etc.

Let us study these widgets in detail −

Standard attributes

Let us take a look at how some of their common attributes. Such as sizes, colors and fonts are
specified.

 Dimensions

 Colors

vi
 Fonts

 Anchors

 Relief styles

 Bitmaps

 Cursors

Geometry Management

All Tkinter widgets have access to specific geometry management methods, which have the
purpose of organizing widgets throughout the parent widget area. Tkinter exposes the following
geometry manager classes: pack, grid, and place.

 The pack() Method − This geometry manager organizes widgets in blocks before placing


them in the parent widget.

 The grid() Method − This geometry manager organizes widgets in a table-like structure


in the parent widget.

 The place() Method − This geometry manager organizes widgets by placing them in a


specific position in the parent widget.

Examples On Python GUI using Tkinter

A Simple Calculator

 from tkinter import*


 me=Tk()
 me.geometry("354x460")
 me.title("CALULATOR")
 melabel=Label(me, text="CALCULATOR", font=("chiller",30,'bold'))

vi
 melabel.pack(side=TOP)

 textin=StringVar()
 operator=""


 def clickbut(numbers):
 global operator
 operator=operator+str(numbers)
 textin.set(operator)
 def equalbut():
 global operator
 add=str(eval(operator))
 textin.set(add)
 operator=""
 def equalbut():
 global operator
 sub=str(eval(operator))
 textin.set(sub)
 operator=""
 def equalbut():
 global operator
 mul=(eval(operator))
 textin.set(mul)
 operator=""
 def equalbut():
 global operator
 div=(eval(operator))
 textin.set(div)

vi
 opertor=""
 def clrbut():
 textin.set("")



 metext=Entry(me,font=("Courier New",12,
'bold'),textvar=textin,width=25,bd=5,bg="powder blue")
 metext.pack()

 but1=Button(me,padx=14,pady=14,bd=4,bg='light
blue',command=lambda:clickbut(1),text="1",font=("courier New" ,16, 'bold'))
 but1.place(x=10,y=100)

 but2=Button(me,padx=14,pady=14,bd=4,bg='light
blue',command=lambda:clickbut(2),text="2",font=("courier New", 16, 'bold'))
 but2.place(x=10,y=170)

 but3=Button(me,padx=14,pady=14,bd=4,bg='light
blue',command=lambda:clickbut(3),text="3",font=("courier New", 16, 'bold'))
 but3.place(x=10,y=240)

 but4=Button(me,padx=14,pady=14,bd=4,bg='light
blue',command=lambda:clickbut(4),text="4",font=("courier New", 16, 'bold'))
 but4.place(x=75,y=100)

 but5=Button(me,padx=14,pady=14,bd=4,bg='light
blue',command=lambda:clickbut(5),text="5",font=("courier New", 16, 'bold'))
 but5.place(x=75,y=170)

vi
 but6=Button(me,padx=14,pady=14,bd=4,bg='light
blue',command=lambda:clickbut(6),text="6",font=("courier New", 16, 'bold'))
 but6.place(x=75,y=240)

 but7=Button(me,padx=14,pady=14,bd=4,bg='light
blue',command=lambda:clickbut(7),text="7",font=("courier New", 16, 'bold'))
 but7.place(x=140,y=100)

 but8=Button(me,padx=14,pady=14,bd=4,bg='light
blue',command=lambda:clickbut(8),text="8",font=("courier New", 16, 'bold'))
 but8.place(x=140,y=170)

 but9=Button(me,padx=14,pady=14,bd=4,bg='light
blue',command=lambda:clickbut(9),text="9",font=("courier New", 16, 'bold'))
 but9.place(x=140,y=240)

 but0=Button(me,padx=14,pady=14,bd=4,bg='light
blue',command=lambda:clickbut(0),text="0",font=("courier New", 16, 'bold'))
 but0.place(x=10,y=310)

 butdot=Button(me,padx=47,pady=14,bd=4,bg='light
blue',command=lambda:clickbut("."),text=".",font=("courier New", 16, 'bold'))
 butdot.place(x=75,y=310)

 butpl=Button(me,padx=14,pady=14,bd=4,bg='light
blue',command=lambda:clickbut("+"),text="+",font=("courier New", 16, 'bold'))
 butpl.place(x=205,y=100)

vi
 butsub=Button(me,padx=14,pady=14,bd=4,bg='light
blue',command=lambda:clickbut("-"),text="-",font=("courier New", 16, 'bold'))
 butsub.place(x=205,y=170)

 butmul=Button(me,padx=14,pady=14,bd=4,bg='light
blue',command=lambda:clickbut("*"),text="x",font=("courier New", 16, 'bold'))
 butmul.place(x=205,y=240)

 butdiv=Button(me,padx=14,pady=14,bd=4,bg='light
blue',command=lambda:clickbut("/"),text="/",font=("courier New", 16, 'bold'))
 butdiv.place(x=205,y=310)

 butclear=Button(me,padx=14,pady=119,bd=4,bg='light
blue',text="CE",command=clrbut,font=("courier New", 16, 'bold'))
 butclear.place(x=270,y=100)
 butequal=Button(me,padx=151,pady=14,bd=4,bg='light
blue',command=equalbut,text="=",font=("courier New", 16, 'bold'))
 butequal.place(x=10,y=380)

 me.mainloop()

the above program is executed and runs as seen page v

Building a restaurant management system

 from tkinter import*


 import random

vi
 import time

 me=Tk()
 me.geometry("1600x800+0+0")
 me.title("Restaurant Management System")

 text_input=StringVar()
 operator=""

 Tops=Frame(me, width=1600, height=50, bg="powder blue", relief=SUNKEN)
 Tops.pack(side=TOP)

 f1=Frame(me, width=800, height=700, bg="powder blue", relief=SUNKEN)
 f1.pack(side=LEFT)

 f2=Frame(me, width=300, height=700, bg="powder blue", relief=SUNKEN)
 f2.pack(side=RIGHT)

 #===============TIME===============
 localtime=time.asctime(time.localtime(time.time()))

 #================INFO=================
 lblinfo=Label(Tops, font=("arial", 50, 'bold'),text="Restaurant Management System",
 fg="purple",bd=10,anchor='w')
 lblinfo.grid(row=0, column=0)

 lblinfo=Label(Tops, font=("arial", 20, 'bold'),text=localtime,
 fg="purple",bd=10,anchor='w')
 lblinfo.grid(row=1, column=0)

vi

 #=============CALULATOR=========
 def btnClick(numbers):
 global operator
 operator=operator+str(numbers)
 text_input.set(operator)

 def btnClearDisplay():
 global operator
 operator=""
 text_input.set("")

 def btnEqualsInput():
 global operator
 sumup=str(eval(operator))
 text_input.set(sumup)
 operator=""

 def Ref():
 x=random.randint(10908, 500576)
 randomRef=str(x)
 rand.set(randomRef)

 CoF=float(Friedrice.get())
 CoS=float(Salad.get())
 CoC=float(Chicken.get())
 CoM=float(Meatpie.get())
 CoSg=float(Sausageroll.get())
 CoSh=float(Sharwarma.get())

vi
 CoJ=float(Juice.get())
 CoT=float(Turkey.get())

 CostofFriedrice=CoF*5
 CostofSalad=CoS*9
 CostofChicken=CoC*10
 CostofMeatpie=CoM*12
 CostofSausageroll=CoSg*4
 CostofSharwarma=CoSh*20
 CostofJuice=CoJ*15
 CostofTurkey=CoT*50

 CostofMeal = "$", str('%.2f'%(CostofFriedrice + CostofSalad + CostofChicken +
CostofTurkey
 + CostofMeatpie + CostofSausageroll + CostofSharwarma +
CostofJuice))
 PayTax = ((CostofFriedrice + CostofSalad + CostofChicken + CostofTurkey
 + CostofMeatpie + CostofSausageroll + CostofSharwarma +
CostofJuice)*0.2)


 TotalCost =(CostofFriedrice + CostofSalad + CostofChicken + CostofTurkey
 + CostofMeatpie + CostofSausageroll + CostofSharwarma +
CostofJuice)
 Ser_Charge = ((CostofFriedrice + CostofSalad + CostofChicken + CostofTurkey
 + CostofMeatpie + CostofSausageroll + CostofSharwarma +
CostofJuice)/55)

 Service = "$", str('%.2f'% (Ser_Charge))
 OverallCost = "$", str('%.2f'% (PayTax + TotalCost + Ser_Charge))

vi
 PaidTax = "$", str('%.2f'% (PayTax))
 Service_Charge.set(Service)
 Cost.set(CostofMeal)
 Tax.set(PaidTax)
 Subtotal.set( CostofMeal)
 Total.set(OverallCost)


 def qExit():
 me.destroy()

 def Reset():
 rand.set("")
 Friedrice.set("")
 Jollofrice.set("")
 Salad.set("")
 Chicken.set("")
 Meatpie.set("")
 Sausageroll.set("")
 Sharwarma.set("")
 Juice.set("")
 Turkey.set("")
 Subtotal.set("")
 Total.set("")
 Service_Charge.set("")
 Tax.set("")
 Cost.set("")

vi
 txtDisplay=Entry(f2, font=('arial', 20, 'bold'),textvariable=text_input, bd=30,
insertwidth=4,
 bg="powder blue", justify='right')
 txtDisplay.grid(columnspan=4)

 #=============================================
 btn7=Button(f2,padx=16, pady=16, bd=8, fg="black", font=('arial', 20, 'bold'),
 text="7", bg="powder blue",
command=lambda:btnClick(7)).grid(row=2,column=0)

 btn8=Button(f2,padx=16, pady=16, bd=8, fg="black", font=('arial', 20, 'bold'),
 text="8", bg="powder blue",
command=lambda:btnClick(8)).grid(row=2,column=1)

 btn9=Button(f2,padx=16, pady=16, bd=8, fg="black", font=('arial', 20, 'bold'),
 text="9", bg="powder blue",
command=lambda:btnClick(9)).grid(row=2,column=2)

 Addition=Button(f2,padx=16, pady=16, bd=8, fg="black", font=('arial', 20, 'bold'),
 text="+", bg="powder blue",
command=lambda:btnClick("+")).grid(row=2,column=3)
 #==============================================
 btn4=Button(f2,padx=16, pady=16, bd=8, fg="black", font=('arial', 20, 'bold'),
 text="4", bg="powder blue",
command=lambda:btnClick(4)).grid(row=3,column=0)

 btn5=Button(f2,padx=16, pady=16, bd=8, fg="black", font=('arial', 20, 'bold'),
 text="5", bg="powder blue",
command=lambda:btnClick(5)).grid(row=3,column=1)

vi
 btn6=Button(f2,padx=16, pady=16, bd=8, fg="black", font=('arial', 20, 'bold'),
 text="6", bg="powder blue",
command=lambda:btnClick(6)).grid(row=3,column=2)

 btnsub=Button(f2,padx=16, pady=16, bd=8, fg="black", font=('arial', 20, 'bold'),
 text="-", bg="powder blue",
command=lambda:btnClick("-")).grid(row=3,column=3)
 #==============================================
 btn1=Button(f2,padx=16, pady=16, bd=8, fg="black", font=('arial', 20, 'bold'),
 text="1", bg="powder blue",
command=lambda:btnClick(1)).grid(row=4,column=0)

 btn2=Button(f2,padx=16, pady=16, bd=8, fg="black", font=('arial', 20, 'bold'),
 text="2", bg="powder blue",
command=lambda:btnClick(2)).grid(row=4,column=1)

 btn3=Button(f2,padx=16, pady=16, bd=8, fg="black", font=('arial', 20, 'bold'),
 text="3", bg="powder blue",
command=lambda:btnClick(3)).grid(row=4,column=2)

 btnmul=Button(f2,padx=16, pady=16, bd=8, fg="black", font=('arial', 20, 'bold'),
 text="x", bg="powder blue",
command=lambda:btnClick("*")).grid(row=4,column=3)
 #==============================================================
==========================
 btn0=Button(f2,padx=16, pady=16, bd=8, fg="black", font=('arial', 20, 'bold'),
 text="0", bg="powder blue",
command=lambda:btnClick("0")).grid(row=5,column=0)

 btnclear=Button(f2,padx=16, pady=16, bd=8, fg="black", font=('arial', 20, 'bold'),

vi
 text="C", bg="powder blue", command=btnClearDisplay).grid(row=5,column=1)

 btnequals=Button(f2,padx=16, pady=16, bd=8, fg="black", font=('arial', 20, 'bold'),
 text="=", bg="powder blue",command=btnEqualsInput).grid(row=5,column=2)

 btndiv=Button(f2,padx=16, pady=16, bd=8, fg="black", font=('arial', 20, 'bold'),
 text="/", bg="powder blue",
command=lambda:btnClick("/")).grid(row=5,column=3)
 #----------------------------------------Menu--------------------------------------------------

 rand=StringVar()
 Friedrice=StringVar()
 Jollofrice=StringVar()
 Salad=StringVar()
 Chicken=StringVar()
 Meatpie=StringVar()
 Sausageroll=StringVar()
 Sharwarma=StringVar()
 Juice=StringVar()
 Turkey=StringVar()
 Subtotal=StringVar()
 Total=StringVar()
 Service_Charge=StringVar()
 Tax=StringVar()
 Cost=StringVar()


 lblReference=Label(f1, font=('arial', 16, 'bold'), text="Reference", bd=16, anchor='w')
 lblReference.grid(row=0, column=0)

vi
 txtReference=Entry(f1, font=('arial', 16, 'bold'), textvariable=rand,
 bd=10, insertwidth=4,bg="powder blue", justify="right")
 txtReference.grid(row=0, column=1)

 lblFriedrice=Label(f1, font=('arial', 16, 'bold'), text="Friedrice", bd=16, anchor='w')
 lblFriedrice.grid(row=1, column=0)
 txtFriedrice=Entry(f1, font=('arial', 16, 'bold'), textvariable=Friedrice,
 bd=10, insertwidth=4,bg="powder blue", justify="right")
 txtFriedrice.grid(row=1, column=1)

 lblMeatpie=Label(f1, font=('arial', 16, 'bold'), text="Meatpie", bd=16, anchor='w')
 lblMeatpie.grid(row=2, column=0)
 txtMeatpie=Entry(f1, font=('arial', 16, 'bold'), textvariable=Meatpie,
 bd=10, insertwidth=4,bg="powder blue", justify="right")
 txtMeatpie.grid(row=2, column=1)

 lblSalad=Label(f1, font=('arial', 16, 'bold'), text="Salad", bd=16, anchor='w')
 lblSalad.grid(row=3, column=0)
 txtSalad=Entry(f1, font=('arial', 16, 'bold'), textvariable=Salad,
 bd=10, insertwidth=4,bg="powder blue", justify="right")
 txtSalad.grid(row=3, column=1)

 lblChicken=Label(f1, font=('arial', 16, 'bold'), text="Chicken", bd=16, anchor='w')
 lblChicken.grid(row=4, column=0)
 txtChicken=Entry(f1, font=('arial', 16, 'bold'), textvariable=Chicken,
 bd=10, insertwidth=4,bg="powder blue", justify="right")
 txtChicken.grid(row=4, column=1)

 lblSausageroll=Label(f1, font=('arial', 16, 'bold'), text="Sausageroll", bd=16, anchor='w')

vi
 lblSausageroll.grid(row=5, column=0)
 txtSausageroll=Entry(f1, font=('arial', 16, 'bold'), textvariable=Sausageroll,
 bd=10, insertwidth=4,bg="powder blue", justify="right")
 txtSausageroll.grid(row=5, column=1)

 lblSharwarma=Label(f1, font=('arial', 16, 'bold'), text="Sharwarma", bd=16, anchor='w')
 lblSharwarma.grid(row=0, column=2)
 txtSharwarma=Entry(f1, font=('arial', 16, 'bold'), textvariable=Sharwarma,
 bd=10, insertwidth=4,bg="powder blue", justify="right")
 txtSharwarma.grid(row=0, column=3)

 lblJuice=Label(f1, font=('arial', 16, 'bold'), text="Juice", bd=16, anchor='w')
 lblJuice.grid(row=1, column=2)
 txtJuice=Entry(f1, font=('arial', 16, 'bold'), textvariable=Juice,
 bd=10, insertwidth=4,bg="white", justify="right")
 txtJuice.grid(row=1, column=3)

 lblTurkey=Label(f1, font=('arial', 16, 'bold'), text="Turkey", bd=16, anchor='w')
 lblTurkey.grid(row=2, column=2)
 txtTurkey=Entry(f1, font=('arial', 16, 'bold'), textvariable=Turkey,
 bd=10, insertwidth=4,bg="white", justify="right")
 txtTurkey.grid(row=2, column=3)

 lblSubtotal=Label(f1, font=('arial', 16, 'bold'), text="Subtotal", bd=16, anchor='w')
 lblSubtotal.grid(row=3, column=2)
 txtSubtotal=Entry(f1, font=('arial', 16, 'bold'), textvariable=Subtotal,
 bd=10, insertwidth=4,bg="white", justify="right")
 txtSubtotal.grid(row=3, column=3)

vi
 lblService_Charge=Label(f1, font=('arial', 16, 'bold'), text="S.Charge", bd=16,
anchor='w')
 lblService_Charge.grid(row=4, column=2)
 txtService_Charge=Entry(f1, font=('arial', 16, 'bold'), textvariable=Service_Charge,
 bd=10, insertwidth=4,bg="white", justify="right")
 txtService_Charge.grid(row=4, column=3)

 lblTax=Label(f1, font=('arial', 16, 'bold'), text="Tax", bd=16, anchor='w')
 lblTax.grid(row=5, column=2)
 txtTax=Entry(f1, font=('arial', 16, 'bold'), textvariable=Tax,
 bd=10, insertwidth=4,bg="white", justify="right")
 txtTax.grid(row=4, column=3)

 lblCost=Label(f1, font=('arial', 16, 'bold'), text="Total Cost", bd=16, anchor='w')
 lblCost.grid(row=5, column=2)
 txtCost=Entry(f1, font=('arial', 16, 'bold'), textvariable=Cost,
 bd=10, insertwidth=4,bg="white", justify="right")
 txtCost.grid(row=5, column=3)

 btnTotal=Button(f1, padx=16, pady=8,bd=16, fg='black',font=('arial', 16, 'bold'),
width=10, text="Total",
 bg="powder blue", command=Ref).grid(row=7, column=1)

 btnReset=Button(f1, padx=16, pady=8,bd=16, fg='black',font=('arial', 16, 'bold'),
width=10, text="Reset",
 bg="powder blue", command=Reset).grid(row=7, column=2)

 btnExit=Button(f1, padx=16, pady=8,bd=16, fg='black',font=('arial', 16, 'bold'),
width=10, text="Exit",
 bg="powder blue", command=qExit).grid(row=7, column=3)

vi


 me.mainloop()

the above program runs execute as seen in page v

CHAPTER THREE

3.1 MYSQL DATABASE

vi
MySQL is a database. The data in MySQL is stored in database objects called tables. A table is a
collection of related data entries and it consists of columns and rows.

Databases are useful when storing information categorically. A company may have a database
with the following tables: "Employees", "Products", "Customers" and "Orders".

3.2 PHP MYSQL CONNECT TO A DATABASE

Before you can access data in a database, you must create a connection to the database.

In PHP, this is done with the mysql_connect() function.

Syntax
<?php
$con = mysql_connect("localhost","evans","1111");
if (!$con)
  {
  die('Could not connect: ' . mysql_error());
  }

// some code
?>

3.3 CREATE A DATABASE

The CREATE DATABASE statement is used to create a database in MySQL.

vi
3.4 INSERT DATA INTO DATABASE TABLE

The INSERT INTO statement is used to add new records to a database table.

3.5 SELECT DATA FROM A DATABASE TABLE

The SELECT statement is used to select data from a database.

vi
<?php
$con = mysql_connect("localhost","peter","abc123");
if (!$con)
  {
  die('Could not connect: ' . mysql_error());
  }

mysql_select_db("my_db", $con);

$result = mysql_query("SELECT * FROM Persons");

while($row = mysql_fetch_array($result))
  {
  echo $row['FirstName'] . " " . $row['LastName'];
  echo "<br />";
  }

mysql_close($con);
?>

vi
CHATER FOUR

CONCLUSION

In summary, Python is abroad and interesting language. A language in which you can
accomplish anything in Science and mathematical computation, Data Analysis, Machine
Learning etc.

Indeed, the knowledge of python has widened my horizon in the world of software development
such as: OOP, structural programming GUI application etc.

4.1 PROBLEMS AND CHALLENGES ENCOUNTERED DURING MY


ATTACHMENT

Problems I encountered during my I.T attachment were:

 Most times there was bad network connection in other to access the internet.
 Understanding the algorithm of python language.
 Downloading and installing the Code Editors e.g. VScode and setting it up for
learning(coding), finding the IDLE of python in system (it took me quite some time
to find it on my system) and setting up The IDE (Pycharm)

4.2 ACTIVITIES ENGAGED IN DURING ATTACHMENT

At first I was placed in the web development department as a tutor. Due to the covid 19
regulation rules, most of our classes were online before we were back to class

4.3 PERSONAL OBSERVATION IN THE SIWES PROGRAM

I observed that It is an environment very conducive for learning, most times there was
traffic in the network

vi
4.4 WAYS OF IMPROVING THE SIWES PROGRAM

The school should post students to various organizations or their SIWES program,
because on countless occasions students tend to find it very difficult getting placement
for their I.T attachment.

4.5 ADVICE FOR FUTURE PARTICIPANTS


My advice for future participants, is that they should go for the knowledge other than
the salary, because knowledge builds self-worth not salary

vi
vi
vi

You might also like