Algorithm 4

Today we learned about repetition syntax, we got three syntax to do the job :

For – looping syntax that doesn’t have to have condition, for syntax : ( expr1; expr2 ; expr3 ) statement:   expr1, initialization, expr2: condition expr3: increment, decrement.

While – this syntax must have a condition and will be execute when the statement is true

Do – While – Will keep looping if the statement is true.

that’s it i guess.

Algorithm 3

Today we learned function if which we already learned in AO but well why not.

Single “if” a syntax that we used only to do the next action if the “if” statement true, if the statement is false it won’t continue and stop.

“if – else” syntax that used to do more that one statement, if the statement is true then it will continue to the specific action, if it’s not it will check the “else”, statement and continue with the “else” result.

Nested if syntax with bunch of if, we can put as many statement as we like with different result each.

Next is “Switch” syntax to loop certain statement forever if you didn’t put “break” command

Oh and there is also type of errors in typing command, There is “Compile Time Error”, which is a syntax error, “Link Type Error”, An Error about missing files or link to import.

“Run time error”, is about overflow, ex : 2/0

lastly “Logical Error”, it’s about wrong output when program is executed.

I think that’s all i learned today.

Algorithm 2

The next algo class, we study more algorithm (you don’t say). We learn new stuff , good stuff. I learn about Operator. Operator is a symbol to process value to create a new value (Tadaa!). For examples, C=A+B, + is an Operator, and those A and B are Operand, that Operand thing is an object which an operation is performed. Those Operand ,it’s divided again to three categories.

First, we got Unary operator which need 1 operand.

Second, Binary operator need 2 operands.

and Third, is Ternary which need 3 operands.

Now for the Operator. Operator has much more categories. Operator has 6 different category.

We got assignment operator, which symbolize as “=”, without quotation.

Next, Logical Operator with “&&” as an “and”, “||” as an “or”, and “!=”, as a “Not”.

Then there is Math Operator. “+”,”-“,”*”,”/”, you get the idea.

There is also Relational Operator like, “2=2” for equality or inequality like “2=>3”

Finally we got bitwise operator and Pointer operator .

I think that’s what stuck in my head, hope i remember more next time.

Algorithm

First algorithm class we met a guest lecturer Mr.Feri he taught us about OOP. OOP is Object Oriented Programming it’s divided to 5 type, Inheritance , Interface , Polymorphism , Abstraction , and Encapsulation.

First Inheritance it behaves not compulsory

second Interface it behaves compulsory but can copy one or more

third Polymorphism is overwriting old method and renew it with the newer and more efficient method

fourth abstraction behaves compulsory

fifth Encapsulation it behaves private and only authorized person can see it.

we also learned the same thing that we already learned in AO, like History of Algorithm, Flowchart, Pseudocode , C language and many more, it’s exactly like we learned at AO so i guess the only new thing that i learned is OOP.

After that he told us about his experience about Indonesia weak cyber security , with his idea being rejected about cyber army. After Australia hijack Indonesia Incident, The government felt regret and decide to call him again and now we are building our own cyber army.