Table of Contents
SECTION A................................................................................ 4
SELECTION, INVESTIGATION AND ANALYSIS.................................4
Define A Problem........................................................................................... 4
Statement of the Problem: - BINDURA UNIVERSITY ACCOMODATION SYSTEM. 4
INTRODUCTION............................................................................................................ 4
BACKGROUND OF THE PROBLEM..............................................................................4
INVESTIGATION OF THE CURRENT SOLUTION...................................................5
PROBLEMS OF THE CURRENT SYSTEMS...................................................................5
Research instruments................................................................................................ 5
Initial User Request.......................................................................................7
Software Requirements............................................................................................. 7
Hardware Requirements............................................................................................ 8
Storage Devices............................................................................................................. 8
Processor...................................................................................................................... 9
AIMS AND OBJECTIVES...................................................................................9
Aims of the new system............................................................................................. 9
Objectives of the new system...................................................................................9
SECTION B..............................................................................10
Alternative Solutions...................................................................................10
Alternative solution 1: Making use of a scanner.................................................10
Alternative Solution.2: Use of Off the Shelf Package..........................................10
Chosen Solution..........................................................................................11
Using a Bespoke Software.......................................................................................11
INPUT DESING.............................................................................................12
Data Capture Forms.................................................................................................. 12
Samples of Screen Layouts of the Visual Basic Forms:.......................................13
DATA STRUCTURES AND FILE DESIGN............................................................14
Students File.............................................................................................................. 14
Payment File.............................................................................................................. 15
Landlords File............................................................................................................ 15
Accommodation File................................................................................................. 16
File Relationship:-.......................................................................................16
Overall plan.................................................................................................17
Output design.............................................................................................18
Output screen for Students Form:-.......................................................................18
Output screen for Accommodation Form:-............................................................19
Output screen for Students Report......................................................................19
49
SECTION C..............................................................................23
SOFTWARE DEVELOPMENT...........................................................................23
TECHNICAL DOCUMENTATION.......................................................................23
ALGORITHMS.............................................................................................................. 23
System Flowcharts For Modules...................................................................27
Accommodation Form:-............................................................................................27
Search:........................................................................................................................ 28
Student Form:............................................................................................................ 28
Deletion:..................................................................................................................... 29
Payments form:-........................................................................................................ 29
Exit System:-.............................................................................................................. 30
PROGRAM LISTING..................................................................31
USER DOCUMENTATION............................................................36
Installation of the program..........................................................................36
To install Bindura University Accommodation system........................................36
Running the program............................................................................................... 37
Navigation:................................................................................................................. 39
Exiting the System:.....................................................................................43
49
Appendix
..i
SECTION A
SELECTION, INVESTIGATION AND ANALYSIS
DEFINE A PROBLEM
STATEMENT OF THE PROBLEM: - BINDURA UNIVERSITY
ACCOMODATION
SYSTEM
49
INTRODUCTION
Bindura University is located in Bindura. It receives most of its students
from all over the country and some from other countries. It has been
found that there has been shortage of accommodation space on the
university campus and this resulted in local houses nearby being turned
into boarding houses. However, the university has agreed to advertise
on behalf of the land-lords as well as admitting the students in the
different houses. The names of students who live by the university
campus are kept in flat files alongside with the hostel name in which they
live in by the dean of students. For the other students who live off the
university campus, no records have been kept by the university to keeptrack of the students.
BACKGROUND OF THE PROBLEM
Bindura University is located in the capital of Mashonaland Central
province, Bindura. It was established in 1996 and is still functional to date.
Each year the university advertises in the press for vacancies of programs
which they offer and also receives visitors who tour the university. As a
result more and more students tend to turn up for the different programs
offered by the university, and due to lack of accommodation on campus,
only a few students is accepted for on-campus-residence. The rest would
have to look for houses to rent in nearby places.
The university uses a manual system to record the details of students who
reside on the university campus, as well as the hostels in which they stay
in. These files are stored by the dean of students in filing cabinets.
Since there is more demand for accommodation, more paper work has to
be done and as such, this happens to be an increase in volume of data.
49
1.
2.
3.
4.
5.
6.
7.
8.
9.
Data
is
sometimes
or
often
inconsistent
and
incorrect
Research instruments
The research instruments which could be suitable to carry-out the
researches on the current system are Questionnaires and Interviews
Questionnaire
Questionnaire to the working staff
Put a tick on the correct answer
1 How long have you been working at Bindura University Accommodation
Department?
Below
5 years
510 years
Above
10 years
If below 5 years, please specify
49
500- 1000
1000-2000
.
Above 2000
150-200
.
250-500
No
6
Can you describe how fast your system is when serving any one
random customer?
No
8
No
9
10
What storage media do you use to store your data and how often do
you update your records?
..........................................................................................................
..........................................................................................................
49
..........................................................................................................
...................................................................................
11
49
Software Requirements
1
Hardware Requirements
Input Devices
1
Keyboard: This will be used for entering data in the fields of
different files of the system. It is also used for the purpose of
amending data in Bindura University Accommodation Department.
2
Output Devices
1
LaserJet Printer: This is required for printing hardcopy documents
like reports and queries. This printer produces high quality print of
these documents. A fast printing device is needed.
2
49
Storage Devices
1 Hard Disk: Used to store the systems files and data for future use. At
least 500 GB hard disk is needed.
2 USB Flash Drive or Digital Versatile Disk (DVD): These will be used
for creating backups of the system files and data for recovery purposes
in case of accidental loss of data.
Processor
1 An Intel Pentium Dual CPU T2390 @ 2.12GHz; 2.13GHz is needed for
fast processing of records in the system.
AIMS AND OBJECTIVES
Aims of the new system
1
The system must be user-friendly and easy to use so as to save time
and money in training the users on how to operate the new system
as well as implementing it.
2
The new system should have adequate storage space and fast
processing speed so as to retrieve data in a short space of time,
thus at least 20 seconds.
Delete unwanted records from the system, that is, those who nolonger us the accommodation facilities and would have paid their
owings if any.
49
SECTION B
Alternative Solutions
Alternative solution 1: Making use of a scanner
A scanner is an input device that allows one to copy images of hardcopy
and converts it to softcopy.
Advantages of the alternative solution
1
49
Chosen Solution
Using a Bespoke Software
This is the use of custom made software specifically designed for the
accommodation department at Bindura University. To achieve this, I will
make use of Microsoft Access and Visual Basic 6.0 which will aid me in
creating the different interfaces and the database where the data will be
held.
Advantages of the chosen solution over other Alternatives
1 The use of visual basic makes it easy to debug
2 The software is designed to do exactly what is wanted by the staff
members unlike the use of off the shelf packages which are not
specific.
3 There might not be any suitable system available at the market so its
best for the accommodation department to write its own.
4 If any changes are to be made on the system then the programmer will
have to work on the system rather than when using an off-the-shelf
systems
5 No additional costs are charged on using the custom made system, such
as the system rental cost.
6 This alternative means that the department has to use a computerized
system and dump the manual system hence incorporating the
advantages of using a computerized system above these.
7 These advantages include:
8.
1.
2.
3.
49
INPUT DESING
Data Capture Forms
Below are the SCREEN LAYOUTS of the forms to be used by Bindura
University Accommodation department. (Designed manually)
ACCOMMODATION FORM
Student ID
Next Rec
Student Name
Previous
Date of Birth
First
Accommodation Number
Occupant Number
Last
Type of Payment:
CLOSE
Save record
Add Record
Print
Edit Record
Search
Cancel
Delete Record
49
Menu bar
Systems
clock
Payments Form:
On-screen
commands
Data entry
fields
Powered by: Rixy Engines
49
DATA DICTIONARIES
Students File
Data Type
Size
Validation
Example
Students
Name
TEXT
30
Tafadzwa
National ID
TEXT
15
63-2027558-A75
Field Name
49
Student ID
TEXT
15
B9872
Student
surname
TEXT
30
Chikandwa
Gender
TEXT
Female
Date enrolled
DATE/TIME
10
21/01/2015
Contact
number
NUMBER
15
0776543267
Accommodati
on number
TEXT
A12
Payment File
Field Name
Data Type
Size
Validation
Example
Members
Name
DATE/TIME
10
10/01/2015
Student ID
TEXT
15
B3542
Student name
TEXT
30
Vimbai
Accommodati
on fee
CURRENCY
US$540
Amount paid
CURRENCY
US$326
Balance
CURRENCY
US$255
Landlords File
49
Field Name
Data Type
Size
Validation
Example
Lord ID
TEXT
L12
National ID
TEXT
15
63-2027558-A75
Landlord
Name
TEXT
30
Vimbai
Landlord
Surname
TEXT
30
Chikandwa
Address
TEXT
50
7 Loughton
Avenue
Greencroft
Bindura
Contact
Number
NUMBER
13
Accommodation File
Field Name
Data Type
Size
Validation
Example
Accommodation
Number
TEXT
A12
Student ID
TEXT
B0987
Student Name
TEXT
50
Natasha
Occupant
Number
number
Location
TEXT
12
Off-campus
Landlord
number
text
L320
Capacity
number
15
49
maximum number of
occupants of the facility
File Relationship:-
Students
Overall plan
49
Output design
Bindura University Accommodation department will makes use of this
computerised system with the aid of screen displays, mostly output forms.
Other output methods could have been used to a greater extent such as
audio, video and or other multimedia but this will not be as efficient as the
output forms are for data processing. On screen commands will be also
visible in this system.
Below are some of the samples of the output screens:-
49
49
49
Interface Design
Bindura University Accommodation Department interface design can be
viewed
in
the
User
Documentation.
....page39
TEST STRATEGY
Black-box Testing:
This type of testing will allow me to discover errors in the system that may be
invisible to me because of my knowledge as to how the system was
programmed. The personnel doing this testing will not be aware of the coding of
the software or how it goes around a problem. This method eliminates bias in the
testing. The values to be tested should include typical values, borderline values
and values which are not acceptable. The reasons for use of Black Box testing
are that the program is tested according to its specifications and different values
are entered for variables to determine whether the program can cope with them.
Black box testing will include use of Standard, Extreme and Abnormal Data.
49
File/Table
Test Field
Test Data
Expected Results
Students
Student ID number
B3553
Accepted
Gender
Male
Accepted
National ID
number
45-2345342W12
Accepted
Date of Payment
12/03/2015
Accepted
Amount Paid
$20.00
Accepted
Lord Number
L155
Accepted
Lord Name
Makanaka
Accepted
Accommodation
number
A15
Accepted
Capacity
15
Accepted
Payments
Landlords
Accommodation
Test Field
Test Data
Expected Results
Students
Student ID number
B999
Accepted
Gender
Male
Accepted
Student name
Zvikomborero
Accepted
Date of Payment
31/12/2050
Accepted
Balance
$0.00
Accepted
Lord Number
L199
Accepted
Lord Name
Sino
Accepted
Location
Off-campus
Accepted
Accommodation
number
A99
Accepted
Test Data
Expected Results
Payments
Landlords
Accommodation
Test Field
49
Students
Payments
Landlords
Student Id number
D234543
Rejected
Gender
Emale
Rejected
Student name
T15Nyati
Rejected
Date of Payment
31/12/19923
Rejected
Balance
Sd1333>
Rejected
Lord Number
One
Rejected
Lord Name
>edesd
Rejected
Location
=9Off-campus
Rejected
Accommodation
number
QWERTY
Rejected
Accommodation
SECTION C
SOFTWARE DEVELOPMENT
TECHNICAL DOCUMENTATION
49
ALGORITHMS
(a) PSEUDO CODES
Accommodation Form:
Start
Select Option
If selected option is Search Then Search for Record in the
Accommodation Form
If selected option is New Then Show Blank Accommodation Form
If selected option is Delete Then Delete Current Record of the
Accommodation Form
If selected option is Print Then Print Current Record in the
Accommodation Form
If selected option is Edit Then Edit Current Record in the
Accommodation Form
If selected option is Save Then Save Last Operation in the
Accommodation Form
If selected option is Cancel Then Cancel Last Unsaved Operation in
the Accommodation Form
If selected option is View Last Record Then show the Last
Accommodation Record
If selected option is View First Record Then show the First
Accommodation Record
If selected option is Next Then Navigate to the Next Accommodation
Record
If selected option is Previous Then Navigate to the Previous
Accommodation Record
If selected option is Close Then Exit the Accommodation Form
End Select
End
Student Form:Start
Select Option
If selected option is Search Then Search for Record in the Student
Form
If selected option is New Then Show Blank Student Form
Powered by: Rixy Engines
49
49
If selected option is View Last Record Then show the Last Landlords
Record
If selected option is View First Record Then show the First Landlords
Record
If selected option is Next Then Navigate to the Next Landlords
Record
If selected option is Previous Then Navigate to the Previous
Landlords Record
If selected option is Close Then Exit the Landlords Form
End selection
End
Payment Form:
Start
Select Option
If selected option is Search Then Search for Record in the Payment
Form
If selected option is Add Then Show Blank Payment Form
If selected option is Delete Then Delete Current Record of the
Payment Form
If selected option is Print Then Print Current Record in the Payment
Form
If selected option is Edit Then Edit Current Record in the Payment
Form
If selected option is Save Then Save Last Operation in the Payment
Form
If selected option is Cancel Then Cancel Last Unsaved Operation in
the Payment Form
If selected option is View Last Record Then show the Last Payment
Record
If selected option is View First Record Then show the First Payment
Record
If selected option is Next Then Navigate to the Next Payment Record
If selected option is Previous Then Navigate to the Previous Payment
Record
If selected option is Close Then Exit the Payment Form
End selection
Powered by: Rixy Engines
49
End
Search:Start
Enter search index
Search for index
If Found = True Then
Display Record
Else
Display Record Not Found!
End If
End
Queries:-
Start
Select Option
If selected option is Students Query Then Show Students
Query
If selected option is Accommodation Query Then Show
Accommodation Query
If selected option is Payments Query Then Show Payments
Query
If selected option is Landlords Query Then Show Landlords
Query
End Select
End
49
Meaning
Terminator (Loop Terminator)
Process
Display
Input of data
Decision to be executed
Storage
Data Flow
Accommodation Form:-
49
No
Yes
Add?
No
Search Wanted
Yes Record
Delete?
Blank Form
Yes
No
Print?
No
Delete CurrentYes
Record
Save?
No
Print Current Record
Yes
Cancel?
Save Record Updates
Yes
No
Edit?
Cancel CurrentYes
Update
Update Current Record
Stop
Search:
Start
Main Menu
Stop
49
Student Form:
No
Yes
Add?
No
Search Wanted
Yes Record
Delete?
Blank Form
Yes
No
Print?
No
Delete CurrentYes
Record
Save?
No
Print Current Record
Yes
Cancel?
Save Record Updates
Yes
No
Edit?
Cancel CurrentYes
Update
Update Current Record
Stop
Deletion:
49
Start
Main Menu
Stop
Payments form:-
49
No
Yes
Add?
No
Search Wanted
Yes Record
Delete?
Blank Form
Yes
No
Print?
No
Delete CurrentYes
Record
Save?
No
Print Current Record
Yes
Cancel?
Save Record Updates
Yes
No
Edit?
Cancel CurrentYes
Update
Update Current Record
Stop
Exit System:Start
Select Exit
Return to Menu
No
Exit?
Yes
Exit System
Stop
49
Program listing
''These code have been complied by Zvikomborero Nyamapfene for
Bindura University
'the following codes are used to allow access to the database; they give
different access right to the users in of the system
'.....................................................................................................................
................................
'**************************************************************************
Dim password As String Global declaration of variable password
Dim userAccount As String 'Global declaration of variable userAccount
'code for logging into the system
Private Sub cmdLogin_Click()
If (cboUser.Text = "Adminstration" And txtPassword.Text = "admin123") Or
(cboUser.Text = "Clerk" And txtPassword.Text = "clerk202") Then use of if
selection construct
Me.Hide 'when condition is true then the current form will be hidden
frmForms.Show 'the form frmForms will be shown which will be the main
menu view
Else
txtPassword.Text = ""
txtPassword.SetFocus
Powered by: Rixy Engines
49
If
(frmPassword.cboUser.Text
=
"Adminstration"
frmPassword.txtPassword.Text = "admin123") Then
And
frmAccomodation.cmddelete.Enabled = True
'only the administrator is able to delete the records
frmLords.cmddelete.Enabled = True
frmPayment.cmddelete.Enabled = True
frmStudent.cmddelete.Enabled = True
Else
frmForms.cmdAdmintools.Visible = False
button is invisible to other users
frmForms.cmdAdmintools.Enabled = False
frmAccomodation.cmddelete.Enabled = False
'all the delete command buttons are set invisible to other users in all
forms
frmLords.cmddelete.Enabled = False
frmPayment.cmddelete.Enabled = False
frmStudent.cmddelete.Enabled = False
frmAccomodation.cmddelete.Visible = False
frmLords.cmddelete.Visible = False
frmPayment.cmddelete.Visible = False
49
frmStudent.cmddelete.Visible = False
End If
End Sub
End If
End Sub
'the following code is used to search for a particular record from the given
table
Private Sub cmdFind_Click()
Dim item, w As Integer
procedure
49
("Record
not
found!"),
vbInformation
vbOKOnly
'if no record is found, a message is displayed
Me.adoAccomodation.Recordset.MoveLast
'the table will now contain the last record
Unload Me
frmAccomodation.Show vbModal
End If
End Sub
Private Sub Timer1_Timer()
lbldate.Caption = Date 'the label "lbldate" will show the current date of
the day
lbltime.Caption = Time 'the label "lbltime" will show the current time of
the day
'the above data is captured by the timer "Timer1" from the system
End Sub
49
KeyAscii = 0
End If
End Sub
Private Sub FrmAdmintools_Load()
With cboBrowserOptions
Files\Google\Chrome\Application\chrome.exe",
Else
If Combo1.Text = "Skype" Then
a = Shell("C:\Program Files\Skype\Phone\Skype.exe", vbNormalFocus)
Else
If Combo1.Text = "Internet Explorer" Then
a = Shell("C:\Program
vbNormalFocus)
Files\Internet
Explorer\iexplore.exe",
End If
End If
End If
End If end of nest
End Sub
49
User Documentation
Installation of the program
To install Bindura University Accommodation system
-
49
The setup file will start extract drivers from the software package so as to install on
your machine
Follow the instructions that appear on screen and click the setup button to select the
directory to where the program will be installed to.
49
click on Bindura_University_Accommodation
the welcome form will appear, then click the command log in
select the User account you wish to use and enter password
49
49
Navigation:
-
You can make use of the menu bar for faster navigation when
executing the program
49
Under the menu bar, the help menu will help show you what the
system is about and how it works
49
Tabs to
make
selections
In all the forms the forms there are some navigation button
Buttons:
FIND: This enables searching from a particular record amongst those
stored in the system
CREATE NEW: This enables a new record to be entered in a given file
FIRST RECORD: This enables viewing the first record stored in collecting
of the records
LAST RECORD: This enables viewing the last record in the collecting of
records
NEXT: This enables viewing the next record from the collecting of records
49
Access windows
media player
49
to exit the system, click the Quit command button on the main
menu
choosing Yes will close the program, whilst No will return you
back to the system
if you select yes, the system will save all your work and will end the
program execution
By this, you would have exited the system and will be redirected towards
your previous running applications which you would have been executing
before launching this system.
SECTION D
49
Accommodation Form:-
Valid Occupant
Number accepted
Students Form:-
49
Valid Name
accepted
Valid Gender
accepted
Landlords Form:-
Valid Landlord ID
Valid National ID
49
Payment form:-
Pop-out error
message
Accommodation form:-
Invalid
accommodation
number enter
Error
message
Students form:
Key press validation produced error message when the letter j was
pressed in the student Id field
49
Landlords form:Key press validation restrict any other characters to be input besides
alphabetical characters: Digit 3 was typed in the Landlord Name field and
was rejected
Payments Form:
49
Only monetary values can be input in the Accommodaation fee field in the
payments form. Any other characters are restricted:
Accommodation form:
The system will not allow any student to be accommodated in a fully
occupied accomodation facility:
49
The system can now add new records into the system.
Data security has been greatly enhanced since no one can access
the system without inputting the required pass-codes.
49
49