Visual Basic is a programming tool created by Microsoft to build graphical user interface (GUI) applications in a user-friendly environment. It supports key programming concepts like flowcharts, algorithms, variables, loops, and operators. Flowcharts provide a graphical representation of step-by-step instructions to solve a problem. Algorithms are sets of step-by-step instructions to solve a problem. Variables act as containers to store and memory values. Loops allow actions to be performed repeatedly until a condition is met. Operators include arithmetic, relational, and logical operators to perform math operations and make comparisons.
1. IntroductiontoProgramming
What isprogramming
Programming– dealswiththe studyof computerlanguege
What isvisual basic?
Visual basic(vb)–is a tool created
By Microsoftto builda computer
Applicationinauserfriendlyenvironment
Tht supportsGraphical User Interface
GUI – Graphical User Interface
Flowchar– A Graphical representationof stepbystepinstructionstosolve aproblem
Algorithm–A setof stepby stepinstructiontosolve aproblem
Operator– Anenqire use toperformlogical andmathematicsoperations
Variable –A memories/storage /container
Loop –Anaction and repeatedly andcontinuouslyperformuntil acertainconditionisdone
Operator
2. 1) Arithmeticoperators
+ Addition
- Subtraction
* Multiplication
/ Division
2) Relational operators
> Greaterthan
< Lessthan
>= greaterthan or equal to
<= lessthanor equal to
===or==or= equal to
<>or/= notequal to
3) logical operator
ll
OR
ll
&& AND
3. Flowchart Algorithm Variables
Start Preparation
EX1) Ex2)
X=5 X=5
Y=6 Y=6
Z= X+Y Z=X+Y
conditions
Input Collect Materials variable : X,Y
Is ?lesthan 100 ?
yesor no
Process Z = X+Y
If true thenre-startthe
operation
Condition Is z less than 100?yes or no Eke this false display
Output If true re-start the operation
Else if false Display result
End Then End operation Thenendthe operation