Download as pdf or txt
Download as pdf or txt
You are on page 1of 22

Team No:5

PAYROLL PROCESSING SYSTEM

Ex No: 07

Date: 11/06/2021

AIM:

To write a program in Microsoft visual basic for creating Payroll Processing System.

ALGORITHM:

Step 1: Start the process,

Step 2: Create a form in visual basic.

Step 3: Place the five command buttons, give name for the command button like

Add, Edit, Save, Delete, Exit.

Step 4: Display code page by clicking the view code option.

Step 5: Enter the code for corresponding button as given above.

Step 6: Execute the program by clicking run option in the menu bar.

Step 7: Stop the process.

CODING:

CODE FOR FORM 1:

Private Sub Command1Click()

If Text1.Text = "admin" And Text2.Text = "123" Then

MsgBox ("Login Successful")

Form2.Show

Else

MsgBox ("Login Failed")

End If

1
Team No:5

End Sub

Private Sub Command2_Click()

Form1.Hide

End Sub

CODING FOR FORM 2:

Private Sub Command1_Click()

Data1. Recordset..AddNew

End Sub

Private Sub Command2_Click()

Data1. Recordset..Edit

End Sub

Private Sub Command3_Click()

Data1.Recordset. Update

End Sub

Private Sub Command4_Click()

Data1.Recordset. delete

End Sub

Private Sub Command5_Click()

Form2.Hide

End Sub

2
Team No:5

OUTPUT:

3
Team No:5

RESULT:

Thus the above program has been executed and verified successfully.

4
Team No:5

BANKING SYSTEM
Ex No: 08

Date: 11/06/2021

AIM:

To write a program in Microsoft visual basic for creating Banking system.

ALGORITHM:

Step 1: Start the process,

Step 2: Create a form in visual basic.

Step 3: Place the command buttons, give name for the command button like

Account Number, Account Details, Exit.

Step 4: Display code page by clicking the view code option.

Step 5: Enter the code for corresponding button as given above.

Step 6: Execute the program by clicking run option in the menu bar.

Step 7: Stop the process.

CODING :

CODING FOR FORM 1:

Private Sub Command1_Click()

If Text1.Text = "admin" And Text2.Text = "123" Then

MsgBox ("Login Successful")

Form2.Show

Else

MsgBox ("failed")

End If

5
Team No:5

End Sub

Private Sub Command2_Click()

Form1.Hide

End Sub

CODING FOR FORM 2:

Private Sub Command1_Click()

Form1.Show

End Sub

Private Sub Command2_Click()

If Text1.Text = "1364764845383047" And Text2.Text = "875404" Then

MsgBox ("Login Successful")

Form3.Show

Else

MsgBox ("Failed")

End If

End Sub

CODING FOR FORM 3:

Private Sub Command2_Click()

6
Team No:5

Form2.Show

End Sub

Private Sub Image1_Click()

End Sub

OUTPUT :

7
Team No:5

8
Team No:5

RESULT:

Thus the above program has been executed and verified successfully.

9
Team No:5

LIBRARY INFORMATION SYSTEM


Ex No: 09

Date: 11/06/2021

AIM:

To write a program in Microsoft visual basic for creating Library Information System.

ALGORITHM:

Step 1: Start the process,

Step 2: Create a form in visual basic.

Step 3: Place the command buttons, give name for the command button like

Member ID, All books, Exit.

Step 4: Display code page by clicking the view code option.

Step 5: Enter the code for corresponding button as given above.

Step 6: Execute the program by clicking run option in the menu bar.

Step 7: Stop the process.

CODING:

CODING FOR FORM 1:

Private Sub Command1_Click()

If Text1.Text = "100001" And Text2.Text = "987654" Then

MsgBox ("Login successful")

Form2.Show

Else

10
Team No:5

MsgBox ("Login Faild")

End If

End Sub

Private Sub Command2_Click()

Form1.Hide

End Sub

CODING FOR FORM 2:

Private Sub Command1_Click()

Form3.Show

End Sub

Private Sub Command2_Click()

Form4.Show

End Sub

Private Sub Command3_Click()

Form5.Show

End Sub

Private Sub Command4_Click()

Form6.Show

11
Team No:5

End Sub

Private Sub Command5_Click()

Form1.Show

End Sub

CODING FOR FORM 3:

Private Sub Command1_Click()

Form2.Show

End Sub

CODING FOR FORM 4:

Private Sub Command1_Click()

Form2.Show

End Sub

CODING FOR FORM 5:

Private Sub Command1_Click()

Form2.Show

End Sub

CODING FOR FORM 6:

12
Team No:5

Private Sub Command1_Click()

Form2.Show

End Sub

OUTPUT :

13
Team No:5

14
Team No:5

15
Team No:5

RESULT:

Thus the above program has been executed and verified successfully.

16
Team No:5

STUDENT EVALUATION SYSTEM


Ex No: 10

Date: 11/06/2021

AIM:

To write a program in Microsoft visual basic for creating Student Evaluation system.

ALGORITHM:

Step 1: Start the process,

Step 2: Create a form in visual basic.

Step 3: Place the command buttons, give name for the command button like

Student ID, Student Rank, Exit.

Step 4: Display code page by clicking the view code option.

Step 5: Enter the code for corresponding button as given above.

Step 6: Execute the program by clicking run option in the menu bar.

Step 7: Stop the process.

CODING :

CODING FOR FORM 1:

Private Sub Command1_Click()

If Text1.Text = "10001" And Text2.Text = "12345" Then

MsgBox ("Login Successful")

Form2.Show

Else

17
Team No:5

MsgBox ("Login Faild")

End If

End Sub

Private Sub Command2_Click()

Form1.Hide

End Sub

CODING FOR FORM 2:

Private Sub Command1_Click()

Data1.Recordset.AddNew

End Sub

Private Sub Command2_Click()

Data1.Recordset.Edit

End Sub

Private Sub Command3_Click()

Data1.Recordset.Update

End Sub

Private Sub Command4_Click()

18
Team No:5

Data1.Recordset.Delete

End Sub

Private Sub Command5_Click()

Form2.Hide

End Sub

OUTPUT :

19
Team No:5

20
Team No:5

21
Team No:5

RESULT:

Thus the above program has been executed and verified successfully.
22

You might also like