IntroductionToProgramming
What isProgramming?
Programming– dealswiththe studyof computerlanguage
What isa Visual Basic?
Visual Basic(Vb) –is a tool CreatedbyMicrosoft to buildacomputerapplicationinauser-friendly
environmentthatsupportsGraphical UserInterface
GUI – Graphical User Interface
Flowchart– A graphical representationof stepbystepinstructionstosolve aproblem
Algorithm–A setof stepby stepinstructiontosolve aproblem
Opevator– An enqine used toperfromlogical andmathematical operations
Variable –A memorystorage / container
Loop – An actionthat repeatedlyandcontinuouslyperformuntil acertainconditiondone
Operators
1)Arithmeticoperators
+ → Addtion
- → Subtraction
* → Multiplication
/ → Division
2)Relational Operatior
> → greaterthan
< → lessthan
>= → greaterthanor equal to
<= → lessthanor equal to
=== or == or = → equal to
<> or != → not equal to
3)Loqical operators
||
|| → OR
&& → AND
Flowchart Algorithm Variables
START
INPUT
Preporation
Process
CollectMaterialsVaribleX,Y
Condition
Z = X + Y
Is Z lessthan100 ? Yes or No
OUTPUT
END
IF true , re-startthe operation
Else if false
Displayresult
ThenEnd operation
Y:1.)
X=5
Y=6
Z =x+y
Print ?
x:2.)
X=5
Y=6
Z =x+y
Condition:
It ? lessthan 100?
Yes or no
If true re-start
The operation
Else if false display
?
Thenendoperation

Introduction to programming

  • 1.
    IntroductionToProgramming What isProgramming? Programming– dealswiththestudyof computerlanguage What isa Visual Basic? Visual Basic(Vb) –is a tool CreatedbyMicrosoft to buildacomputerapplicationinauser-friendly environmentthatsupportsGraphical UserInterface GUI – Graphical User Interface Flowchart– A graphical representationof stepbystepinstructionstosolve aproblem Algorithm–A setof stepby stepinstructiontosolve aproblem Opevator– An enqine used toperfromlogical andmathematical operations Variable –A memorystorage / container Loop – An actionthat repeatedlyandcontinuouslyperformuntil acertainconditiondone Operators 1)Arithmeticoperators + → Addtion - → Subtraction * → Multiplication / → Division 2)Relational Operatior > → greaterthan < → lessthan >= → greaterthanor equal to <= → lessthanor equal to === or == or = → equal to <> or != → not equal to
  • 2.
    3)Loqical operators || || →OR && → AND Flowchart Algorithm Variables START INPUT Preporation Process CollectMaterialsVaribleX,Y Condition Z = X + Y Is Z lessthan100 ? Yes or No OUTPUT END IF true , re-startthe operation Else if false Displayresult ThenEnd operation Y:1.) X=5 Y=6 Z =x+y Print ? x:2.) X=5 Y=6 Z =x+y Condition: It ? lessthan 100? Yes or no If true re-start The operation Else if false display ? Thenendoperation