131466248 Student Attendance Management System Copy (2)

57
1 STUDENT ATTENDANCE MANAGEMENT SYSTEM PRESENTED BY AMADI QUEEN NGOZI DSPT/COE/1011/8706 OBRKI GABRIEL DSPT/COE/1011/8555 CHUWUJI MESACH DSPT/COE/1011/8716 DEPARTMENT OF COMPUTER ENGINEERING DELTA STATE POLYTECNIC OTEFE OGHARA 2012

Transcript of 131466248 Student Attendance Management System Copy (2)

Page 1: 131466248 Student Attendance Management System Copy (2)

1

STUDENT ATTENDANCE MANAGEMENT SYSTEM

PRESENTED

BY

AMADI QUEEN NGOZI

DSPT/COE/1011/8706

OBRKI GABRIEL

DSPT/COE/1011/8555

CHUWUJI MESACH

DSPT/COE/1011/8716

DEPARTMENT OF COMPUTER ENGINEERING

DELTA STATE POLYTECNIC

OTEFE OGHARA

2012

Page 2: 131466248 Student Attendance Management System Copy (2)

2

STUDENT ATTENDANCE MANAGEMENT SYSTEM

PRESENTED

BY

AMADI QUEEN NGOZI

DSPT/COE/1011/8706

OBRKI GABRIEL

DSPT/COE/1011/8555

CHUWUJI MESACH

DSPT/COE/1011/8716

DEPARTMENT OF COMPUTER ENGINEERING

DELTA STATE POLYTECNIC

OTEFE OGHARA

A PROJECT PRESENTED TO THE SCHOOL OF ENGINEERING,

DEPARTMENT OF COMPUTER.DELTA STATE POLYTECHNIC, OTEFE

OGHARA

IN FULFILLMENT OF THE REQUIREMENT FOR THE AWARD OF

NATIONAL DIPLOMA CERTIFICATE IN COMPUTER ENGINEERING

2012

Page 3: 131466248 Student Attendance Management System Copy (2)

3

DECLARATION

We hereby declare that this project is our original work and it has not been

submitted to any institution for the award of any diploma or degree which here

applicable to the best of our knowledge.

OBRIKI GABRIEL DATE

AMADI QUEEN NGOZI DATE

CHUKWUJI MESACH DATE

Page 4: 131466248 Student Attendance Management System Copy (2)

4

DEDICATION

This project is dedicated to God Almighty for giving us the grace, courage and

strength to complete our national diploma program.

Page 5: 131466248 Student Attendance Management System Copy (2)

5

CERTIFICATION

I here by certify that the work was carried out by AMADI QUEEN NGOZI,

OBRIKI GABRIEL, CHUKWUJI MESHACH of the department of computer

engineering, school of engineering, Delta State Polytechnic, Otefe-Oghara, under

my supervision.

ENGR. DAVID.E.OKENE DATE (PROJECT SUPERVISOR)

MR. ENEKPERE.V DATE (H.O.D)

Page 6: 131466248 Student Attendance Management System Copy (2)

6

ABSTRACT

This project is absolutely on the computer-based attendance management system. Computer based attendance system provide efficient means of determining eligibility criteria for students to meet examination requirements.

Now, with the advent of the computerized attendance management system, problems associated with the manual processing of student attendance will be alleviated to its minimum level.

Hence, computerization of attendance management system aimed at its incorporating a computer based system in processing attendance of student at promoting speed of operations and accuracy of result.

In the overview, this project looks at the existing system of student attendance management and attempt to covert the process from manual to a computerized one in order to reduce the time spent on manual operations to eradicate errors and time consumptions.

The programming language used for this project work is visual basic .net , it was used because it is easy to manage, it is object oriented and its availability of debugging tools. Visual basic .net used as front-end and Microsoft access used at the back-end.

Page 7: 131466248 Student Attendance Management System Copy (2)

7

ACKNOWLEDGEMENT

With profound gratitude to God Almighty that sustained us to successfully

complete project as well as our academic program.

“Learning is a treasure which accompanies its owner everywhere” this is true, in

that the best legacy parents can leave behind for their child is “Education.”

Our sincere appreciation goes to our beloved parents, guardian and sponsors for

their love, moral contribution and financial assistance given to us during the course

of our academic program.

Finally, our utmost thanks and profound gratitude goes to the entire lecturers in

computer engineering department with special regards to the head of department,

our project supervisor Mr. David Ese Okene for his fatherly, elderly, active and

sincere advice during the period of the project.

Page 8: 131466248 Student Attendance Management System Copy (2)

8

TABLE OF CONTENT

TITLE……………………………………………. I

DECLARATION………………………………… II

DEDICATION ……………………………...…. III

CERTIFICATION…………………………….. IV

ACKNOWLEDGEMENT ……………………... V

ABSTRACT…………………………………….. VI

TABLE OF CONTENTS ……………………… VII

CHAPTER ONE

INTRODUCTION

1.1 BACKGROUND OF THE STUDY…………………..

1.2 AIMS AND OBJECTIVE…………………………….

1.3 SCOPE OF THE STUDY……………………………..

1.4 OVERVIEW……………………………………………

1.5 LIMITATION OF THE STUDY......................................

1.6 DEFINITION OF TERMS……………………………..

Page 9: 131466248 Student Attendance Management System Copy (2)

9

CHAPTER TWO

2.0 LITERATURE REVIEW…………………………..

2.1 DATA PROCESSING SYSTEM……………………

2.2 INFORMATION SYSTEM CAPABILITIES……….

2.3 WORKING OF THE PRESENT SYSTEM…………

2.4 PROPOSED SYSTEM……………………………..

2.5 DATA FLOW DIAGRAM (DFD)………………….

CHAPTER THREE

3.0 METHODOLOGY………………………………….

3.1 STUDENT INFO. MAINTENANCE………………..

3.2 SOFTWARE ENGINEERING MODEL…………….

3.3 SYSTEM REQUIREMENT SPECIFICATION (S.R.S)

3.4 DESIGN AND DEVELOPMENT……………………

3.5 MAINTENABILITY………………………………….

3.6 PORTABILITY………………………………………..

3.7 USE CASE DIAGRAM…………………………………

Page 10: 131466248 Student Attendance Management System Copy (2)

10

CHAPTER FOUR

4.0 SUMMARY, CONCLUSION AND RECOMMENDATION…….

4.1 SUMMARY………………………………………………………..

4.2 CONCLUSION……………………………………………………..

4.3 RECOMMENDATION………………………………………………

REFRENCES……………………………………………………………….

APPENDIX 1……………………………………………………………….

APPENDIX 2……………………………………………………………….

Page 11: 131466248 Student Attendance Management System Copy (2)

11

CHAPTER ONE

1.0 INTRODUCTION

1.1 BACKGROUND OF THE STUDY

The world itself has become a global village of technology today, especially

with the computer technology. With the advent of new technology, the world is

now witnessing an easy way to keep information / data. Hence the introduction of

computer is one of the greatest challenges facing man today. Attendance

Management System is software developed for daily student attendance in schools,

colleges and institutes. It facilitates to access the attendance information of a

particular student in a particular class. The information is sorted by the operators,

which will be provided by the lecturer for a particular class. This system will also

help in evaluating attendance eligibility criteria of a student. Since ages, attendance

system has remained one of the most important systems for evaluating the working

time of students in any college or school. In short, this project is used to mark the

number of days present/absent in any academic year of students in a college,

school etc. The software system also helps in evaluating the examination eligibility

criteria for a student in the sense that only those students with attendance above

Page 12: 131466248 Student Attendance Management System Copy (2)

12

75% are allowed to sit for the semester exams. And this system will also help in

evaluating attendance eligibility criteria of a student. In schools, attendance is

important and mandatory. Nowadays, due to the large number of students, it is

efficient to use attendance management system to manage attendance in schools.

1.2 AIMS AND OBJECTIVES

This report describes the capabilities that will be provided by the Software

application “Student Attendance Management System”. The purpose of developing

this attendance management system is to computerize the traditional way of taking

attendance in classes and also manage student information along with their classes

and subjects.

Another purpose for developing the software is to generate the reports

automatically whenever required,-in between the semester or after the semester.

1.3 SCOPE OF THE STUDY

This project involves the design of computer software which is capable of

taking attendance record of students for a particular course with the aim/ purpose

of determining their eligibility to sit for the exam. Another striking feature about

Page 13: 131466248 Student Attendance Management System Copy (2)

13

the program is, it has the capability of sending the attendance records in the form

of an email to the parents / guardian of the student.

Technology Used

Language:- VB.NET

Backend:- MS ACCESS

System Requirement:

Minimum RAM:- 256 MB

Hard Disk:- 40 GB

Processor:- Intel Pentium 4

Operating System:- Windows XP Service Pack2

1.4 OVERVIEW

Attendance Management System basically has two main modules for proper

functioning:

v First module is the admin, which has right for creating space for new batch.

(Any entry of new faculty, updating subject if necessary, and sending

notice.)

v Second module is handled by the user (sub-admin) which can be a faculty or

an operator. User has a right of making daily attendance, generating report.

Page 14: 131466248 Student Attendance Management System Copy (2)

14

Attendance can be taken;

v On the basis of Class (Subject and Week)

1.5 LIMITATION OF THE STUDY

It is offline software. Which the modification is supposed to send the

attendance at the end of the year and student assessments of the session to

the E-mail address of their parents /guardian.

1.6 DEFINITION OF TERMS

1. COMPUTER: A computer can be finely defined as an automatic electronic

machine, that can accept raw fact or data through an input device like the

keyboard or mouse: stores , processes the data in the system unit using a

particular program and finally supplying the result of information through an

output device such as monitor in the form of pictures or texts on the scrren

called the soft copy or a printer in form of printed paper called the hard

copy.

Page 15: 131466248 Student Attendance Management System Copy (2)

15

2. DATA: This ia raw material/ facts that has not been processed. Data are also

facts about an organisation or instituiton, and its daily transactions.

3. INFORMATION: These are data that has been processed and is

meaningful to the end user.

4. COMPUTER-BASED: It is also referred to as computerized. It is the art of

using computer system to carry out task.

5. ATTENDANCE: This is an act or fact of attending (being present at) work

or institution. Also, attendance is used to define the number of person

present at a particular day of an event or an institution.

6. SYSTEM: A system is a group of inter-related components working

together towards a common goal by accepting input and producing output in

an organised transformation process. It is also an organised collection of

people; machine and method required to accomplished a set of specific

functions.

7. DATABASE: Are not merely collections of files, rather the database is a

centre source of data meant to be shared by many users for a variety of

applications.

Page 16: 131466248 Student Attendance Management System Copy (2)

16

8. VISUAL BASIC: Is an object oriented programming development system

for creating application that run under any of the microsoft windows

environment. In visual basic, a program is referred to, as a project.

9. MICROSOFT VISUAL STUDIO: The latest version of microsoft visual

studio called visual studio .net includes, visual basic 6.0, visual c++, the

new language c# (c sharp) and the .net framework. Visual studio . net,

sometimes referred to as “version” is a major revision of the previous

versions.

Page 17: 131466248 Student Attendance Management System Copy (2)

17

CHAPTER TWO

2.0 LITERATURE REVIEW

According to Cobuild learners dictionary “Attendance is the fact that someone

is present at an event or go regularly to an institution, or the attendance at an event

is the number of people who are present at it. Furthermore, if someone is in

attendance of a place or event, they are present.”

According to Turban Mclean. Wetherbe (1998) from their book “Information

Technology For Management”, it was stated that the term “information system” is

a collection of component that collects, processes, stores, analyses and disseminate

information for a specific purpose, like any other system. An information system

includes inputs (data, instructions and output reports, calculation).

Page 18: 131466248 Student Attendance Management System Copy (2)

18

According to A.N Aniekwu and Jone Akpodvado (1999) from their book

“fundamental of practical computer” a computer is a machine that performs

calculation and processes automatically at high speed according to prescribed

sequence of operations to an electronic machine also to one of a mechanic,

analogue or other variety.

Geoffrey K, Nick W, Paul C and John E (1987) added that computer system

consist of individual element working together with the common aim of processing

data > process > information.

C.S French (1996) in his book “Computer Science” asserts that a record is

information relating to one person, production e.t.c in database, a record

contains information about one person.

Larry long and Nancy long (1993) “Computer” computer is able of

interpreting and executing programmed command for input, output,

computation and logic operations.

Aghawra E.D (2002) “Operate Your Computer” asserts that computer are

electronic devices that can be programmed to accept (input), program the input,

store it and output useful information as technological society becomes more

complex.

Page 19: 131466248 Student Attendance Management System Copy (2)

19

Akin Fapohide (2005) says that, computer is a machine that follows

instructions in order to process data, solve specific problem or accomplished

task is referred to as program.

Attendance Management System facilitates the attendance information of a

particular student in a particular class. The information is sorted by the

operators, which will be provided by the lecturer for a particular class. This

system will also help in evaluating eligibility criteria of a student to sit for an

examination.

2.1 DATA PROCESSING SYSTEM

Data processing system are conned with the transaction, handling and record

keeping, usually for a particular functional area. Data are entered and stored in

a file format, the stored files are updated during routine processing. The major

drawback of data processing system is that, they are flexible and control/

accommodates data, information needs that are not already built into the

system.

Page 20: 131466248 Student Attendance Management System Copy (2)

20

2.2 INFORMATION SYSTEM CAPABILITIES

Information system includes all use of computer that support administrative

aspect of an organization, example includes, application of payroll system,

registration system, hospital patient bill system, registration combination of

hardware, software , peoples procedure for an information system. A computer

based information system provides an organization with data processing.

Information system has four capabilities as a computer system, which includes

the following: input, processing, storage and output.

2.3 WORKING OF PRESENT SYSTEM

In the present system all work is done on paper. The whole session attendance is

stored in register and at the end of the session the reports are generated. We are not

interested in generating report in the middle of the session or as per the

requirement because it takes more time in calculation. At the end of session the

students who don’t have 75% attendance get a notice.

Disadvantages of Present Working System

v Not User Friendly: The existing system is not user friendly because the

retrieval of data is very slow and data is not maintained efficiently.

Page 21: 131466248 Student Attendance Management System Copy (2)

21

v Difficulty in report generating: We require more calculations to generate the

report so it is generated at the end of the session and the student does not get

a single chance to improve their attendance.

v Manual control: All calculations to generate report, is done manually so

there is greater chance of errors.

v Lots of paperwork: Existing system requires lot of paper work. Loss of even

a single register/record led to difficult situation because all the papers are

needed to generate the reports.

v Time consuming: Every work is done manually so we cannot generate report

in the middle of the session or as per the requirement because it is very time

consuming.

v Less security: Security of data is less in manual systems. This is because

majority of the records are stored as statements or in registers. Moreover,

these data can be accessed by anyone and even they can modify any

important data.

2.4 PROPOSED SYSTEM

This Application is built for automating the processing of attendance. It also

enhances the speed of performing attendance task easily. It also generates periodic

reports to keep a check on the students who are regular & who are not.

Page 22: 131466248 Student Attendance Management System Copy (2)

22

The Admin has to login to the system & then in the attendance option they

have to select appropriate class, semester and subject. So this will display the list

of the students who are eligible to appear in this session. Now the admin has to

just select the students name from the manual attendance sheet according to their

roll number and then submit the sheet. This will add the selected students as

present student in that particular session.

This system is very useful to the office, because they can generate various

types of reports and submit them to respective department also or also can be

submitted to the College Coordinator. Office staff can also generate black list of

students who have Attendance less than 50% to 75%. There are various kinds of

reports can be generated.

Characteristics of the proposed system-

v User Friendly:-The proposed system is user friendly because the retrieval

and storing of data is fast and data is maintained.

v Efficiently:- Moreover the graphical user interface is provided in the

proposed system, which provides user to deal with the system very easily.

v Reports are easily generated:- Reports can be easily generated in the

proposed system so user can generate the report as per the requirement

Page 23: 131466248 Student Attendance Management System Copy (2)

23

(monthly) or in the middle of the session. User can give the notice to the

students so he/she become regular.

v Very less paper work:- The proposed system requires very less paper work.

All the data is feted into the computer immediately and reports can be

generated through computers. Moreover work becomes very easy because

there is no need to keep data on papers.

v Computer operator control:- Computer operator control will be there so no

chance of errors. Moreover storing and retrieving of information is easy. So

work can be done speedily and in time.

v Provision of Employment.

2.5 DATA FLOW DIAGRAM:-

A data flow diagram (DFD) is a graphical representation of the "flow" of

data through an information system. It differs from the system flowchart as it

shows the flow of data through processes instead of hardware.

The DFD is a way of expressing the system in a graphical format, a modular

design was developed by Larry Constrains. This DFD is also known as “Bubble

Chart” has the purpose to classify the system requirement and to identify the major

information that will be a program in system design.

Page 24: 131466248 Student Attendance Management System Copy (2)

24

A Data Flow Diagram is logical model of the system and shows the flow of

the data and the flow of logic so this all thing describes what takes place in a

proposed system, not how the activities are accomplished.

We have noted that the DFD describes what the flow is rather then how they

are processed, so it means the DFD doesn’t depend on the hardware, software, data

structure or file organization.

DFD consist of a series of symbols joined together by a line.

OVERALL DATA FLOW CHAT DIAGRAM

PROCESS

START/STOP

DATABASE

Page 25: 131466248 Student Attendance Management System Copy (2)

25

DECISION

CONNECTOR

INPUT

CHAPTER THREE

3.0 METHODOLOGY

Student Attendance Management System has been developed in Institute for

computerized attendance submission and it’s monitoring by Lecturers, Head of

Departments, Dean Academic Affairs and Director. Students/Guardians also have

access to view their attendance. In this, the Lecturers engaging different classes are

required to submit the attendance of the students present in their class regularly.

Detailed guidelines for its use are under. Teachers will submit their attendance

through this Student Attendance Management System.

3.1 STUDENT INFO MAINTENANCE

Page 26: 131466248 Student Attendance Management System Copy (2)

26

The system will maintain information about various students enrolled in the

course in different years. The following information will be maintained for each

student: Student name, Matriculation number, Admission year, Level.

The system will also allow creation, modification, deletion of new and

existing students’ info by the Operator, and also the ability to list all the students

enrolled in a particular year.

Attendance Management System basically has two main modules for proper

functioning:

• First module is admin which has right for creating space for new batch, any entry

of new faculty, updating a subject if necessary, and sending notice.

• Second module is handled by the sub-admin which can be a faculty or an

operator. User has a right of making daily attendance, generating report.

3.2 SOFTWARE ENGINEERING MODEL

The model employed to materialize the Student Attendance Management

System is the iterative waterfall model. A common mistake is to consider

"iterative" and "incremental" as synonyms, which they are not. In software

(systems development). The basic idea is to develop a system through repeated

cycles (iterative) and in smaller portions at a time (incremental), allowing software

Page 27: 131466248 Student Attendance Management System Copy (2)

27

developers to take advantage of what was learned during development of earlier

parts or versions of the system. Learning comes from both the development and

use of the system, where possible key steps in the process start with a simple

implementation of a subset of the software requirements, iteratively enhance the

evolving versions until the full system is implemented. At each iteration, design

modifications are made and new functional capabilities are added.

The procedure itself consists of the initialization step, the iteration step, and

the Project Control List. The initialization step creates a base version of the system.

The goal for this initial implementation is to create a product to which the user can

react. It should offer a sampling of the key aspects of the problem and provide a

solution that is simple enough to understand and implement easily.

Technology Used:-

Language:- VB.NET

Backend:- MS-Access

System Requirement:-

Minimum RAM:- 256 MB

Hard Disk:- 40 GB

Processor:- Intel Pentium 4

Page 28: 131466248 Student Attendance Management System Copy (2)

28

Operating System:-Windows XP Service Pack2

3.3 SYSTEM REQUIREMENT SPECIFICATION (S.R.S.)

3.3.1 Functional Requirements

The functional requirement of the project is defined under three modules. The first

module allows the system Administrator(admin) to log into his account and has the

privileges to do multiple things some of the include adding new student,

modifying student information and modifying student information, deleting of

student and sub admin, also there is a provision to change login password.

The second module of the project defines itself in terms of being used by the sub-

admin (Lecturers) Lecturer have to enter their login id and Password in system.

After that the id is verified and the records of Student of particular semester are

displayed on the screen. Lecturer now mark the attendance of student who is

present in class, lecturer can also change their password.

The third module of the project allows the students to log into the system and view

their current attendance statistics. No other privileges are given to the student.

Page 29: 131466248 Student Attendance Management System Copy (2)

29

3.3.2 Non-Functional Requirements:-

v Hardware requirements-

Hardware Interface 1: The system should be embedded in the PC/Laptop.

Hardware Interface 2: 40 GB hard disk and 256 MB RAM.

v Software requirement-

Software Interface: Student Attendance management System.

Page 30: 131466248 Student Attendance Management System Copy (2)

30

FLOW CHART

3.4 DESIGN AND DEVELOPMENT

3.4.1 Design of Project:-

GUI 1: Main provides the basic navigation access to the user allowing him to

choose his login type as Administrator, sub-admin or Student.

No No

No

Yes

Yes

Yes Yes

Start

Stud login Enter Uname and

pwd

Uname and pwd in dbase

Display stud record

Uname and pwd in dbase

Display admin Page

Enter admin Uname and pwd

Admin login

Page 31: 131466248 Student Attendance Management System Copy (2)

31

GUI 2: Based on the users’ selection on the first screen he is navigated to the other

screen on the basis of selection he/she made.

GUI 3: This screen is the users main work area from the navigation menu the user

selects for the operation to be performed and is taken to the respective domain of

the project.

3.5 MAINTAINABILITY

The application will be designed in a maintainable manner. It will be easy to

Incorporate new requirements in the individual modules (i.e. student info, student

attendance info, and user accounts info and reports generation).

3.6 PORTABILITY

The application will be easily portable on any windows-based system that has MS

Access 2000 installed.

3.7 USE CASE DIAGRAM:-

A use case diagram in the Unified Modeling Language (UML) is a type of

behavioral diagram defined by and created from a Use-case analysis. Its purpose is

Page 32: 131466248 Student Attendance Management System Copy (2)

32

to present a graphical overview of the functionality provided by a system in terms

of actors, their goals (represented as use cases), and any dependencies between

those use cases.

The main purpose of a use case diagram is to show what system functions are

performed. Roles in the system can be depicted.

Use Case diagrams are formally included in two modeling languages defined by

the OMG: the Unified Modeling Language (UML) and the Systems Modeling

Language (SysML).

Page 35: 131466248 Student Attendance Management System Copy (2)

35

CHAPTER FOUR

4.0 SUMMARY, RECOMMENDATION AND CONCLUSION

4.1 SUMMARY

From all discussions or ideas that have been considered in this write-up

about a student attendance management system, it can be seen that the project is

automated attendance system. The system is designed using any preferred or

assigned programming software: visual basic .net.

When the data entry officer enters a data of a student attendance, as result

are being accessed, the automated attendance gives a percent in the continuous

assessment of the student.

4.2 CONCLUSION

The Attendance Management System is developed using Visual Basic.NET. it

fully meets the objectives of the system for which it has been developed. The

system has reached a steady state where all bugs have been eliminated. The system

is operated at a high level of efficiency and all the lecturers and users associated

with the system understand its advantage. From the tests performed on the new

system\design it will improve on the overall performance on the management of

Page 36: 131466248 Student Attendance Management System Copy (2)

36

students attendance, thus the system solves the problem that it was intended to

solve. Furthermore, computerization of attendance system is not just a matter of

technological innovation and development; It is a process which involves

individual, organization and society in general. The computerization of the

attendance system has brought about faster access and easier method of viewing,

editing, printing (documentation) of student attendance record.

4.3 RECOMMENDATION

This study is based on the computerization of the attendance management

system . The present system(manual) has been seen to be error prone, ineffective

and time consuming which sometimes give rise to incorrect attendance information

then this will at the long run(semester end or examination period) affect decision

making of the department or institution.

I recommend that the new system based on the study should be put in place

immediately, when the new system has been fully tested and found reliable. Proper

staff training should also be affected so that skilled person will be available to use

the computerized system. It should be noted that the computer is a machine that

Page 37: 131466248 Student Attendance Management System Copy (2)

37

gives you the result of what you put in (garbage in garbage out). Proper care

should be taken to prevent incorrect input of data.

Page 38: 131466248 Student Attendance Management System Copy (2)

38

REFERENCES

Julia Case Bradley. Anita C. Millsspaugh (2002); programming in visual basic 6.0. George wertherman, New York.

Carl Franklin (1999): Visual Basic 6.0. Internet Programming Robert Ispen, Canada.

Dulanley Emmett (2000): Visual Basic 6.0 Brief Course, Glencoe / Mc Grawatt, United State (U.S.A)

Mark I Marpet (1999) Visual Basic 6.0 Complete Course, Glencoe / Mc Grawatt, U.S.A

Steven Holzru (2000) : Visual Basic 6.0 Programming Indian Dreamtech Press, New Delhi 110002

Deitel and Deitel T.R Nieto (2002): Visual Studio Series, Pearson Education (Singapore) P.T.E. Ltd Indian Branch.

Bryon S, Gottfried, (2001): Programming With Visual Basic, Tata Mc Graw-Hill Publishing Company Limited, New York.

Julia Case Bradley. Anita C. Millspaugh (2010): Programming in Visual Basic .Net, Mc Graw Hill Companies Limited, New York.

Ian Sinclair (1994): Visual Basic Beginners, Bruce Smith Books Limited. U.K

Phil Feldman (1993): Using Visual Basic 3, David P.Ewing.USA

Julia Case Bradley (1998): Programming In Visual Basic, Mc Graw-Hill, U.S.A

Julia Case Bradley (1996): Programming In Visual Basic 4.0.

www.microsoft.com(03/09/2012)

www.w3schools.com(01/09/2012)

www.dotnetspider.com (27/08/2012)

Page 39: 131466248 Student Attendance Management System Copy (2)

39

www.google.com (15/07/2012)

APPENDIX 1

PROGRAM CODES

Page 40: 131466248 Student Attendance Management System Copy (2)

40

Imports System.Data Imports System.Data.OleDb Public Class Form1 Public cmd As OleDbCommand, cn As OleDbConnection, sql As String, cnstring As String Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click If ComboBox1.Text = "" Then MessageBox.Show("Select Username Please", "Student Login") ElseIf TextBox1.Text = String.Empty Then MessageBox.Show("Invalid password", "Student Login") TextBox1.Focus() Else cnstring = "Provider=Microsoft.Jet.Oledb.4.0; Data Source=C:\Users\Undisputed\Documents\Visual Studio 2008\Projects\Attendance\Attendance.mdb" cn = New OleDbConnection(cnstring) cn.Open() sql = "Select* from student where TYPE='" & ComboBox1.Text & "' and MatricNo='" & TextBox1.Text & "'" cmd = New OleDbCommand(sql, cn) cmd.ExecuteNonQuery() MessageBox.Show("Login Suxe4", "Student Login") student.Show() Me.Hide() ComboBox1.Text = "" TextBox1.Clear() End If End Sub Private Sub LinkLabel1_LinkClicked(ByVal sender As System.Object, ByVal e As System.Windows.Forms.LinkLabelLinkClickedEventArgs) Handles LinkLabel1.LinkClicked admin.Show() Me.Hide() End Sub

Page 41: 131466248 Student Attendance Management System Copy (2)

41

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click Me.Dispose() End Sub End Class

Admin Login

Imports System.Data Imports System.Data.OleDb Public Class admin Public cmd As OleDbCommand, cn As OleDbConnection, sql As String, cnstring As String Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click If ComboBox1.Text = "" Then MessageBox.Show("Select Username Please", "Student Login") ElseIf TextBox1.Text = String.Empty Then MessageBox.Show("Invalid password", "Student Lgin") TextBox1.Focus() ElseIf ComboBox1.Text = "HOD (Admin)" And TextBox1.Text = "Computer" Then MessageBox.Show("Welcome " & ComboBox1.Text, "Admin Login") adminpage.Show() Me.Hide() Else cnstring = "Provider=Microsoft.Jet.Oledb.4.0; Data Source=C:\Users\Undisputed\Documents\Visual Studio 2008\Projects\Attendance\Attendance.mdb" cn = New OleDbConnection(cnstring) cn.Open() sql = "Select* from login where Uname='" & ComboBox1.Text & "' and password='" & TextBox1.Text & "'" cmd = New OleDbCommand(sql, cn) cmd.ExecuteNonQuery() MessageBox.Show("Login Suxe4", "Administrator Login") subadminpage.Show() Me.Hide()

Page 42: 131466248 Student Attendance Management System Copy (2)

42

ComboBox1.Text = "" TextBox1.Clear() End If End Sub End Class

Admin Page

Public Class adminpage Private Sub adminpage_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load 'TODO: This line of code loads data into the 'AttendanceDataSet1.student' table. You can move, or remove it, as needed. Me.StudentTableAdapter.Fill(Me.AttendanceDataSet1.student) End Sub Private Sub CreateSubAdminToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CreateSubAdminToolStripMenuItem.Click creatadmin.showdialog() End Sub Private Sub DeleteSubAdminToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles DeleteSubAdminToolStripMenuItem.Click deleteadmin.showdialog() End Sub Private Sub LogoutToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles LogoutToolStripMenuItem.Click Form1.Show() Me.Hide() End Sub Private Sub CreateStudentToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CreateStudentToolStripMenuItem.Click

Page 43: 131466248 Student Attendance Management System Copy (2)

43

addstud.showdialog() End Sub Private Sub EditStudentListToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles EditStudentListToolStripMenuItem.Click Updatestud.showdialog() End Sub Private Sub DeleteStudentToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles DeleteStudentToolStripMenuItem.Click deletestud.showdialog() End Sub End Class

Student Page

Public Class student Private Sub student_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load 'TODO: This line of code loads data into the 'AttendanceDataSet.student' table. You can move, or remove it, as needed. Me.StudentTableAdapter.Fill(Me.AttendanceDataSet.student) End Sub Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Form1.Show() Me.Hide() End Sub End Class

Add Student Page

Imports System.Data Imports System.Data.OleDb Public Class addstud

Page 44: 131466248 Student Attendance Management System Copy (2)

44

Public cmd As OleDbCommand, cn As OleDbConnection, sql As String, cnstring As String Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click If TextBox2.Text = String.Empty Then MessageBox.Show("Invalid password", "Create Student") TextBox2.Focus() ElseIf TextBox1.Text = String.Empty Then MessageBox.Show("Enter Fullname Please", "Create Student") TextBox1.Focus() Else cnstring = "Provider=Microsoft.Jet.Oledb.4.0; Data Source=C:\Users\Undisputed\Documents\Visual Studio 2008\Projects\Attendance\Attendance.mdb" cn = New OleDbConnection(cnstring) cn.Open() sql = "Insert into student(FullName,MatricNo) values('" & TextBox1.Text & "','" & TextBox2.Text & "')" cmd = New OleDbCommand(sql, cn) cmd.ExecuteNonQuery() MessageBox.Show("Student Suxe4 Created", "Create Student") TextBox2.Clear() TextBox1.Clear() End If End Sub End Class

Create Admin

Imports System.Data Imports System.Data.OleDb Public Class creatadmin Public cmd As OleDbCommand, cn As OleDbConnection, sql As String, cnstring As String Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click If TextBox2.Text = String.Empty Then MessageBox.Show("Select Username Please", "Create Sub-admin") TextBox2.Focus()

Page 45: 131466248 Student Attendance Management System Copy (2)

45

ElseIf TextBox1.Text = String.Empty Then MessageBox.Show("Invalid password", "Create Sub-admin") TextBox1.Focus() ElseIf TextBox2.Text <> TextBox3.Text Then MessageBox.Show("Password Do not match", "Create Sub-admin", MessageBoxButtons.OK, MessageBoxIcon.Error) TextBox2.Clear() TextBox3.Clear() TextBox2.Focus() Else cnstring = "Provider=Microsoft.Jet.Oledb.4.0; Data Source=C:\Users\Undisputed\Documents\Visual Studio 2008\Projects\Attendance\Attendance.mdb" cn = New OleDbConnection(cnstring) cn.Open() sql = "Insert into login(Uname,password) values('" & TextBox1.Text & "','" & TextBox2.Text & "')" cmd = New OleDbCommand(sql, cn) cmd.ExecuteNonQuery() MessageBox.Show("User Suxe4 Created", "Create Sub-admin") TextBox3.Clear() TextBox2.Clear() TextBox1.Clear() End If End Sub End Class

Delete Admin

Imports System.Data Imports System.Data.OleDb Public Class deleteadmin Public cmd As OleDbCommand, cn As OleDbConnection, sql As String, cnstring As String Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click If TextBox2.Text = String.Empty Then MessageBox.Show("Select Username Please", "Delete Page") TextBox2.Focus()

Page 46: 131466248 Student Attendance Management System Copy (2)

46

ElseIf TextBox1.Text = String.Empty Then MessageBox.Show("Invalid password", "Delete Page") TextBox1.Focus() Else cnstring = "Provider=Microsoft.Jet.Oledb.4.0; Data Source=C:\Users\Undisputed\Documents\Visual Studio 2008\Projects\Attendance\Attendance.mdb" cn = New OleDbConnection(cnstring) cn.Open() sql = "Delete* from login where Password='" & TextBox2.Text & "' and Uname='" & TextBox1.Text & "'" cmd = New OleDbCommand(sql, cn) cmd.ExecuteNonQuery() MessageBox.Show("User Suxe4 Deleted", "Delete Page") student.Show() Me.Hide() TextBox2.Clear() TextBox1.Clear() End If End Sub Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click admin.Show() Me.Hide() End Sub End Class

Delete Student

Imports System.Data Imports System.Data.OleDb Public Class deletestud Public cmd As OleDbCommand, cn As OleDbConnection, sql As String, cnstring As String Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click If txtMat.Text = String.Empty Then MessageBox.Show("Select Username Please", "Delete Page")

Page 47: 131466248 Student Attendance Management System Copy (2)

47

txtMat.Focus() ElseIf txtuname.Text = String.Empty Then MessageBox.Show("Invalid password", "Delete Page") txtuname.Focus() Else cnstring = "Provider=Microsoft.Jet.Oledb.4.0; Data Source=C:\Users\Undisputed\Documents\Visual Studio 2008\Projects\Attendance\Attendance.mdb" cn = New OleDbConnection(cnstring) cn.Open() sql = "Delete* from student where MatricNo='" & txtMat.Text & "' and Fullname='" & txtuname.Text & "'" cmd = New OleDbCommand(sql, cn) cmd.ExecuteNonQuery() MessageBox.Show("Student Suxe4 Deleted", "Delete Page") txtMat.Clear() txtMat.Clear() End If End Sub Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click admin.Show() Me.Hide() End Sub End Class

Sub-Admin Page

Public Class subadminpage Private Sub subadminpage_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load 'TODO: This line of code loads data into the 'AttendanceDataSet.student' table. You can move, or remove it, as needed. Me.StudentTableAdapter.Fill(Me.AttendanceDataSet.student) End Sub

Page 48: 131466248 Student Attendance Management System Copy (2)

48

Private Sub CreateStudentToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CreateStudentToolStripMenuItem.Click addstud.ShowDialog() End Sub Private Sub EditStudentListToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles EditStudentListToolStripMenuItem.Click Updatestud.ShowDialog() End Sub Private Sub LogoutToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles LogoutToolStripMenuItem.Click Form1.Show() Me.Hide() End Sub End Class

Attendance Page

Imports System.Data Imports System.Data.OleDb Public Class Updatestud Public cmd As OleDbCommand, cn As OleDbConnection, sql As String, cnstring As String Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) cnstring = "Provider=Microsoft.Jet.Oledb.4.0; Data Source=C:\Users\Undisputed\Documents\Visual Studio 2008\Projects\Attendance\Attendance.mdb" cn = New OleDbConnection(cnstring) cn.Open() sql = "Select* from student where MatricNo='" & TextBox1.Text & "'" cmd = New OleDbCommand(sql, cn) cmd.ExecuteNonQuery() End Sub

Page 49: 131466248 Student Attendance Management System Copy (2)

49

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) TextBox1.Clear() End Sub Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click cnstring = "Provider=Microsoft.Jet.Oledb.4.0; Data Source=C:\Users\Undisputed\Documents\Visual Studio 2008\Projects\Attendance\Attendance.mdb" cn = New OleDbConnection(cnstring) cn.Open() sql = "Update student set week1='" & CheckBox1.Checked & "',week2='" & CheckBox2.Checked & "',week3='" & CheckBox3.Checked & "',week4='" & CheckBox4.Checked & "',week5='" & CheckBox5.Checked & "',week6='" & CheckBox6.Checked & "',week7='" & CheckBox7.Checked & "',week8='" & CheckBox8.Checked & "',week9='" & CheckBox9.Checked & "',week10='" & CheckBox10.Checked & "',week11='" & CheckBox11.Checked & "',week12='" & CheckBox12.Checked & "' where MatricNo='" & TextBox1.Text & "'" cmd = New OleDbCommand(sql, cn) cmd.ExecuteNonQuery() MessageBox.Show("Upadete Suxe4", "Update Student Info") End Sub Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click Me.Hide() End Sub End Class

APPENDIX 2

Page 55: 131466248 Student Attendance Management System Copy (2)

55

Admin-Create sub admin

Admin-Delete student