Professional Documents
Culture Documents
3 Programming Language
3 Programming Language
LANGUAGE
The Visual Basic Environment
WHAT IS A PROGRAMMING
LANGUAGE?
If people express themselves using a
language with many words, computer
use a simple language consisting of
only 1’s and 0’s which stands for 1 =
ON, 0 = OFF. (Machine Language)
HOW PROGRAMMING WORKS?
Computer is not that “smart” – it is only
an electronic device that switches and
work just ON/OFF, we need programs so
that it will tell the computer what to do
HOW DOES USERS AND COMPUTERS
UNDERSTAND EACH OTHER?
By using programming languages, because it
acts as a translator between the user and the
computer.
Rather than learning the language of the
computer, just use a programming language to
instruct the computer in a way that is easier to
understand.
As a programmer you don’t have to understand
what computer is doing, all you have to do is
understand how different programming
language works.
Evolution:
To write a program for a computer, we
must use a computer language. A computer
language is a set of predefined words that
are combined into a program according to
predefined rules (syntax). Over the years,
computer languages have evolved from
machine language to high-level languages
3 TYPES OF PROGRAMMING LANGUAGE
MACHINE LANGUAGE – use codes like 0’s and 1’s
that only the computer can understand.
The next evolution in programming came with the
idea of replacing binary code for instruction and
addresses with symbols or mnemonics. Because they
used symbols, these languages were first known as
symbolic languages. The set of these mnemonic
languages were later referred to as assembly
languages.
Example :
HIGH-LEVEL LANGUAGE – use of program
statements similar to words and symbols of the
English language. (like the Visual Basic Codes)
Ex.
VISUAL BASIC
VISUAL BASIC – a high-level programming language
that evolved from the earlier DOS version called
BASIC
PROGRAMMING ELEMENTS – includes
statements, declaration methods, operators and
keywords.
VB Our Language
Structure Book
Modules Chapter
Procedures Paragraph
Line of Codes Sentences
VISUAL BASIC
ENVIRONMENT
VB ENVIRONMENT
Open VB – you can see a
project which is a collection
of files that make up your
application.
Visual Basic 6 Interactive Development Environment
Project
Toolbox Explorer
Form
Designer
Window
Properties
window
The Properties of the Controls
Before writing an event procedure for the
control to response to a user's input, you have
to set certain properties for the control to
determine its appearance and how it will work
with the event procedure.
You can set the properties of the controls in
the properties window or at runtime.
You can rename the form caption to any name
that you like best.
Project 2:
The CODE
The Codes: To calculate the sum of two numbers:
doubleclick on the Calculate button and enter the codes
between Private Sub OK_Click( ) and End Sub
https://www.northeastern.edu/graduate/blog/mos
t-popular-programming-languages
/
https://docs.microsoft.com/en-us/dotnet/visual-ba
sic/language-reference/modules#:~:text=Visual%20
Basic%20provides%20several%20modules,directory
%20operations%2C%20and%20so%20on
.
https://
docs.microsoft.com/en-us/dotnet/api/microsoft.vis
ualbasic.controlchars?view=net-6.0