Algo 7

Function and Recursion

Modular Programming

cara pemrograman dengan pembagian kedalam modul. Modul di bahasa pemrograman C diimplementasikan dengan menggunakan function. Function adalah sekumpulan statement yang di gunakan untuk melakukan sesuatu yang spesifik.

Modul juga bisa di sebut sebagai Sub-Program.

Best practice in module programming:
–High Fan-In, frequently used
–Low Fan-Out, more specific functionality/ small number of job
–Self-Contained, self resource sufficient Function in C divided in two types :
–Library function
–User-defined function Function Prototype

Syntax :  return-value-type  function-name ( parameter-list );
Identifier Scooping:
– Local
– Global
Recursive
Recursive adalah sebuah function yang di gunakan untuk memanggil function itu sendiri.

Algo 4

repetition terbagi menjadi tiga:

1. For

For merupakan tipe repetition dimana kita dapat menginitialisasi sebuah variable diawal looping.Pada repetition ini, akan dicek terlebih dahulu kondisi sebelum dijalankan looping.Jika kondisinya TRUE maka akan dilakukan looping.

2.While

kurang lebih sama dengan for tetapi perlu menginitialisasi variabel sebelum/diluar looping.

3.Do – While

berbeda dengan For dan While dimana Do…While… akan menjalankan konten loopingnya untuk kali pertama terlebih dahulu lalu setelah loop pertama selesai, baru akan dilakukan pengecekan kondisi.

break dan continue

1. break

Break berfungsi untuk keluar dari looping

2.continue

continue akan membuat looping langsung lompat ke line kepala looping, mengskip line-line dibawahnya di dalam looping.

Algo 3

Syntax:
-if

If boolean expression resulting in True, then a statement or some statements will be executed.
-if-else

If boolean expression resulting in TRUE, then statement1 or  block statement1 will be executed, if FALSE then statement 2 or block statement 2 be executed
-switch-case

A statement that can be used to replace if-else, usually used when you want to make alot of statements.

Type of error:
-Compile-time error

caused by syntax error
-Link-time error

Success full compiled,but cause link error,Caused by no object code at link time
-Run time error

Successfully compiled,but error at runtime
-Logical error

Program run successfully but wring output

AlGO 2

Operator :
Tambah (+)
Kurang ( – )
Kali ( * )
Bagi ( / )

UNARY     = 1
BINARY    = 2
TERNARY = 3

= assign

== membandingkan

Binary
1 1 1 1 = 8 + 4 + 2 + 1 = 15
| | | |
2^3 2^2 2^1 2^0

 

Ringkasan Algoritma

Algoritma adalah proses bertahap dalam melakukan perhitungan yang ditemukan oleh Al-Khawarizmi (ilmuwan matematika yang berasal dari Arab).

Ada 3 tingkat bahasa pemrograman, yaitu :

  1. Bahasa tingkat rendah

cth : Assembler

  1. Bahasa tingkat menengah

cth : C, Pascal

  1. bahasa tingkat tinggi

cth: C++, C#, Visual Basic

C adalah Bahasa pemrograman yg paling terkenal, karna mudah untuk dimengerti

Object Oriented Programing (OOP): programming yang bergantung pada Object,

Jenis OOP:

  1. Encapsulation : Teknik privasi yang bertujuan untuk menjaga program agar tidak di proses oleh program lainnya.
  2. Inherintance : Pewarisan sifat yang tak wajib dimunculkan oleh keturunan,
  3. Abstract : Sifat-sifat keturunan dari ayah wajib di turunkan ke anaknya tapi anaknya bisa memperbaiki sifat-sifat tersebut.

 

Academic Orientation & HTTP

In Academic Orientation, we were introduced to Game Application & Technology.

We were taught about Algorithms, Pseudo code, C++ programming.

in my class we were taught by Mr Albertus Agung,

he is one of the lecturer from Game Application And technology in the art division

on 12th September 2015, HIMTI’s students were invited to attend HTTP

HTTP stands for HIMTI Togetherness and Top Performance.

Attending HTTP will require you to pay 150.000 IDR, that is located in BPPT Building

HIMTI provided students with bus for transportation

in the event, there were Band Performance, Talk Show, Drama, Games, Guest Star, doorprize, and DJ Performance

the event starts from 09.00 a.m. to 06.00 p.m.

it was a lot of fun

 

 

 

General Orientation & Organization Skills

Hello, my name is Edward, i’m a Binusian 2019,

On Freshmen Enrichment Program, i was assigned to the first batch,

i was in ABN16 class

in general orientation, i was taught about Binus University.

In order to graduate, the students need 120 SAT points

attending FEP itself gives the students 100 SAT points

to earn points, you have to attend events

the event will give you e-certificate

then you redeem the certificate for SAT points

the points depend on the events

In Organization Skills

our class was first directed to the HIMTI expo

HIMTI  is the club for School of Computer Science students

after going to HIMTI expo, our Buddy Coordinator then gave us free time to search for a community/Club that we like,

I joined Hockey, and Nippon