IntroductiontoProgramming
What isprogramming
Programming– dealswiththe studyof computerlanguage
What isa Visual Basic?
Visual Basic(vb) – isa tool createdbyMicrosoftto builda computerapplicationinauser-friendly
environmentthatsupportsGraphical UserInterface
GUI – Graphical User Interface
Flowchart– A graphical representationof stepinstructionstosolve aproblem.
Algorithm–A setoff stepbystepinstructiontosolve aproblem.
Operator– Anerqine usedtoperformlogical andmathematical operations.
Variable –A memorystorage /container.
Loop – An actionthat repeatedlyandcontinuouslyperformuntilacertainconditionisdone.
Operators:
1) Arithmeticoperators
+  Addition
-  Subtraction
* Multipication
/  Division
2) Relational Operatior
>greaterthan
< lessthan
>= greaterthanor equal to
<= lessthanor equal to
===or==or=  equal to
<>or!= notequal to
3) Logical operators
|| OR &&  AND
Flowchart Algorithm Variables
Preparation 1)x=5 2)x=5
Y=6 y=6
z=x+y z=x+y
CollectMaterials Print_?_ Conition:
Variable:x,y
Z = X+Y
Is Z lessthan100? Is? lessthan 100?
yesor no
If true,re-startthe operation If true,thenre-startthe operation
Else if false Else if false
Display result Display ?
ThenEnd operation ThenEnd the operation
Start
input
Process
Condition
Out put
End

งาน

  • 1.
    IntroductiontoProgramming What isprogramming Programming– dealswiththestudyof computerlanguage What isa Visual Basic? Visual Basic(vb) – isa tool createdbyMicrosoftto builda computerapplicationinauser-friendly environmentthatsupportsGraphical UserInterface GUI – Graphical User Interface Flowchart– A graphical representationof stepinstructionstosolve aproblem. Algorithm–A setoff stepbystepinstructiontosolve aproblem. Operator– Anerqine usedtoperformlogical andmathematical operations. Variable –A memorystorage /container. Loop – An actionthat repeatedlyandcontinuouslyperformuntilacertainconditionisdone. Operators: 1) Arithmeticoperators +  Addition -  Subtraction * Multipication /  Division 2) Relational Operatior >greaterthan < lessthan >= greaterthanor equal to <= lessthanor equal to ===or==or=  equal to <>or!= notequal to 3) Logical operators || OR &&  AND
  • 2.
    Flowchart Algorithm Variables Preparation1)x=5 2)x=5 Y=6 y=6 z=x+y z=x+y CollectMaterials Print_?_ Conition: Variable:x,y Z = X+Y Is Z lessthan100? Is? lessthan 100? yesor no If true,re-startthe operation If true,thenre-startthe operation Else if false Else if false Display result Display ? ThenEnd operation ThenEnd the operation Start input Process Condition Out put End