visual basic project.doc

Post on 14-Apr-2018

226 Views

Category:

Documents

1 Downloads

Preview:

Click to see full reader

TRANSCRIPT

7/27/2019 visual basic project.doc

http://slidepdf.com/reader/full/visual-basic-projectdoc 1/62

 

IDEAL INSTITUTE OF MANAGEMENT AND

TECHNOLOGY

Practical file

of 

Visual Basic

Submitted To: Submitted By:

XXXXXXXXX

XXXXXXXXXXXXXXXXXXX BBA

( Asst. Prof. I.T ) En.Roll.No.-XXXXXXXXXXX

1

7/27/2019 visual basic project.doc

http://slidepdf.com/reader/full/visual-basic-projectdoc 2/62

CERTIFICATE

 This is to certify that XXXXXXX pursuing BBA(CAM) from IIMT has

completed this practical file under my supervision and guidance. She hastaken care of all the instructions and shown interest and sincerity during

the completion of this computer practical file is up to my expectation as

per the quality laid down by Guru Gobind Singh Indraprastha University,

Dwarka ,Delhi.

XXXXXXXXXXXXXXX

( Asst. Prof. I.T )

2

7/27/2019 visual basic project.doc

http://slidepdf.com/reader/full/visual-basic-projectdoc 3/62

ACKNOWLEDGEMENT

An undertaking such as this is never the work of single person is no

exception. I, at the very outset, thank and express my gratitude to all

those who directly or indirectly helped me a lot in completion of the

present practical work and encouraged, inspire and enthusiasts me in the

moment of despair and made it possible for this report to be in your hand

today.

First of all, I wish to express my profound feeling of gratitude and indebt

to my project guide XXXXXXXX (Asst. Prof. I.T). IIMT (Delhi) for her advice

and guidance during various stages of this practical. In spite of her

preoccupation and job responsibilities she has spared her time during the

completion of this work. I thank her whole heartedly.

I wish to record my sincere gratitude to XXXXXXXX (Asst. Prof. I.T), who

provided constant support to me during my work.

XXXXXXXXXXX

Enroll.No-

XXXXXXXXXXX

Course – BBA.

3

7/27/2019 visual basic project.doc

http://slidepdf.com/reader/full/visual-basic-projectdoc 4/62

Contents

S.No. Particulars Page No.

1. Visual basic- introduction 6

2. Features of visual basic 7

3. Advantages and disadvantages 8

4. Practical assignment 10

5. Registration form 11

6. Program to calculate average of three numbers 14

7. Print factorial of a number given by user 17

8. Call by value 20

9. Call by reference 23

10. Show the working of option button and check 

 box

26

11. Pop up menu creation 29

12. Program to print Fibonacci series 32

13. Print factorial of a number given by user 35

14. Write a program to find ever or odd. 38

15. Program to find prime number 41

16. Select case 44

17. Write a program to sum the digits of the 47

4

7/27/2019 visual basic project.doc

http://slidepdf.com/reader/full/visual-basic-projectdoc 5/62

numbers

18. While loop 50

19. Implementation of traffic light. 5320. Swapping of two numbers 57

21. Simple calculator 60

5

7/27/2019 visual basic project.doc

http://slidepdf.com/reader/full/visual-basic-projectdoc 6/62

Visual basic- Introduction

Visual Basic is a visual version of a computer language named BASIC.

BASIC is a high level programming language that supports text- onlyenvironment. BASIC is beginner’s All Purpose Symbolic Instruction Code. Itis an instruction code that uses symbols and meant for all purpose –scientific or business.

Each instruction is executed i.e run sequentially. Since BASIC is abeginner’s language, it is easy to learn and write. Visual Basic moves astep forward, uses the syntaxes of BASIC and runs the events in agraphical environment. There are number of objects in graphical

environment.

Each of them can program independently to respond to the events. Thislanguage is also called Rapid Application Development (RAD) Toolbecause the programmer can develop a wide range of Windows, web,mobile and office applications on rapid pace. The language is accessibleto everyone from a novice programmer to advanced system architect.

6

7/27/2019 visual basic project.doc

http://slidepdf.com/reader/full/visual-basic-projectdoc 7/62

Features of visual basic

• It is extensively used by the businesses.

• It is easy to learn

• It shows the interface what the user has code in code window

• It leads to rapid industrial development.

• It use drag and drop facility while designing a form.

• It contains an excellent help guide and booked online to write the correct codes

for an application.

It contains Dialog Box facility which helps the user to display the information to

the user and ask for necessary information too as these are two types of Dialog

Box.

• It is object-oriented.

• It is based on GUI (Graphical User Interface).

• It provides various options of projects to be designed like standard EXE, Active

X EXE, etc.

• It provides the facility of pop-up menu and sub menu to be used.

• It contains code window which is used to give source code for any no. of 

events.

7

7/27/2019 visual basic project.doc

http://slidepdf.com/reader/full/visual-basic-projectdoc 8/62

 Advantages of Visual Basic

•  The structure of the Basic programming language is very simple,particularly as to the executable code.

• VB is not only a language but primarily an integrated, interactivedevelopment environment ("IDE").

•  The VB-IDE has been highly optimized to support rapid applicationdevelopment ("RAD"). It is particularly easy to develop graphical

user interfaces and to connect them to handler functions providedby the application.

•  The graphical user interface of the VB-IDE provides intuitivelyappealing views for the management of the program structure inthe large and the various types of entities (classes, modules,procedures, forms, ...).

• VB provides a comprehensive interactive and context-sensitiveonline help system.

• When editing program texts the "IntelliSense" technology informsyou in a little popup window about the types of constructs that maybe entered at the current cursor location.

• VB is a component integration language which is attuned toMicrosoft's Component Object Model ("COM").

• COM components can be written in different languages and thenintegrated using VB.

• Interfaces of COM components can be easily called remotely viaDistributed COM ("DCOM"), which makes it easy to construct

distributed applications.

8

7/27/2019 visual basic project.doc

http://slidepdf.com/reader/full/visual-basic-projectdoc 9/62

• COM components can be embedded in / linked to your application'suser interface and also in/to stored documents (Object Linking andEmbedding "OLE", "Compound Documents").

•  There is a wealth of readily available COM components for manydifferent purposes.

9

7/27/2019 visual basic project.doc

http://slidepdf.com/reader/full/visual-basic-projectdoc 10/62

Practical assignment

1.Registration form

Design Window

10

7/27/2019 visual basic project.doc

http://slidepdf.com/reader/full/visual-basic-projectdoc 11/62

Code Window

11

7/27/2019 visual basic project.doc

http://slidepdf.com/reader/full/visual-basic-projectdoc 12/62

Run Window

12

7/27/2019 visual basic project.doc

http://slidepdf.com/reader/full/visual-basic-projectdoc 13/62

2.Program to calculate average of three numbers

Design Window

13

7/27/2019 visual basic project.doc

http://slidepdf.com/reader/full/visual-basic-projectdoc 14/62

Code Window

14

7/27/2019 visual basic project.doc

http://slidepdf.com/reader/full/visual-basic-projectdoc 15/62

Run Window

15

7/27/2019 visual basic project.doc

http://slidepdf.com/reader/full/visual-basic-projectdoc 16/62

3.Print factorial of a number given by user 

Design Window

16

7/27/2019 visual basic project.doc

http://slidepdf.com/reader/full/visual-basic-projectdoc 17/62

Code Window

17

7/27/2019 visual basic project.doc

http://slidepdf.com/reader/full/visual-basic-projectdoc 18/62

Run Window

18

7/27/2019 visual basic project.doc

http://slidepdf.com/reader/full/visual-basic-projectdoc 19/62

4.Call by value

Design Window

19

7/27/2019 visual basic project.doc

http://slidepdf.com/reader/full/visual-basic-projectdoc 20/62

Code Window

20

7/27/2019 visual basic project.doc

http://slidepdf.com/reader/full/visual-basic-projectdoc 21/62

Run Window

21

7/27/2019 visual basic project.doc

http://slidepdf.com/reader/full/visual-basic-projectdoc 22/62

5.Call by reference

Design Window

22

7/27/2019 visual basic project.doc

http://slidepdf.com/reader/full/visual-basic-projectdoc 23/62

23

7/27/2019 visual basic project.doc

http://slidepdf.com/reader/full/visual-basic-projectdoc 24/62

Code Window

Run Window

24

7/27/2019 visual basic project.doc

http://slidepdf.com/reader/full/visual-basic-projectdoc 25/62

6.Show the working of option button and check box

Design Window

25

7/27/2019 visual basic project.doc

http://slidepdf.com/reader/full/visual-basic-projectdoc 26/62

Code Window

26

7/27/2019 visual basic project.doc

http://slidepdf.com/reader/full/visual-basic-projectdoc 27/62

Run Window

27

7/27/2019 visual basic project.doc

http://slidepdf.com/reader/full/visual-basic-projectdoc 28/62

7.Pop up menu creation

Design Window

28

7/27/2019 visual basic project.doc

http://slidepdf.com/reader/full/visual-basic-projectdoc 29/62

Code Window

29

7/27/2019 visual basic project.doc

http://slidepdf.com/reader/full/visual-basic-projectdoc 30/62

Run Window

30

7/27/2019 visual basic project.doc

http://slidepdf.com/reader/full/visual-basic-projectdoc 31/62

8.Program to print Fibonacci series

Design Window

31

7/27/2019 visual basic project.doc

http://slidepdf.com/reader/full/visual-basic-projectdoc 32/62

Code Window

32

7/27/2019 visual basic project.doc

http://slidepdf.com/reader/full/visual-basic-projectdoc 33/62

Run Window

33

7/27/2019 visual basic project.doc

http://slidepdf.com/reader/full/visual-basic-projectdoc 34/62

9.Print factorial of a number given by user 

Design Window

34

7/27/2019 visual basic project.doc

http://slidepdf.com/reader/full/visual-basic-projectdoc 35/62

Code Window

35

7/27/2019 visual basic project.doc

http://slidepdf.com/reader/full/visual-basic-projectdoc 36/62

Run Window

36

7/27/2019 visual basic project.doc

http://slidepdf.com/reader/full/visual-basic-projectdoc 37/62

10.Write a program to find ever or odd.

Design Window

37

7/27/2019 visual basic project.doc

http://slidepdf.com/reader/full/visual-basic-projectdoc 38/62

Code Window

38

7/27/2019 visual basic project.doc

http://slidepdf.com/reader/full/visual-basic-projectdoc 39/62

Run Window

39

7/27/2019 visual basic project.doc

http://slidepdf.com/reader/full/visual-basic-projectdoc 40/62

11.Program to find prime number 

Design Window

40

7/27/2019 visual basic project.doc

http://slidepdf.com/reader/full/visual-basic-projectdoc 41/62

Code Window

41

7/27/2019 visual basic project.doc

http://slidepdf.com/reader/full/visual-basic-projectdoc 42/62

Run Window

42

7/27/2019 visual basic project.doc

http://slidepdf.com/reader/full/visual-basic-projectdoc 43/62

12.Select case

Design Window

43

7/27/2019 visual basic project.doc

http://slidepdf.com/reader/full/visual-basic-projectdoc 44/62

Code Window

44

7/27/2019 visual basic project.doc

http://slidepdf.com/reader/full/visual-basic-projectdoc 45/62

Run Window

45

7/27/2019 visual basic project.doc

http://slidepdf.com/reader/full/visual-basic-projectdoc 46/62

13.Write a program to sum the digits of the numbers

Design Window

46

7/27/2019 visual basic project.doc

http://slidepdf.com/reader/full/visual-basic-projectdoc 47/62

Code Window

47

7/27/2019 visual basic project.doc

http://slidepdf.com/reader/full/visual-basic-projectdoc 48/62

Run Window

48

7/27/2019 visual basic project.doc

http://slidepdf.com/reader/full/visual-basic-projectdoc 49/62

14.While loop

Design Window

49

7/27/2019 visual basic project.doc

http://slidepdf.com/reader/full/visual-basic-projectdoc 50/62

Code Window

50

7/27/2019 visual basic project.doc

http://slidepdf.com/reader/full/visual-basic-projectdoc 51/62

Run Window

51

7/27/2019 visual basic project.doc

http://slidepdf.com/reader/full/visual-basic-projectdoc 52/62

15.Implementation of traffic light.

Design Window

52

7/27/2019 visual basic project.doc

http://slidepdf.com/reader/full/visual-basic-projectdoc 53/62

Code Window

53

7/27/2019 visual basic project.doc

http://slidepdf.com/reader/full/visual-basic-projectdoc 54/62

Run Window

54

7/27/2019 visual basic project.doc

http://slidepdf.com/reader/full/visual-basic-projectdoc 55/62

Run Window

Run Window

55

7/27/2019 visual basic project.doc

http://slidepdf.com/reader/full/visual-basic-projectdoc 56/62

16.Swapping of two numbers

Design Window

56

7/27/2019 visual basic project.doc

http://slidepdf.com/reader/full/visual-basic-projectdoc 57/62

Code Window

57

7/27/2019 visual basic project.doc

http://slidepdf.com/reader/full/visual-basic-projectdoc 58/62

Run Window

58

7/27/2019 visual basic project.doc

http://slidepdf.com/reader/full/visual-basic-projectdoc 59/62

17.Simple calculator 

Design Window

59

7/27/2019 visual basic project.doc

http://slidepdf.com/reader/full/visual-basic-projectdoc 60/62

Code Window

60

7/27/2019 visual basic project.doc

http://slidepdf.com/reader/full/visual-basic-projectdoc 61/62

61

7/27/2019 visual basic project.doc

http://slidepdf.com/reader/full/visual-basic-projectdoc 62/62

Run Window

top related