You are on page 1of 32

PROJECT

REPORT ON

Cyber Caf Management System

Submitted By

Pinkal Ganjawala(18)

Kiran Jawalkar(35)

UNIVERSITY OF PUNE

MASTER IN COMPUTER APPLICATION INS

SINHGAD INSTITUTE OF BUSINESS ADMINISTRATION


AND COMPUTER APPLICATION ,LONAVALA

1
Acknowledgement

We are very happy for submitting the project report on


Cyber Cafe Management System to the Sinhgad Institute Business
Administration and Computer Application, Lonavla. On our level best,
we have completed our project work of the course MCA 1st sem.

We wish to thank all staff member, under Sinhgad


Institute Business Administration and Computer Application, Lonavla,
for offering necessary work facilities. Finally we wish to thank the
teaching staff, Project guide: Jacob John Sir, librarians staff, my
friends and person who kindly helped and guided us directly or
indirectly for completion of this project.

Pinkal Ganjawala(18)

2
Kiran Jawalkar(35)

INDEX

Ch.no. Chapter Name Page No.

1. Introduction:
Introduction of a project 4

2. Objectives of the project: 5

3. Technology used: 6
Software
Hardware

4. Modules of the system 7

5. Outputs (Screen Shots) 9

6. Coding 16

7. References 32

3
Introduction

Cyber Caf Management System is used in the Cyber Cafe.


Only authorized user can access this system and gather needed
information. Cyber Caf Management System is a transaction
processing application. The system keeps whole details about
customers.
This project has GUI based software that will help in storing,
updating and retrieving the information through various user-friendly
modules.

This is the Easy, efficient and innovative Internet Cafe


management software. This software is designed to keep clients in your
cyber cafe by providing attractive and easy interface. Also it has the
ability to fully control and charges.

Although our software has many advanced features it's still very
easy to use, both for operators and customers. The user interface is clean
and feels very natural even to beginners. The integrated help system will
guide you in case of any problems.

4
Objectives of the project

The manpower is reduced.

Privacy is given to the data so that unauthorized person can not


gain access to the Application.

Data security is also maintained.

Time span for searching the records or stock is reduced

There are less chances of mistakes to happen

Data redundancy is kept minimum.

Attractive Computerization is better way of working.

Graphical User Interface (GUI). So easy to understand.

It will take less time. It is faster than present Manual system.

Data can be stored for long time.

Calculations done are accurate.

Know exactly for how long customers use your computers.

5
Technology used

Environmental Specification:

Hardware:-
Hardware means the physical and tangible parts of
computer system. The main hardware configuration for suggested
system is:
1) Processor : Pentium 3 or Above.
2) Hard Disk : Minimum 1GB.
3) Primary Memory : At least 256MB RAM.
4) CD Rom : 32X or Above (for Data Backup).

Software:-
Software means the set of instructions or program given to
the computer. Software is categorized as

1) Operating System : Windows XP,Vista ,Seven


2) Application Software : MS-Office 97 or higher
3) FrontEnd Tool :Visual Basic 6
4) BackEnd Tool :MS Access
5) GUI Tool :Photoshop cs3

6
Modules of the System

New Customer Detail Entry:-


This module is invoked when the new customer came at the cyber at
first time. Here the details are stored like customer name, customer
address, and customer contact no, Id proof, etc...

Customer Entry: -

This module is invoked when the customer is Came at Cyber Caf.


This time the customer has allotted the computer on which he have to
Access.

Status :-

This Module shows the current status of the Cyber caf. It


displays which computers are free and which are busy.

7
Customer Exit:-

This module is invoked when the costumer is Exit from Cyber. Here
the Time Spent and the charges is calculated. And The Computer
which is allotted to the customer is released.

Cyber Setup:-

This Module is invoked when the proprietor of the cyber want to


add the detail-information of the cyber like. Cyber Name,
Address, Contact No, Proprietor Name, No Of Pc In Cyber, etc.

8
Design (Output)

Splash Window (Intro):-

Login Form:-

9
New Cyber Setup Form:-

10
New Customer Entry Form:-

11
12
Transaction (Customer Enter):-

13
Customer Exit:-

14
Status Form:-

15
Coding
Design (Output):-

Splash Window (Intro):-


Private Sub Form_Load()

Timer1.Interval = 1000

ProgressBar1.Value = 0

End Sub

Private Sub Timer1_Timer()

If ProgressBar1.Value >= 60 Then

Timer1.Interval = 0

Form1.Show

Unload Me

Exit Sub

Else

ProgressBar1.Value = ProgressBar1.Value + 50

End If

End Sub

16
Login Form:-
Dim us_id As String

Dim pass As String

Dim flag As Integer

Private Sub Command1_Click()

flag = 0

us_id = Text1.Text

pass = Text2.Text

Dim rs As ADODB.Recordset

Set rs = New ADODB.Recordset

rs.Open "select *from cyber_mst ", db, adOpenDynamic,


adLockOptimistic

rs.MoveFirst

For i = 0 To 10

If rs.Fields("sid") = us_id And rs.Fields("passward") =


pass Then

flag = 1

Exit For

Else

rs.MoveNext

End If

Next i

If flag = 1 Then

Form5.Show

Unload Me

Text1.Text = ""

17
Text2.Text = ""

Else

MsgBox "Invalid user"

Text1.Text = ""

Text2.Text = ""

End If

rs.Close

End Sub

Private Sub Command2_Click()

Form2.Show

Unload Me

End Sub

Private Sub Command3_Click()

Unload Me

End Sub

Private Sub Form_Load()

dbopen

End Sub

Private Sub Label4_Click()

Form2.Show

Unload Me

End Sub

New Cyber Setup Form:-

18
Private Sub Command1_Click()

Dim rs As ADODB.Recordset

Set rs = New ADODB.Recordset

rs.Open "select *from cyber_mst ", db, adOpenDynamic,


adLockOptimistic

rs.AddNew

rs.Fields("sid") = Text1.Text

rs.Fields("name_of_cyber") = Text2.Text

If Val(Text4.Text) = Val(Text5.Text) Then

rs.Fields("passward") = Text5.Text

Else

MsgBox " Password Mismatched."

End If

rs.Fields("auth_per_name") = Text3.Text

rs.Fields("address") = Text6.Text

rs.Fields("ph_no") = Text7.Text

rs.Update

MsgBox " New Cyber Setup is formed"

rs.Close

Text1.Text = ""

Text2.Text = ""

Text3.Text = ""

Text4.Text = ""

Text5.Text = ""

Text6.Text = ""

Text7.Text = ""

Dim cnn As New ADODB.Connection

19
cnn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=cyber_db.mdb;Persist Security Info=False"

Dim record As New ADODB.Recordset

record.Open "select * from pcStatus", cnn, adOpenDynamic,


adLockOptimistic

record.MoveFirst

While Not (record.EOF)

record.Delete

record.MoveNext

Wend

record.Close

record.Open "select * from pcStatus", cnn, adOpenDynamic,


adLockOptimistic

Dim i, n As Integer

n = Val(txtPC.Text)

For i = 1 To n

record.AddNew

record.Fields(0) = i

record.Fields(1) = "0"

record.Update

Next

record.Close

cnn.Close

End Sub

Private Sub Command2_Click()

Form1.Show

Unload Me

20
End Sub

Private Sub Form_Load()

dbopen

End Sub

Private Sub Form_Unload(Cancel As Integer)

Unload Me

Form1.Show

End Sub

New Customer Entry Form:-

21
Private Sub Command1_Click()

Dim rs1 As ADODB.Recordset

Set rs1 = New ADODB.Recordset

rs1.Open "select *from cust_mst ", db, adOpenDynamic,


adLockOptimistic

dbopen

rs1.AddNew

rs1.Fields("cid") = Text1.Text

rs1.Fields("name_cust") = Text2.Text

rs1.Fields("caddress") = Text3.Text

rs1.Fields("proof_sub") = Combo2.Text

rs1.Fields("cph_no") = Text5.Text

rs1.Fields("gender") = Combo1.Text

rs1.Update

MsgBox "New Custmer added successfully."

rs1.Close

Combo1.Refresh

Text2.Text = ""

Text3.Text = ""

Combo2.Refresh

Text5.Text = ""

Combo1.Refresh

End Sub

Private Sub Command2_Click()

Form5.Show

Unload Me

22
End Sub

Private Sub Form_Load()

dbopen

Combo1.AddItem ("Male")

Combo1.AddItem ("Female")

Combo2.AddItem ("PAN Card")

Combo2.AddItem ("Driving Licens")

Combo2.AddItem ("Voting Card")

End Sub

Private Sub Form_Unload(Cancel As Integer)

Unload Me

Form5.Show

End Sub

Transaction (Customer Enter):-

23
Private Sub Command1_Click()

Dim rs1 As ADODB.Recordset

Set rs1 = New ADODB.Recordset

rs1.Open "select *from cust_mst ", db, adOpenDynamic,


adLockOptimistic

dbopen

rs1.AddNew

rs1.Fields("cid") = Text1.Text

rs1.Fields("name_cust") = Text2.Text

rs1.Fields("caddress") = Text3.Text

rs1.Fields("proof_sub") = Combo2.Text

rs1.Fields("cph_no") = Text5.Text

rs1.Fields("gender") = Combo1.Text

rs1.Update

MsgBox "New Custmer added successfully."

rs1.Close

Combo1.Refresh

Text2.Text = ""

Text3.Text = ""

Combo2.Refresh

Text5.Text = ""

Combo1.Refresh

End Sub

Private Sub Command2_Click()

Form5.Show

Unload Me

End Sub

24
Private Sub Form_Load()

dbopen

Combo1.AddItem ("Male")

Combo1.AddItem ("Female")

Combo2.AddItem ("PAN Card")

Combo2.AddItem ("Driving Licens")

Combo2.AddItem ("Voting Card")

End Sub

Private Sub Form_Unload(Cancel As Integer)

Unload Me

Form5.Show

End Sub

25
Customer Exit:-
Dim hr, min As Integer

Dim pcno As Integer

Dim s_min As Integer

Dim en_min As Integer

Dim en_hr, s_hr As Double

Dim s_time As Double

Dim rmv_itm As Integer

Private Sub Combo2_Click()

End Sub

Private Sub Combo1_Click()

dbopen

Dim rs As ADODB.Recordset

Set rs = New ADODB.Recordset

rs.Open "select entry_time from trans where time_spent=0 and


cid=" & Combo1.Text, db, adOpenDynamic, adLockOptimistic

hr = Hour(Time)

min = Minute(Time)

en_hr = Hour(rs.Fields(0))

en_min = Minute(rs.Fields(0))

lblInfo.Caption = "Total Usage IS : " & (hr - en_hr) & "


HOUR and " & (min - en_min) & "MINUTE."

Dim money As Integer

If (min = 0) Then

money = 0

Else

If (min > 1) Then

26
money = 30

End If

money = money + ((hr - en_hr) * 30)

lblMoney.Caption = "Total Charge IS : " & money & " Rs."

End If

End Sub

Private Sub Command1_Click()

rmv_itm = Val(Combo1.Text)

Dim rs As ADODB.Recordset

Set rs = New ADODB.Recordset

rs.Open "select * from trans where cid=" & Val(Combo1.Text),


db, adOpenDynamic, adLockOptimistic

If Not (rs.EOF) Then

pcno = rs.Fields(4)

On Error Resume Next

rs.Fields(2) = Time

hr = Hour(Time)

min = Minute(Time)

en_hr = Hour(rs.Fields(1))

en_min = Minute(rs.Fields(1))

If min < en_min Then

en_hr = en_hr + 1

s_min = en_min - min

Else

s_min = min - en_min

End If

If hr < en_hr Then

27
hr = 12 + hr

End If

s_hr = hr - en_hr

rs.Fields(6) = s_hr + (s_min / 100)

rs.Update

rs.Close

Combo1.RemoveItem (rmv_itm)

Combo1.Refresh

rs.Open "select * from pcStatus where pcNo=" & pcno, db,


adOpenDynamic, adLockOptimistic

rs.Fields(1) = "0"

rs.Update

MsgBox ("Thank You...Visit Again")

Unload Me

Form5.Show

Else

MsgBox ("No records selected")

End If

End Sub

Private Sub Command2_Click()

Unload Me

Form5.Show

End Sub

Private Sub Form_Load()

dbopen

Dim rs As ADODB.Recordset

Set rs = New ADODB.Recordset

28
rs.Open "select cid from trans where time_spent=0", db,
adOpenDynamic, adLockOptimistic

On Error Resume Next

rs.MoveFirst

Do While Not rs.EOF

Combo1.AddItem rs.Fields("cid")

rs.MoveNext

Loop

rs.Close

End Sub

Private Sub Form_Unload(Cancel As Integer)

Unload Me

Form5.Show

End Sub

Status Form:-

29
Private Sub Command1_Click()

Unload Me

Form5.Show

End Sub

Private Sub Form_Load()

dbopen

Dim rs As ADODB.Recordset

Set rs = New ADODB.Recordset

rs.Open "select * from cyber_mst ", db, adOpenDynamic,


adLockOptimistic

rs.MoveFirst

End Sub

Private Sub Form_Unload(Cancel As Integer)

Unload Me

Form5.Show

End Sub

30
Conclusion

After implementation of Cyber Caf Management System


it has been seen that the system fulfills all the user requirements
and objectives defined previously. The system is user friendly and
menu driven. The system is capable of keeping all the records of
the customers which is very Essential for the Caf Manager.

Bibliography

31
(References)

1. Visual basic Black Book.


- Steven Holzner
2. Visual Basic.
- Gary Cornell
3. www.google.com

32

You might also like