TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
Introduction to programming
1. Introductionto Programming
What is programming ?
Programming– deals withthe studyof computer language
What is a visual Basic ?
Visual Basic (vb)– is a tool created byMicrosoft to build a computer applicationina user – friendlyenvironment that-support
GraphicalUser interface
GUI – Graphical User Interface.
Flowchart – a graphical representationof stepbystepinstructions to solve a problem.
Algorithm – A set of step bystepinstructionto solve a a problem
Operator – An enqine used to proform logical andmathematical operations.
Variable – A memorystorage / container
Loop – An action that repeatedlyandcontinuouslyperform
Until a certain condition is done.
Operators:
1)Arithmetic operators
+ Addition
- Subtraction
* Multiplication
/ Division
2.) Relational Operatior
> greater than
< Less than
>= greater than or equal to
<= less than or equal to’
===or==or= equal to
<>or!= not equal to
3.) Logical operators
“ OR
“ & & AND
2. Flowchart Algorithm Variables
Preparation ex: 1.) ex: 2.)
x=5 x=5
collect materials x=6 x=6
Variable :x,y z =x+y z =x+y
Condition :
Z = x+y Print ? Is? less than 100% Yes or No
If true, then re-start
The operation
Is Z less than100? Else is fales
Yes or No Display ?
Then End the Operation
If true, re-sport the
Operation Else is false
Display result
Then End operation
Start
INPUT
Process
Condition
Out put
END