0% found this document useful (0 votes)
3 views13 pages

Visual Basic Practical Complete College Format

The document is a lab manual for Visual Basic submitted by a BCA student at Government College Barota. It includes practical exercises with aims, algorithms, source codes, and results for various programming tasks such as string manipulation, a simple calculator, and an online examination system. The manual serves as a record of the student's work under faculty supervision for academic requirements.

Uploaded by

jzat4152
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views13 pages

Visual Basic Practical Complete College Format

The document is a lab manual for Visual Basic submitted by a BCA student at Government College Barota. It includes practical exercises with aims, algorithms, source codes, and results for various programming tasks such as string manipulation, a simple calculator, and an online examination system. The manual serves as a record of the student's work under faculty supervision for academic requirements.

Uploaded by

jzat4152
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Government College Barota

(Affiliated to Maharshi Dayanand University, Rohtak)

LAB MANUAL OF VISUAL BASIC


BCA 5th Semester

Submitted To:
Dr. Rajesh Dawar
(Faculty)

Submitted By:
Chirag
Roll No: 1232605026
CERTIFICATE
This is to certify that the practical work entitled “Lab Manual of Visual Basic” submitted
by Chirag, Roll No. 1232605026, BCA 5th Semester, Government College Barota, is a
bonafide record of work carried out under my supervision for the partial fulfillment of the
degree of Bachelor of Computer Applications.

Signature of Faculty

Date: __________
ACKNOWLEDGEMENT
I express my sincere gratitude to Dr. Rajesh Dawar for his guidance, support, and
encouragement throughout the completion of this Visual Basic practical file. I also thank
the college administration and my classmates for their cooperation and support.
INDEX
1. Print a Sentence

2. String Concatenation

3. Vowel or Not

4. String Conversion

5. Simple Calculator

6. Online Examination System

7. Loading Controls at Runtime

8. Dynamic Menus

9. Analog Clock
Practical 1
Title: Print a Sentence

Aim:
To write a program to print a sentence in Visual Basic.

Algorithm:

1. Start the application


2. Declare a string variable
3. Assign value to the variable
4. Display the output
5. Run the program

Source Code:

Module Module1
Sub Main()
Dim str As String
str = "Write First program in Visual Basic"
[Link](str)
[Link]()
End Sub
End Module

Output:

[ Paste Output Screenshot Here ]

Result:
Thus, the program was executed successfully and the output was verified.
Practical 2
Title: String Concatenation

Aim:
To concatenate two or more strings.

Algorithm:

6. Start application
7. Declare string variables
8. Concatenate strings
9. Display output

Source Code:

Module Module1
Sub Main()
Dim str1 As String = "Visual"
Dim str2 As String = "Basic"
[Link](str1 & " " & str2)
[Link]()
End Sub
End Module

Output:

[ Paste Output Screenshot Here ]

Result:
Thus, the program was executed successfully and the output was verified.
Practical 3
Title: Vowel or Not

Aim:
To check whether a character is vowel or not.

Algorithm:

10. Accept input


11. Check vowel condition
12. Display result

Source Code:

If ch = "A" Or ch = "E" Or ch = "I" Or ch = "O" Or ch = "U" Then


MsgBox("The given string is vowel")
Else
MsgBox("The given string is not vowel")
End If

Output:

[ Paste Output Screenshot Here ]

Result:
Thus, the program was executed successfully and the output was verified.
Practical 4
Title: String Conversion

Aim:
To convert string into upper and lower case.

Algorithm:

13. Accept input


14. Convert to upper and lower case
15. Display output

Source Code:

[Link] = [Link]()
[Link] = [Link]()

Output:

[ Paste Output Screenshot Here ]

Result:
Thus, the program was executed successfully and the output was verified.
Practical 5
Title: Simple Calculator

Aim:
To perform arithmetic operations.

Algorithm:

16. Design calculator form


17. Accept values
18. Perform operations
19. Display result

Source Code:

result = Val([Link]) + Val([Link])


[Link] = result

Output:

[ Paste Output Screenshot Here ]

Result:
Thus, the program was executed successfully and the output was verified.
Practical 6
Title: Online Examination System

Aim:
To create an online examination using timer.

Algorithm:

20. Design form


21. Set timer
22. Calculate marks
23. Display result

Source Code:

If [Link] Then
total += 1
End If

Output:

[ Paste Output Screenshot Here ]

Result:
Thus, the program was executed successfully and the output was verified.
Practical 7
Title: Loading Controls at Runtime

Aim:
To demonstrate loading controls dynamically.

Algorithm:

24. Create controls dynamically


25. Display controls
26. Remove controls

Source Code:

Dim btn As New Button


[Link] = "Dynamic Button"
[Link](btn)

Output:

[ Paste Output Screenshot Here ]

Result:
Thus, the program was executed successfully and the output was verified.
Practical 8
Title: Dynamic Menus

Aim:
To demonstrate dynamic menus.

Algorithm:

27. Create menu


28. Add items dynamically
29. Handle menu click

Source Code:

[Link] = "Recent File"


[Link](MenuItem)

Output:

[ Paste Output Screenshot Here ]

Result:
Thus, the program was executed successfully and the output was verified.
Practical 9
Title: Analog Clock

Aim:
To design an analog clock.

Algorithm:

30. Design clock interface


31. Use timer
32. Move hands continuously

Source Code:

[Link] = True

Output:

[ Paste Output Screenshot Here ]

Result:
Thus, the program was executed successfully and the output was verified.

You might also like