3. This is to certify that this is a bonafide record of the project work done
satisfactorily by
Roll No. in partial fulfillment of BIS (H)
7th
Semester Examination.
This report or a similar report on the topic has not been submitted for any
other examination and does not form part of any other course undergone
by the candidate
SIGNATURE OF THE STUDENT
PLACE: SIGNATURE OF THE
PROJECT GUIDE
DATE: Name
Designation
Address
Name & Seal of the Institute
3
CERTIFICATE
4. I acknowledge with immense pleasure my deep sense of gratitude and
indebtedness to Ms. Barkha Bahal for her adept guidance, constructive criticism,
valuable suggestions and constant encouragement during my project
preparation.
I place on record my thanks to Mr. Rajiv Chopra Course Coordinator BIS (H)
D.I.A.S. College and other members of staff for their help and cooperation.
I sincerely thank the Staff of Computer Lab at the D.I.A.S. college Rohini for their
support and cooperation.
4
ACKNOWLEDGMENT
5. Sr No. CONTENTS
1. INTRODUCTION.
2. OBJECTIVE
3. JUSTIFICATION AND NEED OF THE SYSTEM
4. ADVANTAGES OF SYSTEM
5. HARDWARE AND SOFTWARE REQUIREMENT
6. REQUIREMENT ANALYSIS FOR THE PROJECT
7. INPUT AND OUTPUT DESIGN
8. CHARACTERISTIC OF SYSTEM
9. RECOGNITION OF NEED
10. DFD
11. FORMS AND CODING
12. TESTING
13. RESULT AND CONCLUSION
14. BIBLIOGRAPHY
5
CONTENTS
6. It is the systematic management of Data, which is the center of
existence of almost all systems. It is one such system, the Fees
Collection system that is being catered to, here.
This system maintains regular, updated information pertaining to
each student in the records.
The categories of the maintenance are:
• Student: To keep the record of each student
studying in the Institution.
• Fees record: Holds the information about the fees of
each of the student.
• Monthly Fee: Holds the information about the monthly
fees of each standard.
All the records for the above have to be maintained and updated.
6
INTRODUCTION
7. MANUAL HANDLING OF RECORDS RESULTS IN:
• Massive paper work.
• Cumbersome updating.
• Threat of loss of files.
• Redundancy in information storage.
• Tedious report generation.
• Anomalies due to incorrect updates.
• Requirement of excessive manpower.
Hence to enable the smooth and efficient functioning of the above
system, the automation of the system is highly recommended. This
would mean that the complete mechanization of the system, which
refers to the handling of all the records and data in a computerized
fashion.
7
8. How is AUTOMATION achieved?
Automation is achieved by the maintenance of a centralized database
with several files dealing with the different categories mentioned
earlier. They would provide with the central storage of data leading to
several benefits for all. The programmer would cater to all the entries
and updates in the programming concepts developed.
ADVANTAGES OF AUTOMATION
• Removal of redundancy.
• Easy availability of all required information at a glance.
• Provision of easy updates and upkeep of records thereby
decreasing anomalies and maintaince.
• Easy generation of reports.
• No scope of skipping any defaulters.
• Easy searching for any particular data required.
Hence automation would lead to the availability of precise and correct
data with increased efficiency and easy availability. The system
8
9. hence would be competent and would work with increased
effectiveness.
9
10. OBJECTIVE OF THE FEES COLLECTION SYSTEM
• The main objective of the Fees Collection system is to compute
the fees of a student studying in the institution.
• Also the objective includes maintenance of the records of the
students in the institute. An institute may contain hundreds of
students so to keep a record of all of them we need a system
that is user friendly & easy to understand and operate.
• The objective also includes searching of a particular student
easy & less time consuming than the traditional method where
the records were maintained by hand and searching involved
hours.
• If you want to remove (delete the name) a particular student
form the institute by the old traditional methods then you don’t
know the number of relevant papers that the student may be
having & you are not able to remove all the papers. So this may
lead to incorrect records of students in the institute.
• Updating the records of the students in the institute becomes
much easier, simpler and less time consuming.
10
11. • The system helps to manipulate the records of the student
without any problem & by easier methods and ways. Anyone
with the knowledge of computers, and with authentic password
can make changes in the records of the students and update
them through the systems facility.
11
12. JUSTIFICATION AND NEED OF THE SYSTEM
Earlier the institute used to maintain its records of the students on
papers, which was an unreliable source so: -
• Records that were needed at a point time were not easily
available or traceable and could not be retrieved instantly or in
time.
• If records of a student are to be updated then mismatch in the
information was there as some times you may forget to update
information related to that record.
• If the records were wrongly entered then it was very difficult to
verify them.
• Searching for a particular record was a very hectic and a time
consuming process.
• Adding a new record needed all the related records also to be
updated but there used to be problems in updating all the
records.
• Traditional methods of maintaining the record was very time
consuming.
• Earlier methods were very costly and error prone.
12
13. Hence keeping all the above problems in mind the institute decided to
get such a system made that could do all the jobs of adding,
searching & compilation of records of students easy and efficient and
did not involve a lot of time.
13
14. ADVANTAGES OF THE SYSTEM
• There is fast retrieval of data and a lot of time is saved.
• The data is stored at a secure place, which in our case is the
Hard disk or the Floppy disk.
• The records can be easily maintained by anyone.
• The updation of the previous, existing records is easier and
simpler.
• Records can be easily added to the database and relevant
records get updated simultaneously.
14
15. HARDWARE AND SOFTWARE REQUIREMENTS
MINIMUM HARDWARE REQUIRED TO BUILD THE PROJECT
COMPRISES OF: -
• 100 MHz of 486 Processor
• 16 MB of RAM
SOFTWARE USED TO BUILT THE PROJECT COMPRISES OF: -
• MICROSOFT VISUAL STUDIO 6.0
• Microsoft Visual Basic 6.0
• Microsoft Office 2000
• Microsoft Access
15
16. REQUIREMENTS ANALYSIS FOR THE PROJECT
Analysis means identification, understanding and critically
examining the system and its parts (sub-systems) for the
purpose of achieving the goals (objectives) set for the system as
a whole through modifications, changed interrelationship of
components, deleting or merging or separating or break up of
components. It may also involve upgrading the system as a
whole. Requirements analysis is usually the first phase of large-
scale software development project. It is undertaken after a
feasibility study has been performed to define the precise costs
and benefits of a software system. The purpose of this phase is
to identify and document the exact requirements for the system.
16
17. INPUT AND OUTPUT DESIGN
Input Design
Inaccurate input data are the most common cause of errors in data
processing. Error entered by data entry operators are controlling by
input design in this system. Input design is the process of
converting user- originated inputs to a computer – based format. In
the system design phase, expanded data flow diagram identifies
logical data flows, data stores, sources, and destination. A systems
flow chart specifies master files (database), transaction fields and
computer programs. Input data are collected and organized into
groups of similar data .Once identified, appropriate input, media
are selected for processing.
Input Data
The goal of designing input data in this system is to make data
entry as easy, logical, and free from errors as possible. In entering
data the operators need to know the following:
17
18. 1. The allocated space for each field. For example the
allocated space for student name must contain the student
name.
2. Field sequence, which must match that in the source
document.
When we approached input data design, we design the source
documents that capture the data and then select the media used to
enter them into the computer.
Source Documents
Source document are captured initially on original paper or a
source document. In this system the source documents are entered
into the system directly through the keyboard. The source
document is logical and easy to understand. Each area in the form
is clearly identified and specified for the user what to write and
where to write it.
18
19. Input Media and Device
Source data are input into the system through the keyboard and
mouse. For example if we fill the form of student details then we
use the keyboard and mouse for input the required information.
Input Design Guidelines
The design of input play very significant role in getting the correct
output. It covers all phase of input from creation of initial from
creation of input data (original recording) to actual entering the
data to the system for processing. The input design is the link that
ties the information system into the world of its users. The various
objectives of input design involving in this system are as follows:
Controlling Amount of Data
In this system reducing data requirement is a major concern. By
reducing input requirement we speed the entire process from data
capture to processing to provide results to user.
19
20. Avoiding Delay
When processing is delayed owing to data preparation or data
entry, the cause is called a bottleneck. To avoiding bottlenecks
when designing input is one of the objectives of this system.
Avoiding Errors in Data
The third objective deals with errors. Since the batch codes data is
inputted, there are fewer opportunities for the errors to occur for
data redundancy. In this system checking the redundancy of data
that is entered reduces error.
Keeping the Process Simple
In this system achievement of all of the objectives are mentioned
in the simplest possible manner which is user friendly. In this
system student management presents the simple process for
management .
20
21. Major Concerns Regarding Input
Important points to be considered here are as follows:
What input is needed?
How and where is the input created?
How should the source documents be designed?
What format should be used for the input records?
What medium should be used for recording the input?
Output Design
Presenting the data processed by a computer-based information
system in an attractive and usable form has become very essential
these days.
There are three main reasons why outputs from the computer are
required in this system. They are:
21
22. i. Output is required for communicating to the persons
concerned.
ii. For re-input to the computer for being concerned with
other data and further processing.
iii. For permanent storage.
Types of Output
Outputs of this system are of different forms. The most common
are reports, displays of screen, etc. Outputs of this are placed into
two categories.
Application Output
Operating Output
Application Output
These are the outputs desired out of this system to meet its
objectives. Output as a requirement to meet the objective, batch
22
23. details, students status , daily ,monthly ,yearly registration report
are the example of such output.
Operating Output
These outputs are mainly generated for use of student management
staff and gives various indication as to how the system operates.
Warning messages, status indicators etc. are the example of such
output. These types of output are not concerned for the users.
Output Devices
The output devices used in the system are printers, Video Display
Units (VDUs). Printer is used to print the various types of reports.
VDUs are mainly used for displaying various input screens.
Output Design Consideration
Output to be produced is dependent upon the following
consideration:
23
24. Type of User and Purpose
Generally different levels of users will have different requirements
from the system. Some want student details. Some want batch
status report.
Content
The data that are needed is included in the output. These are
related to the purpose of the output. For example a student status
report needed student registration number, and batch status report
needed batch code.
Format
This refers to the arrangement of data on the report, titles, and
headlines. In this system data arrangement, titles and headlines are
in proper format, which is user friendly.
24
25. Volume
Often sheer volume of the output deters one from using the output.
The sheer bulk of report may also create problems for handling,
filling or printing time. In this system the batch reports are simple
and generated automatically which save the time.
Sequence
The usefulness of an output in this system very often depends on
the sequence of data printed. A proper sequence also helps the
distribution of outputs to different users.
Quality
This relates to the content, appearance and accuracy of the output.
Design of Output Reports
In this system the report has the following structure.
25
26. A report heading which generally appears only an the first
page of the report.
A page heading and sub heading are given at the top of the
page or report
.
A report of records containing some common feature are
grouped
together
26
28. CHARACTERISTICS OF SYSTEM
The following characteristics are present in this system:
1. Organization
This system represents an organization. Organization implies
structure and order. In this system there is arrangement of
components that helps to achieve objectives. In the design of this
system, from adding the student to the institute to generating the
daily registration report represents the organization structure.
When all the components are linked together, they work as a whole
system for generating required result.
2. Interaction
In this system each component functions with other components.
For example daily registration report is interacting with students
details, course details , batch details and payment details. The
28
29. interrelationships between these components allowing the system
to perform.
3. Interdependence
The components of the system are coordinated and linked together
in a planned way to achieve the objective. For example daily
registration report depends on the students details( enquirer’s
details ), and course details. In this system one subsystem depends
on the input of another subsystem for proper functioning; that is
the output of one subsystem is the required output for another
subsystem.
This interdependence is crucial in system work.
4. Integration
Integration is concerned with how a system is tied together.
Although each part of system performing a unique function they
are working together within the system. It means that all parts of
system are integrated. Successful integration typically produces a
29
30. better result as a whole rather than if each component works
independently
5. Central Objective
The last characteristic of this system is its central objective. The
central objective of this system is to represent the automated
system as well as to meet the user requirement in friendly way.
Elements of System Analysis
1. Outputs
First of all we must determine what the objectives or goals are,
what do we intend to achieve, what is the purpose of our work; in
other words, what is the main aim behind the system.
In this project, the main aim of the project is make the system
automated and user friendly. The exercises to carry out the
automation of the project are given and once the steps are carried
out and the reports are generated then the project can be considered
30
31. to be automated. Once we know our aim we can try to achieve it in
the best possible way.
2. Inputs
Once we know the output, we can easily determine what the inputs
should be. To make the system automated this project has accurate,
timeliness, proper formatted inputs data. These inputs data are
produced at least cost.
3. Files
As the word implies files are used to store data. The inputs data of
this system may be vital and may be historical data. Some inputs
data are generating from within the system. So these data are vital
for the system. These are stored in files either in terms of isolated
facts or in large volumes.
31
32. 4. Processes
Here the inputs and files are converting into outputs. This involves
the programs and the way in which data is processed through the
computer.
32
33. RECOGNITION OF NEED
Necessity is the mother of all inventions. Therefore first and foremost
step to develop any project is to determine what the necessity/need of
the user is, why the user needs another system what are the drawbacks
of the present system and for determining the problem in present
system requires investigation of the present system this investigation
leads to an idea about the problem and the need of the user.
The next step is called feasibility analysis in this it is analyzed
whether the proposed system (computerized student management
system) can solve the problem and whether the proposed system
can be developed within the resources provided by the user.
Feasibility Analysis
By feasibility analysis it can be founded whether the
proposed system meets performance requirements or not.
33
34. Cost & Benefit Analysis
Cost and benefit analysis gives the picture of the various
costs, benefits and rules associated with this system. The
procedures is as follows-
1. Identify the cost and benefits pertaining to this
project-
To identify the cost and benefit pertaining to this system,
the system requirements are known like
a. Better Student Service.
b. Faster Information Retrieval.
c. Quicker Report.
d. Lower Processing & Operating Costs.
e. Improved Staff Efficiency.
34
35. 2. Categorizing the various costs and benefit for
analysis-
In development cost estimates for this system, several
cost and benefits elements are considered which are as
follows:
a. Tangible and intangible cost and benefits
b. Direct and indirect cost and benefits
c. Fixed and variable cost and benefits
d. Hardware cost
e. Personal costs
f. Facility cost
g. Operating cost
h. Supply cost
35
36. 3. Interpreting the result of the analysis –
When the evaluation of this project is complete, the
results have to be interpreted. This entails comparing
actual results against a standard or the result of an
alternative investment.
36
38. Fees Information
Enrolment Number
Student Information
Student Information
Data Flow Diagram Level 1
School Administration Staff
Student
Management
Module
Fee Collection
Module
Student Information
Student Information Base
Student Information
Student Information
Fees Information
Fees Information Fees Information Base
38
39. FEE COLLECTION SYSTEM
School Administration Staff
Students Information
Students Information
Data Flow Diagram Level 0
39
47. MODULE
Feecollection_md.bas
Option Explicit
Global conn As New ADODB.Connection
Global record1 As ADODB.Recordset
Global record2 As ADODB.Recordset
Global record3 As ADODB.Recordset
Global strpass As String
Global str As String
Global annualfeemonth As Integer
Global addmission_num As Integer
Dim subj(5) As String
Public Sub main()
initial_data
CODING
47
48. frmMainMenu.Show
End Sub
Public Sub initial_data()
DataEnvironment1.Connection1.ConnectionString =
"DBQ=.feecollection.mdb;DefaultDir=.;Driver={Microsoft Access
Driver (*.mdb)};DriverId=25;FIL=MS
Access;FILEDSN=.feecollection.dsn;MaxBufferSize=2048;MaxScan
Rows=8;PageTimeout=5;SafeTransactions=0;Threads=3;UID=admin
;UserCommitSync=Yes;"
Set conn = DataEnvironment1.Connection1
conn.Open
End Sub
Public Function setmonth(mon As String) As Integer
Dim index As Integer
Select Case mon
Case "JAN"
index = 1
Case "FEB"
48
49. index = 2
Case "MAR"
index = 3
Case "APR"
index = 4
Case "MAY"
index = 5
Case "JUN"
index = 6
Case "JUL"
index = 7
Case "AUG"
index = 8
Case "SEP"
index = 9
Case "OCT"
index = 10
Case "NOV"
index = 11
Case "DEC"
49
50. index = 12
End Select
setmonth = index
End Function
Public Function setareacode(str As String) As Integer
Dim index As Integer
Select Case str
Case " 1 North"
index = 1
Case " 2 South"
index = 2
Case " 3 East"
index = 3
Case " 4 West"
index = 4
Case " 5 North-East"
index = 5
Case " 6 NORTH-West"
index = 6
50
51. Case " 7 South-East"
index = 7
Case " 8 South-West"
index = 8
End Select
setareacode = index
End Function
Public Function setstandard(str As String) As Integer
Dim index As Integer
Select Case str
Case " I First"
index = 1
Case " II Second"
index = 2
Case " III Third"
index = 3
Case " IV Foutth"
index = 4
Case " V Fifth"
51
52. index = 5
Case " VI Sixth"
index = 6
Case " VII Seventh"
index = 7
Case " VIII Eighth"
index = 8
Case " IX Ninth"
index = 9
Case " X Tenth"
index = 10
Case " XI Eleventh"
index = 11
Case " XII Twelth"
index = 12
End Select
setstandard = index
End Function
Public Function setbusfee(area As Integer) As Integer
52
53. Select Case area
Case 1
setbusfee = 300
Case 2
setbusfee = 400
Case 3
setbusfee = 200
Case 4
setbusfee = 500
Case 5
setbusfee = 400
Case 6
setbusfee = 250
Case 7
setbusfee = 450
Case 8
setbusfee = 400
End Select
End Function
53
54. Public Function setlatefee(mon As String) As Integer
mon = mon & " 1," & Year(Date)
If Date > CDate(mon) Then
setlatefee = 100 * (Month(Date) - Month(CDate(mon)))
End If
annualfeemonth = Month(CDate(mon))
End Function
Public Function checkforcompfee() As String
Dim index As Integer
makesubarray
index = 4
While index >= 0
If UCase(Left(subj(index), 3)) = "COM" Then
checkforcompfee = record3.Fields(7)
End If
index = index - 1
Wend
End Function
54
55. Public Sub makesubarray()
subj(0) = record1.Fields(12)
subj(1) = record1.Fields(13)
subj(2) = record1.Fields(14)
subj(3) = record1.Fields(15)
subj(4) = record1.Fields(16)
End Sub
Public Function checkforlabfee() As String
Dim index As Integer
makesubarray
index = 4
If CInt(frmfee.lblstandard.Caption) > 8 Or
CInt(frmfee.lblstandard.Caption) < 11 Then
checkforlabfee = record3.Fields(6)
Else
While index >= 0
If UCase(Left(subj(index), 3)) = "PHY" Or UCase(Left(subj(index), 3))
= "CHE" Or UCase(Left(subj(index), 3)) = "BIO" Then
checkforlabfee = record3.Fields(6)
55
58. frmStudentnew.frm
Option Explicit
Dim dat As Integer
Dim yearval As Integer
Dim standard As String
Dim dateofbirth As String
Dim areacode As Integer
Dim month_fee As Integer
Private Sub cmdedit_Click()
addnewstudent
End Sub
Private Sub cmdreset_Click()
Unload frmstudentnew
frmstudentnew.Show
End Sub
Private Sub Cmdreturn_Click()
58
59. frmMainMenu.Show
Unload frmstudentnew
End Sub
Private Sub Form_Load()
'Make List In All Combo
dat = 1
cmbdate.AddItem ("Date")
While dat <= 31
cmbdate.List(dat) = dat
dat = dat + 1
Wend
cmbdate.Text = "Date"
yearval = 1970
cmbyear.AddItem ("year")
While yearval < 2002
cmbyear.AddItem (yearval)
yearval = yearval + 1
Wend
cmbyear.Text = "year"
59
61. cmbstandard.List(4) = " IV Foutth"
cmbstandard.List(5) = " V Fifth"
cmbstandard.List(6) = " VI Sixth"
cmbstandard.List(7) = " VII Seventh"
cmbstandard.List(8) = " VIII Eighth"
cmbstandard.List(9) = " IX Ninth"
cmbstandard.List(10) = " X Tenth"
cmbstandard.List(11) = " XI Eleventh"
cmbstandard.List(12) = " XII Twelth"
cmbstandard.Text = " Standard"
cmbareacode.List(0) = " Area Code"
cmbareacode.List(1) = " 1 North"
cmbareacode.List(2) = " 2 South"
cmbareacode.List(3) = " 3 East"
cmbareacode.List(4) = " 4 West"
cmbareacode.List(5) = " 5 North-East"
cmbareacode.List(6) = " 6 NORTH-West"
cmbareacode.List(7) = " 7 South-East"
cmbareacode.List(8) = " 8 South-West"
61
62. cmbareacode.Text = " Area Code"
End Sub
Sub addnewstudent()
Dim num As Integer
If txtname.Text = "" Then
MsgBox "Name field is Blank"
End If
If txtfname.Text = "" Then
MsgBox "Fathers Name field is Blank"
End If
If txtmname.Text = "" Then
MsgBox "Mothers Name field is Blank"
End If
If txtrnum.Text = "" Then
MsgBox "Roll Number field is Blank"
End If
If cmbstandard.Text = "" Then
MsgBox "Select A Standard"
End If
If cmbareacode.Text = "" Then
62
63. MsgBox "Select An Area"
End If
If cmbdate.Text = "" Then
MsgBox "Select a Date"
End If
If cmbmonth.Text = "" Then
MsgBox "Select a Month"
End If
If cmbyear.Text = "" Then
MsgBox "Select a Year"
End If
If txtaddress.Text = "" Then
MsgBox "Address field is Blank"
End If
If txtsub1.Text = "" Then
MsgBox "Subject field is Blank"
End If
If txtsub2.Text = "" Then
MsgBox "Subject Name field is Blank"
End If
63
64. If txtsub3.Text = "" Then
MsgBox "Subject Name field is Blank"
End If
If txtsub4.Text = "" Then
MsgBox "Subject Name field is Blank"
End If
If txtsub5.Text = "" Then
MsgBox "Subject Name field is Blank"
End If
If (checkcomp.Value = 0) And (checkhorse.Value = 0) And
(checkmusic.Value = 0) And (checkpaint.Value = 0) And
(checkswim.Value = 0) Then
MsgBox "Select An Activity"
End If
areacode = cmbareacode.ListIndex
standard = cmbstandard.ListIndex
dateofbirth = cmbmonth.ListIndex & "/" & cmbdate.ListIndex & "/" &
cmbyear.Text
str = "select max(addmission_number) from student_table"
Set record1 = conn.Execute(str)
64
66. frmStudentDetail.frm
Option Explicit
Dim num As Integer
Dim dat As Integer
Dim year_cmb As Integer
Dim standard As String
Dim dateofbirth As Date
Dim areacode As Integer
Dim mon As Integer
Dim act As Integer
Public Sub unlock_control()
Dim Control As Control
For Each Control In frmstudentdetail
If TypeOf Control Is TextBox Or TypeOf Control Is ComboBox Then
Control.Locked = False
ElseIf TypeOf Control Is CheckBox Then
Control.Enabled = True
End If
66
67. Next
End Sub
Public Sub lock_control()
Dim Control As Control
For Each Control In frmstudentdetail
If TypeOf Control Is TextBox Or TypeOf Control Is ComboBox Then
Control.Locked = True
ElseIf TypeOf Control Is CheckBox Then
Control.Enabled = False
End If
Next
End Sub
Private Sub cmdfee_Click()
frmmonthlyfee.Show
End Sub
Private Sub Cmdreturn_Click()
frmMainMenu.Show
67
68. Unload frmstudentdetail
End Sub
Private Sub cmdsearch_Click()
If txtaddmn.Text = "" Then
MsgBox "PLS INSERT A ADDMISSION NUMBER"
ElseIf CInt(txtaddmn.Text) <= 1000 Or CInt(txtaddmn.Text) > num
Then
MsgBox "PLS ENTER A VALID ADDMISSION NUMBER"
Else
addmission_num = CInt(txtaddmn.Text)
str = "select * from student_table where addmission_number=" &
addmission_num & ""
Set record1 = conn.Execute(str)
txtname.Text = record1.Fields(1)
txtfname.Text = record1.Fields(2)
txtmname.Text = record1.Fields(3)
txtrnum.Text = record1.Fields(4)
txtaddress.Text = record1.Fields(5)
cmbareacode.Text = cmbareacode.List(CInt(record1.Fields(22)))
68
70. checkswim.Value = CInt(record1.Fields(18)) *
CInt(record1.Fields(18))
checkhorse.Value = CInt(record1.Fields(19)) *
CInt(record1.Fields(19))
checkpaint.Value = CInt(record1.Fields(20)) *
CInt(record1.Fields(20))
checkmusic.Value = CInt(record1.Fields(21)) *
CInt(record1.Fields(21))
lock_control
End If
End Sub
Private Sub cmdunloc_Click()
unlock_control
End Sub
Private Sub cmdupdate_Click()
Dim str1 As String
Dim par As Integer
70
71. 'update name
str1 = txtname.Text
str = "update student_table set student_name =" & "'" & str1 & "'" & "
where addmission_number=" & txtaddmn.Text
conn.Execute str
'update father name
str1 = txtfname.Text
str = "update student_table set f_name =" & "'" & str1 & "'" & " where
addmission_number=" & txtaddmn.Text
conn.Execute str
'update Mother name
str1 = txtmname.Text
str = "update student_table set m_name =" & "'" & str1 & "'" & " where
addmission_number=" & txtaddmn.Text
conn.Execute str
'update Address
str1 = txtaddress.Text
71
76. conn.Execute str
'update computer activity fields
par = checkcomp.Value
str = "update student_table set act_computer =" & par & " where
addmission_number=" & txtaddmn.Text
conn.Execute str
'update swiming activity fields
par = checkswim.Value
str = "update student_table set act_swim =" & par & " where
addmission_number=" & txtaddmn.Text
conn.Execute str
'update Horse Riding activity fields
par = checkhorse.Value
str = "update student_table set act_horse =" & par & " where
addmission_number=" & txtaddmn.Text
conn.Execute str
76
77. 'update computer activity fields
par = checkpaint.Value
str = "update student_table set act_paint =" & par & " where
addmission_number=" & txtaddmn.Text
conn.Execute str
'update music activity fields
par = checkmusic.Value
str = "update student_table set act_music =" & par & " where
addmission_number=" & txtaddmn.Text
conn.Execute str
'lock every controll
lock_control
End Sub
Private Sub Form_Load()
str = "select max(addmission_number) from student_table"
Set record1 = conn.Execute(str)
num = CInt(record1.Fields(0))
77
78. 'Make List In All Combo
dat = 1
cmbdate.AddItem ("Date")
While dat <= 31
cmbdate.List(dat) = dat
dat = dat + 1
Wend
cmbdate.Text = "Date"
year_cmb = 1970
cmbyear.AddItem ("year_cmb")
While year_cmb < 2002
cmbyear.AddItem (year_cmb)
year_cmb = year_cmb + 1
Wend
cmbyear.Text = "year"
cmbmonth.List(0) = "MONTH"
cmbmonth.List(1) = "JAN"
cmbmonth.List(2) = "FEB"
78
81. End Sub
Private Sub mnunew_Click()
txtaddmn.Locked = False
End Sub
Private Sub txtaddmn_MouseDown(Button As Integer, Shift As
Integer, X As Single, Y As Single)
If Button = vbRightButton Then PopupMenu mnu
End Sub
81
82. frmmonthlyfee.frm
Option Explicit
Dim int1 As Integer
Dim Control As Control
Private Sub cmdclose_Click()
Unload Me
End Sub
Private Sub cmddetails_Click()
If cmbmon.Text = "MONTH" Then
MsgBox "SELECT A MONTH"
Else
strpass = cmbmon.Text
frmfee.Show
Unload Me
End If
End Sub
82
83. Private Sub Form_Load()
str = "select * from fee_table where addmission_number=" &
addmission_num
Set record2 = conn.Execute(str)
chkapr.Value = CInt(record2.Fields(2)) * CInt(record2.Fields(2))
chkmay.Value = CInt(record2.Fields(3)) * CInt(record2.Fields(3))
chkjun.Value = CInt(record2.Fields(4)) * CInt(record2.Fields(4))
chkjul.Value = CInt(record2.Fields(5)) * CInt(record2.Fields(5))
chkaug.Value = CInt(record2.Fields(6)) * CInt(record2.Fields(6))
chksep.Value = CInt(record2.Fields(7)) * CInt(record2.Fields(7))
chkoct.Value = CInt(record2.Fields(8)) * CInt(record2.Fields(8))
chknov.Value = CInt(record2.Fields(9)) * CInt(record2.Fields(9))
chkdec.Value = CInt(record2.Fields(10)) * CInt(record2.Fields(10))
chkjan.Value = CInt(record2.Fields(11)) * CInt(record2.Fields(11))
chkfeb.Value = CInt(record2.Fields(12)) * CInt(record2.Fields(12))
chkmar.Value = CInt(record2.Fields(13)) * CInt(record2.Fields(13))
cmbmon.AddItem ("MONTH")
For Each Control In Me
If TypeOf Control Is CheckBox Then
Control.Enabled = False
83
84. If Control.Value = 0 Then
cmbmon.AddItem (Control.Caption)
End If
End If
Next
cmbmon.Text = "MONTH"
End Sub
Private Sub Frame1_MouseMove(Button As Integer, Shift As Integer,
X As Single, Y As Single)
cmbmon.SetFocus
End Sub
84
85. frmfee.frm
Private Sub cmdclose_Click()
Unload Me
End Sub
Private Sub cmdprint_Click()
cmdprint.Visible = False
cmdsubmit.Visible = False
cmdclose.Visible = False
frmfee.PrintForm
cmdprint.Visible = True
cmdsubmit.Visible = True
cmdclose.Visible = True
End Sub
Private Sub cmdsubmit_Click()
str = "update fee_table set " & Left(strpass, 7) & "=1 where
addmission_number=" & record1.Fields(0)
conn.Execute str
Unload Me
Unload frmmonthlyfee
frmmonthlyfee.Show
85
86. End Sub
Private Sub Form_Load()
'refresh data in record1
str = "select * from student_table where addmission_number=" &
addmission_num & ""
Set record1 = conn.Execute(str)
'show value for boxes in frame1
lbladdmno.Caption = record1.Fields(0)
lblname.Caption = record1.Fields(1)
lblfname.Caption = strpass
lblstandard.Caption = record1.Fields(10)
'show values for boxes in frame2
str = "select * from charges_table where standard =" &
CInt(lblstandard.Caption)
Set record3 = conn.Execute(str)
lbltutionfee.Caption = record3.Fields(10)
lblbusfee.Caption = setbusfee(record1.Fields(22))
If record1.Fields(17) <> 0 Then
lblactcompfee.Caption = record3.Fields(1)
Else
86
87. lblactcompfee.Caption = 0
End If
If record1.Fields(18) <> 0 Then
lblactswfee.Caption = record3.Fields(2)
Else
lblactswfee.Caption = 0
End If
If record1.Fields(19) <> 0 Then
lblacthorsefee.Caption = record3.Fields(3)
Else
lblacthorsefee.Caption = 0
End If
If record1.Fields(20) <> 0 Then
lblactpaintfee.Caption = record3.Fields(4)
Else
lblactpaintfee.Caption = 0
End If
If record1.Fields(21) <> 0 Then
lblactmusicfee.Caption = record3.Fields(5)
Else
87
88. lblactmusicfee.Caption = 0
lbllatefee.Caption = setlatefee(strpass)
End If
If annualfeemonth = "4" Then
lbldevfee.Caption = record3.Fields(9)
Else
lbldevfee.Caption = 0
End If
lbllabfee.Caption = checkforlabfee
lblcompfee.Caption = checkforcompfee
lbltotalfee.Caption = CInt(lbllabfee.Caption) +
CInt(lblcompfee.Caption) + CInt(lbllatefee.Caption) _
+ CInt(lblactmusicfee.Caption) + CInt(lblactpaintfee.Caption) +
CInt(lblacthorsefee.Caption) _
+ CInt(lblactswfee.Caption) + CInt(lblactcompfee.Caption) +
CInt(lblbusfee.Caption) _
+ CInt(lbltutionfee.Caption) + CInt(lbldevfee.Caption)
End Sub
88
90. Const HKEY_LOCAL_MACHINE = &H80000002
Const ERROR_SUCCESS = 0
Const REG_SZ = 1 ' Unicode nul terminated string
Const REG_DWORD = 4 ' 32-bit number
Const gREGKEYSYSINFOLOC = "SOFTWAREMicrosoftShared
Tools Location"
Const gREGVALSYSINFOLOC = "MSINFO"
Const gREGKEYSYSINFO = "SOFTWAREMicrosoftShared
ToolsMSINFO"
Const gREGVALSYSINFO = "PATH"
Private Declare Function RegOpenKeyEx Lib "advapi32" Alias
"RegOpenKeyExA" (ByVal hKey As Long, ByVal lpSubKey As String,
ByVal ulOptions As Long, ByVal samDesired As Long, ByRef
phkResult As Long) As Long
Private Declare Function RegQueryValueEx Lib "advapi32" Alias
"RegQueryValueExA" (ByVal hKey As Long, ByVal lpValueName As
String, ByVal lpReserved As Long, ByRef lpType As Long, ByVal
lpData As String, ByRef lpcbData As Long) As Long
90
91. Private Declare Function RegCloseKey Lib "advapi32" (ByVal hKey
As Long) As Long
Private Sub cmdSysInfo_Click()
Call StartSysInfo
End Sub
Private Sub cmdOK_Click()
Unload Me
End Sub
Private Sub Form_Load()
Me.Caption = "About " & App.Title
lblVersion.Caption = "Version " & App.Major & "." & App.Minor & "."
& App.Revision
lblTitle.Caption = App.Title
End Sub
Public Sub StartSysInfo()
91
92. On Error GoTo SysInfoErr
Dim rc As Long
Dim SysInfoPath As String
' Try To Get System Info Program PathName From Registry...
If GetKeyValue(HKEY_LOCAL_MACHINE, gREGKEYSYSINFO,
gREGVALSYSINFO, SysInfoPath) Then
' Try To Get System Info Program Path Only From Registry...
ElseIf GetKeyValue(HKEY_LOCAL_MACHINE,
gREGKEYSYSINFOLOC, gREGVALSYSINFOLOC, SysInfoPath)
Then
' Validate Existance Of Known 32 Bit File Version
If (Dir(SysInfoPath & "MSINFO32.EXE") <> "") Then
SysInfoPath = SysInfoPath & "MSINFO32.EXE"
' Error - File Can Not Be Found...
Else
GoTo SysInfoErr
End If
92
93. ' Error - Registry Entry Can Not Be Found...
Else
GoTo SysInfoErr
End If
Call Shell(SysInfoPath, vbNormalFocus)
Exit Sub
SysInfoErr:
MsgBox "System Information Is Unavailable At This Time",
vbOKOnly
End Sub
Public Function GetKeyValue(KeyRoot As Long, KeyName As String,
SubKeyRef As String, ByRef KeyVal As String) As Boolean
Dim i As Long ' Loop Counter
Dim rc As Long ' Return Code
Dim hKey As Long ' Handle To An Open
Registry Key
Dim hDepth As Long '
93
94. Dim KeyValType As Long ' Data Type Of A
Registry Key
Dim tmpVal As String ' Tempory Storage For
A Registry Key Value
Dim KeyValSize As Long ' Size Of Registry
Key Variable
'------------------------------------------------------------
' Open RegKey Under KeyRoot {HKEY_LOCAL_MACHINE...}
'------------------------------------------------------------
rc = RegOpenKeyEx(KeyRoot, KeyName, 0, KEY_ALL_ACCESS,
hKey) ' Open Registry Key
If (rc <> ERROR_SUCCESS) Then GoTo GetKeyError '
Handle Error...
tmpVal = String$(1024, 0) ' Allocate Variable
Space
KeyValSize = 1024 ' Mark Variable Size
'------------------------------------------------------------
94
95. ' Retrieve Registry Key Value...
'------------------------------------------------------------
rc = RegQueryValueEx(hKey, SubKeyRef, 0, _
KeyValType, tmpVal, KeyValSize) ' Get/Create Key
Value
If (rc <> ERROR_SUCCESS) Then GoTo GetKeyError '
Handle Errors
If (Asc(Mid(tmpVal, KeyValSize, 1)) = 0) Then ' Win95 Adds
Null Terminated String...
tmpVal = Left(tmpVal, KeyValSize - 1) ' Null Found,
Extract From String
Else ' WinNT Does NOT Null
Terminate String...
tmpVal = Left(tmpVal, KeyValSize) ' Null Not Found,
Extract String Only
End If
'------------------------------------------------------------
' Determine Key Value Type For Conversion...
95
96. '------------------------------------------------------------
Select Case KeyValType ' Search Data
Types...
Case REG_SZ ' String Registry Key
Data Type
KeyVal = tmpVal ' Copy String Value
Case REG_DWORD ' Double Word
Registry Key Data Type
For i = Len(tmpVal) To 1 Step -1 ' Convert Each Bit
KeyVal = KeyVal + Hex(Asc(Mid(tmpVal, i, 1))) ' Build Value
Char. By Char.
Next
KeyVal = Format$("&h" + KeyVal) ' Convert Double
Word To String
End Select
GetKeyValue = True ' Return Success
rc = RegCloseKey(hKey) ' Close Registry Key
Exit Function ' Exit
96
97. GetKeyError: ' Cleanup After An Error Has Occured...
KeyVal = "" ' Set Return Val To Empty
String
GetKeyValue = False ' Return Failure
rc = RegCloseKey(hKey) ' Close Registry Key
End Function
97
98. TESTING
Testing is performed to prove that program is error free.
Testing is the process of executing a program with explicit
intention of finding errors, that’s, making the program fails. A
successful test is one that finds an error.
In order to uncover errors in the system, a series of test steps unit,
integration, validation and system level tests were planned and
executed.
The following criteria and corresponding tests were applied for all
test phases.
Interface integrity:
Internal and external interfaces were tested as each module is
incorporated into the structure.
Functional validity:
98
99. Tests designed to uncover functional errors were conducted.
Information content:
Tests designed to uncover errors associated with local or global
data structures are conducted.
Performance:
Tests designed to verify performance bounds established during
software design were conducted. Tests designed to verify
performance bounds established during software design were
conducted. Following are some special testing:
1. Unit Testing:- Unit testing concentrates on the smallest
unit of software design. Each unit or part of a module or
function is tested. Unit testing gives stress on the
modules independently of one another, to find errors.
This helps the tester in detecting errors in coding and
logic that are contained within that module alone. The
errors resulting from the interaction between
99
100. modulesare initially avoided. The test cases needed for
unit testing should exercise each condition and option.It
can be performed from the bottom up, starting with
smallest and lowest level modules and preceeding one
at a time.
2. Module Testing:- Units combine and form module.
Module testing refers to the number of connections and
tests required between a calling and a called module.
The complexity if these connections between two or
more modules is tested. Each module separately is also
tested. When each module is tested and if each of them
is properly working then we can be ensured about the
working a whole system.
3. System Testing:- System testing is done after module
testing. System testing is designed to uncover the
weaknesses that were not found under module
testing.These weaknesses can be forced system
100
101. failures and validation of the total system as it will be
implemented by its user(s) in the operational system or
environment. In system testing the total system is
tested for recovery and failure after various major
failures to ensure that no data is lost during the
emergency.System testing makes a logical assumption
that if all the parts of the system are correct, goal will be
successfully activated. Some special system tests are
as follows:
(a) Peak Load Test: It determines whether the system will
handle the volume of activities that occur when the
system is at the peak of its processing demand.
Example, test the system activitating all terminals at
the same time.
(b) Storage Testing: It determines the capacity pf the system
to store transaction data on a disk or in other files.
Example, verify documentation statements that system
101
102. will store 10000 records of 400 bytes length on a single
flexible disk.
(c) Performance Time Testing: It determines the length of
time used by the system to process transaction data. This
test is conducted prior to implementation to determine
how long it takes to get a response to an inquiry, makes a
backup copy of a file or send a transmission and get a
response.
(d) Recovery Testing: It determines the ability of user to
recover data or restart system after failure. Example, load
backup copy of data and resume processing without data
or integrity loss.
(e) Procedure Testing: It determines the clarity of
documentation on operation and use of system by having
users do exactly what manuals request. Example,
powering down system at the end of the week.
102
103. 4. Alpha Testing:- A developer of the system of software
foresees how the customer is going to use a program.
And there may be some errors that can remain unseen
by the developer. Thus the customer or the user is
given a chance to check whether the program is
working properly or not and also to check whether the
program satisfies the needs of the user.
The alpha test is conducted by the customer at the
developer site. The program is tested in the natural
setting with the customer. The developer checks for
errors record all the errors and usage problems in the
software. As alpha tests are conducted under the
supervision of a developer we can say that these tests
are conducted in a controlled environment.
5. Beta Testing:- Beta testing is conducted at one or
more customer site by the end user of the software.
The developer is not present with the end user. Thus
103
104. beta testing is not conducted in a controlled
environment. All the problems of the customer are
recorded which are being encounted during beta
testing. The developer is given all the reports at regular
intervals of time. The developer of the software makes
changes in the software according to reports which he
gets from his customer. The developer last prepares
the software product as desired by the customer and
also prepares the software product for its release in the
market.
6. Integration Testing: The objective of this testing was to take
the unit tested modules and build. A program structure that
has been dictated by design. A top down incremental
integration approach was chosen, i.e. modules were
integrated by moving downward through the control
hierarchy, beginning with the main control model at the end
of each step in module integration test, regression testing was
104
105. also conducted so as to avoid any new error that might have
been introduced.
7. Validation Testing:Once the software was completely
assembled as a package; interface errors uncovered and
corrected, a final series of software tests for validity of the
software solution were carried out. The software validation
was carried out series of black-box tests, such as equivalence
partitioning and boundary value analysis. The module
interfaces were also tested
For proper working of the windows, pull down menus, mouse
operation data entry using the interfaces, and the report
formats.
105
106. The results of the project are the fee receipt and the
monthly fee paid report generated by the software.
Fee receipt
RESULT AND CONCLUSION
106
108. BIBLIOGRAPHY
(i) Visual Basic 6 In Record Time, By Steve Brown,
BPB Publication
(ii) Mastering Visual Basic 6, By Evangeles
Petroutsos, BPB Publication.
(iii) Visual Basic 6 Unleashed, By Rob Thayer,
Techmedia Publication
108