What I’ve Learned Today (October 1st, 2015)
Guest Lecturer: Feri
oop = object oriented programming
Machine language use 1 and 0, it’s called assembly
C language is a moderate level of language
Encapsulation: private/public
Inherited: sunah
Abstract: wajib/sunah or we may called pansy (banci)
Interface: wajib
Polymorphism: ?
Blue Print is like a sketch
twitter.com use NoSQL (monggodibi) as its database and it use java language, or ruby, etc.
History of Algorithm:
Founder -> Al-Khwarizmi
Definition of Algorithm:
-Set a Sequential Instructions developed to describe important processes in producing an Output with specific required Input is given.
Flow Chart:

Flow Chart Definition:
-Shows logic of an algorithm
-Emphasizes individual steps and their interconnections
-e.g. control flow from one action to the next.
Sequence:
-Sequence is series of consecutive commands/statements
Pseudo Code:
Definition of Pseudo Code:
-An artificial and informal language that helps you develop algorithms
-Pseudo Code is similar to human language, convenient, and user friendly.
Basic Computer Operation an Pseudo Code:
1) Input
2) Output
3) Compute
4) Storing Value to an Identifier (Store)
5) Compare
6) Repetition (Loop)
History of C
Founder: Martin Richard
Why Using C:
-Flexibility
-Portability
-A Well Known Programming Language
-Supported With a Large Number of Libraries
C Structure :
1)
main ()
{
statements;
}
2)
main ()
{
statements;
return (0);
}
3)
void main ()
{
statements;
}
4)
int main ()
{
statements;
return (0);
}
Escape Sequences:
> \a = bell, alert, system beep
> \b = back space
> \t = horizontal tab
> \n = new line, line feed
> \v = vertical tab
> \r = carriage return
> \’ = single quote
> \” = double quote
> \\ = backslash
> \xdd = hexadecimal notation
> \ddd = octal notation
Data Type:
>In C, there are 5 data types and 4 modifiers.
Data Types:
-Character = char
-Integer = int
-Floating Point = float
-Double Floating Point = double
-Void = void
Modifiers:
-signed
-unsigned
-long
-short

Keywords:
-Keywords/reserved words are words that have special meaning to the C compiler
Example:
-auto -double -int -struct
-break -else -long -switch
-case -enum -register -typedef
-char -extern -return -union
-const -float -short -unsigned
-continue -for -signed -void
-default -goto -sizeof -volatile
-do -if -static -while
No Comments »
RSS feed for comments on this post. TrackBack URL