SlideShare uma empresa Scribd logo
1 de 55
Baixar para ler offline
Adam Mukharil Bachtiar
English Class
Informatics Engineering 2011
Algorithms and Programming
Record
Steps of the Day
Let’s Start
Definition of
Record
Application of
Record
Array of
Record
Definition of Record
All About Record
BackgroundofRecord
I need a program that similar with array
program but can be composed with
different data types.
WhatisRecord
Data structure that contains of several fields
(more than one) which has different data types.
Lecturer 1 Lecturer 2
NIP Name Address NIP Name Address
IlustrationofRecord Records were named Lecturer 1 and Lecture 2,
consists of 3 fields each of its.
Field
Name of Record
Lecturer 1 Lecturer 2
NIP Name Address NIP Name Address
IlustrationofRecord
Field
Name of Record
If you want to access NIP from Lecturer 1, yu
can do with Lecturer1.NIP
Application of Record
Definition and Structures of Record
StepsinRecord
• Declare record
• Initialize record
• Accessing record (input, operate,
and output)
Record Declaration (Algorithm)
Kamus:
type
TipeRecord = record
< field_1 : TipeData_1,
field_2 : TipeData_2,
..
field_n :TipeData_n >
endrecord
NamaRecord : TipeRecord
Example of Record Declaration (Algorithm)
Kamus:
type
RecordDosen = record
< NIP : integer,
Nama : string,
Gaji : real >
endrecord
Dosen : RecordDosen
Record Declaration (PASCAL)
type
TipeRecord = record
field_1 : TipeData_1;
field_2 : TipeData_2;
..
field_n :TipeData_n;
end;
var
NamaRecord : TipeRecord;
Example of Record Declaration (PASCAL)
type
RecordDosen = record
NIP : longint;
Nama : string;
Gaji : double;
end;
var
Dosen: RecordDosen;
Record Initialization (Algorithm)
Format:
NamaRecord.NamaField  DefaultValue
Example:
Dosen.NIP  0
Dosen.Nama  ‘’
Dosen.Gaji  0
Record Initialization (Pascal)
Format:
NamaRecord.NamaField := DefaultValue;
Example:
Dosen.NIP := 0;
Dosen.Nama := ‘’;
Dosen.Gaji := 0;
Input Value to Record (Algorithm)
Format:
input(NamaRecord.NamaField)
Example:
input(Dosen.NIP)
input(Dosen.Nama)
input(Dosen.Gaji)
Input Value to Record (Pascal)
Format:
readln(NamaRecord.NamaField);
Example:
readln(Dosen.NIP);
readln(Dosen.Nama);
readln(Dosen.Gaji);
Output Value from Record (Algorithm)
Format:
output(NamaRecord.NamaField)
Example:
output(Dosen.NIP)
output(Dosen.Nama)
output(Dosen.Gaji)
Output Value from Record (Pascal)
Format:
writeln(NamaRecord.NamaField);
Example:
writeln(Dosen.NIP);
writeln(Dosen.Nama);
writeln(Dosen.Gaji);
Example of Record (Algorithm)
1
2
3
4
5
6
7
8
9
10
11
12
13
Algoritma RecordDosen
{I.S.: Dideklarasikan dua buah record dosen}
{F.S.: Menampilkan isi record}
Kamus:
type
RecordDosen = record
< NIP : integer,
Nama : string,
Gaji : real >
endrecord
Dosen1,Dosen2 : RecordDosen
Example of Record (Algorithm)
14
15
16
17
18
19
20
21
22
23
24
25
26
27
Algoritma:
{input record}
input(Dosen1.NIP)
input(Dosen1.Nama)
input(Dosen1.Gaji)
input(Dosen2.NIP)
input(Dosen2.Nama)
input(Dosen2.Gaji)
{Operasi field record}
Dosen1.Gaji  Dosen1.Gaji + 1000000 {Tambah THR}
Dosen2.Gaji  Dosen2.Gaji – 100000 (Karena telat}
Example of Record (Algorithm)
28
29
30
31
32
33
34
35
{Output record}
output(Dosen1.NIP)
output(Dosen1.Nama)
output(Dosen1.Gaji)
output(Dosen2.NIP)
output(Dosen2.Nama)
output(Dosen2.Gaji)
Example of Record (Pascal)
1
2
3
4
5
6
7
8
9
10
11
12
13
program RecordDosenIF;
uses crt;
type
RecordDosen=record
NIP:longint;
Nama:string;
Gaji:double;
end;
var
Dosen1,Dosen2:RecordDosen;
Example of Record (Pascal)
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{input record}
write('Masukkan NIP dosen pertama : ');
readln(Dosen1.NIP);
write('Masukkan Nama dosen pertama : ');
readln(Dosen1.Nama);
write('Masukkan Gaji dosen pertama : ');
readln(Dosen1.Gaji);
writeln();
write('Masukkan NIP dosen kedua : ');
readln(Dosen2.NIP);
write('Masukkan Nama dosen kedua : ');
readln(Dosen2.Nama);
write('Masukkan Gaji dosen kedua : ');
Example of Record (Pascal)
28
29
30
31
32
33
34
35
37
38
39
40
readln(Dosen2.Gaji);
{Operasi pada field record}
Dosen1.Gaji:=Dosen1.Gaji+1000000; {karena THR}
Dosen2.Gaji:=Dosen2.Gaji-100000; {karena telat}
{output record}
writeln();
writeln('NIP dosen pertama = ',Dosen1.NIP);
writeln('Nama dosen pertama = ',Dosen1.Nama);
writeln('Gaji dosen pertama = ',Dosen1.Gaji:0:2);
Example of Record (Pascal)
41
42
43
44
45
46
47
48
49
writeln();
writeln('NIP dosen kedua = ',Dosen2.NIP);
writeln('Nama dosen kedua = ',Dosen2.Nama);
writeln('Gaji dosen kedua = ',Dosen2.Gaji:0:2);
writeln();
write('Tekan sembarag tombol untuk menutup...');
readkey();
end.
Example of Record (Pascal)
54
55
56
57
58
59
60
61
jumlah2:=jumlah2+bil2[i];
end;
writeln('Jumlah elemen array bil 2 = ',jumlah2);
writeln();
write('Tekan sembarang tombol untuk menutup...');
readkey();
end.
Array of Record
Definition and Structures of Array of Record
BackgroundofArrayofRecord
I have lecturer’s record but i need
lots of variables to declare
lecturers in program.
WhatisArrayofRecord
Record that declare using array’s form.
It can be made using all ways of array’s
declaration (three ways).
[1] [2]
NIP Name Address NIP Name Address
IlustrationofArrayofRecord Had been declared an array that had Lecturer
type consists of 3 fields each of element.
To access this i call Lecturer [1].NIP
Lecturer
Array of Record Declaration (Algorithm)
Kamus:
const
maks = value
type
TipeRecord = record
< field_1 : TipeData_1,
field_2 : TipeData_2,
..
field_n : TipeData_n >
endrecord
NamaArrayofRecord = array [1..maks] of TipeRecord
NamaRecord : NamaArrayofRecord
Example of Array of Record Declaration (Algorithm)
Kamus:
const
maks = 20
type
DosenIF = record
< NIP : integer,
Nama : string,
Gaji : real >
endrecord
ArrayDosenIF = array [1..maks] of DosenIF
Dosen: ArrayDosenIF
Array of Record Declaration (Pascal)
const
maks = value;
type
TipeRecord = record
field_1 : TipeData_1;
field_2 : TipeData_2;
..
field_n : TipeData_n;
end;
NamaArrayofRecord = array [1..maks] of TipeRecord;
var
NamaRecord : NamaArrayofRecord;
Example of Array of Record Declaration (Pascal)
const
maks = 20;
type
DosenIF = record
NIP : longint;
Nama : string;
Gaji : double;
end;
ArrayDosenIF = array [1..maks] of DosenIF;
var
Dosen: ArrayDosenIF;
Record Initialization (Algorithm)
Format:
NamaRecord[indeks].NamaField  DefaultValue
Example:
Dosen[1].NIP  0
Dosen[1].Nama  ‘’
Dosen[1].Gaji  0
Record Initialization (Pascal)
Format:
NamaRecord[indeks].NamaField := DefaultValue;
Example:
Dosen[1].NIP := 0;
Dosen[1].Nama := ‘’;
Dosen[1].Gaji := 0;
Input Value to Array of Record (Algorithm)
Format:
input(NamaRecord[indeks].NamaField)
Example:
input(Dosen[1].NIP)
input(Dosen[1].Nama)
input(Dosen[1].Gaji)
Input Value to Array of Record (Pascal)
Format:
readln(NamaRecord[indeks].NamaField);
Example:
readln(Dosen[1].NIP);
readln(Dosen[1].Nama);
readln(Dosen[1].Gaji);
Output Value from Array from Record (Algorithm)
Format:
output(NamaRecord[indeks].NamaField)
Example:
output(Dosen[1].NIP)
output(Dosen[1].Nama)
output(Dosen[1].Gaji)
Output Value from Array from Record (Pascal)
Format:
writeln(NamaRecord[indeks].NamaField);
Example:
writeln(Dosen[1].NIP);
writeln(Dosen[1].Nama);
writeln(Dosen[1].Gaji);
Example of Array of Record (Algorithm)
1
2
3
4
5
6
7
8
9
10
11
12
13
Algoritma ArrayRecordMakananMinuman
{I.S : didefinisikan dua array of record food and drink}
{F.S : menampilkan array of record beserta operasinya}
const
maks=3;
type
RecordMakanan = record
< KodeMakanan:integer,
NamaMakanan:string,
HargaMakanan:real,
DiskonMakanan:real >
endrecord
Example of Array of Record (Algorithm)
14
15
16
17
18
19
20
21
22
23
24
25
26
27
RecordMinuman = record
< KodeMinuman:integer,
NamaMinuman:string,
HargaMinuman:real,
DiskonMinuman:real >
endrecord
{array of record}
ArrayMakanan = array [1..maks] of RecordMakanan;
ArrayMinuman = array [1..maks] of RecordMinuman;
Makanan:ArrayMakanan;
Minuman:ArrayMinuman;
TotalHarga:real;
i:integer;
Example of Array of Record (Algorithm)
28
29
30
31
32
33
34
35
37
38
39
40
41
42
Algoritma:
{input record}
for i  1 to maks do
input(Makanan[i].KodeMakanan)
input(Makanan[i].NamaMakanan);
input(Makanan[i].HargaMakanan)
input(Makanan[i].DiskonMakanan)
endfor
for i  1 to maks do
input(Minuman[i].KodeMinuman)
input(Minuman[i].NamaMinuman)
input(Minuman[i].HargaMinuman)
input(Minuman[i].DiskonMinuman)
endfor
Example of Array of Record (Algorithm)
43
44
45
46
47
48
49
50
51
52
53
{perhitungan total harga}
TotalHarga  0
for i  1 to maks do
TotalHarga  TotalHarga+(Makanan[i].HargaMakanan
(Makanan[i].HargaMakanan*Makanan[i].DiskonMakanan))
+(Minuman[i].HargaMinuman-
(Minuman[i].HargaMinuman*Minuman[i].DiskonMinuman))
endfor
{output record}
for i  1 to maks do
output(Makanan[i].KodeMakanan)
output(Makanan[i].NamaMakanan)
output(Makanan[i].HargaMakanan)
output(Makanan[i].DiskonMakanan)
endfor
Example of Array of Record (Algorithm)
54
55
56
57
58
59
60
61
for i  1 to maks do
output(Minuman[i].KodeMinuman)
output(Minuman[i].NamaMinuman)
output(Minuman[i].HargaMinuman)
output(Minuman[i].DiskonMinuman)
endfor
output(TotalHarga);
Example of Array of Record (Pascal)
1
2
3
4
5
6
7
8
9
10
11
12
13
program MenuMakananMinuman;
uses crt;
const
maks=3;
type
RecordMakanan = record
KodeMakanan:integer;
NamaMakanan:string;
HargaMakanan:real;
DiskonMakanan:real;
end;
Example of Array of Record (Pascal)
14
15
16
17
18
19
20
21
22
23
24
25
26
27
RecordMinuman = record
KodeMinuman:integer;
NamaMinuman:string;
HargaMinuman:real;
DiskonMinuman:real;
end;
{array of record}
ArrayMakanan=array [1..maks] of RecordMakanan;
ArrayMinuman=array [1..maks] of RecordMinuman;
var
Makanan:ArrayMakanan;
Minuman:ArrayMinuman;
TotalHarga:real;
i:integer;
Example of Array of Record (Pascal)
28
29
30
31
32
33
34
35
37
38
39
40
41
begin
{input record}
for i:=1 to maks do
begin
write('Masukkan kode makanan ',i,' : ');
readln(Makanan[i].KodeMakanan);
write('Masukkan nama makanan ',i,' : ');
readln(Makanan[i].NamaMakanan);
write('Masukkan harga makanan ',i,' : ');
readln(Makanan[i].HargaMakanan:0:2);
write('Masukkan diskon makanan ',i,' : ');
readln(Makanan[i].DiskonMakanan:0:2);
end;
Example of Array of Record (Pascal)
42
43
44
45
46
47
48
49
50
51
52
53
54
writeln();
for i:=1 to maks do
begin
write('Masukkan kode Minuman ',i,' : ');
readln(Minuman[i].KodeMinuman);
write('Masukkan nama Minuman ',i,' : ');
readln(Minuman[i].NamaMinuman);
write('Masukkan harga Minuman ',i,' : ');
readln(Minuman[i].HargaMinuman:0:2);
write('Masukkan diskon Minuman ',i,' : ');
readln(Minuman[i].DiskonMinuman:0:2);
end;
Example of Array of Record (Pascal)
55
56
57
58
59
60
61
62
63
{perhitungan total harga}
TotalHarga:=0;
for i:=1 to maks do
TotalHarga:=TotalHarga+(Makanan[i].HargaMakanan
(Makanan[i].HargaMakanan*Makanan[i].DiskonMakanan))
+(Minuman[i].HargaMinuman-
(Minuman[i].HargaMinuman*Minuman[i].DiskonMinuman));
{output record}
clrscr();
for i:=1 to maks do
begin
writeln('Kode makanan ',i,' adalah ',Makanan[i].KodeMakanan);
writeln('Nama makanan ',i,' adalah ',Makanan[i].NamaMakanan);
Example of Array of Record (Pascal)
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
writeln('Harga makanan ',i,' adalah ',Makanan[i].HargaMakanan:0:2);
writeln('Diskon makanan ',i,' adalah ',Makanan[i].DiskonMakanan:0:2);
end;
writeln();
for i:=1 to maks do
begin
writeln('Kode Minuman ',i,' adalah ',Minuman[i].KodeMinuman);
writeln('Nama Minuman ',i,' adalah ',Minuman[i].NamaMinuman);
writeln('Harga Minuman ',i,' adalah ',Minuman[i].HargaMinuman);
writeln('Diskon Minuman ',i,' adalah ',Minuman[i].DiskonMinuman);
end;
writeln();
writeln('Total harga yang harus dibayar adalah : Rp. ',TotalHarga:0:2);
writeln();
write('Tekan sembarang tombol untuk menutup...');
readkey();
end.
Contact Person:
Adam Mukharil Bachtiar
Informatics Engineering UNIKOM
Jalan Dipati Ukur Nomor. 112-114 Bandung 40132
Email: adfbipotter@gmail.com
Blog: http://adfbipotter.wordpress.com
Copyright © Adam Mukharil Bachtiar 2011

Mais conteúdo relacionado

Mais procurados (10)

DBMS 5 | MySQL Practice List - HR Schema
DBMS 5 | MySQL Practice List - HR SchemaDBMS 5 | MySQL Practice List - HR Schema
DBMS 5 | MySQL Practice List - HR Schema
 
Insertion sort algorithm power point presentation
Insertion  sort algorithm power point presentation Insertion  sort algorithm power point presentation
Insertion sort algorithm power point presentation
 
Heapsort quick sort
Heapsort quick sortHeapsort quick sort
Heapsort quick sort
 
Python list
Python listPython list
Python list
 
Python lambda functions with filter, map & reduce function
Python lambda functions with filter, map & reduce functionPython lambda functions with filter, map & reduce function
Python lambda functions with filter, map & reduce function
 
DBMS 4 | MySQL - DDL & DML Commands
DBMS 4 | MySQL - DDL & DML CommandsDBMS 4 | MySQL - DDL & DML Commands
DBMS 4 | MySQL - DDL & DML Commands
 
Selection sort 1
Selection sort 1Selection sort 1
Selection sort 1
 
Guided image filter
Guided image filterGuided image filter
Guided image filter
 
Functions in python
Functions in python Functions in python
Functions in python
 
DBMS 2 | Entity Relationship Model
DBMS 2 | Entity Relationship ModelDBMS 2 | Entity Relationship Model
DBMS 2 | Entity Relationship Model
 

Destaque

Algorithm and Programming (Branching Structure)
Algorithm and Programming (Branching Structure)Algorithm and Programming (Branching Structure)
Algorithm and Programming (Branching Structure)Adam Mukharil Bachtiar
 
Algorithm and Programming (Introduction of Algorithms)
Algorithm and Programming (Introduction of Algorithms)Algorithm and Programming (Introduction of Algorithms)
Algorithm and Programming (Introduction of Algorithms)Adam Mukharil Bachtiar
 
Algorithm and Programming (Looping Structure)
Algorithm and Programming (Looping Structure)Algorithm and Programming (Looping Structure)
Algorithm and Programming (Looping Structure)Adam Mukharil Bachtiar
 
оператор присваивания и процедуры ввода и вывода
оператор присваивания и процедуры ввода и выводаоператор присваивания и процедуры ввода и вывода
оператор присваивания и процедуры ввода и выводаliza2209
 
HAZWOPER 40hr Training
HAZWOPER 40hr TrainingHAZWOPER 40hr Training
HAZWOPER 40hr TrainingStan Wenninger
 
Orcid datacite autoupdate_cruse
Orcid datacite autoupdate_cruseOrcid datacite autoupdate_cruse
Orcid datacite autoupdate_cruseORCID, Inc
 
Guía De La Torre Del Conocimiento... Adriana Carolina Supelano
Guía De La Torre Del Conocimiento... Adriana Carolina SupelanoGuía De La Torre Del Conocimiento... Adriana Carolina Supelano
Guía De La Torre Del Conocimiento... Adriana Carolina SupelanoAdriana Carolina Supelano Niño
 
добавление таблиц в текстовый документ
добавление таблиц в текстовый документдобавление таблиц в текстовый документ
добавление таблиц в текстовый документliza2209
 
Mid Level Counterintelligence Analyst - Afghanistan
Mid Level Counterintelligence Analyst - AfghanistanMid Level Counterintelligence Analyst - Afghanistan
Mid Level Counterintelligence Analyst - AfghanistanAngelene Green
 
Minicurso - Teste de software (CACSI 2015)
Minicurso - Teste de software (CACSI 2015)Minicurso - Teste de software (CACSI 2015)
Minicurso - Teste de software (CACSI 2015)Vanilton Pinheiro
 
La cabra pirinenca
La cabra pirinencaLa cabra pirinenca
La cabra pirinencaalex_mascu
 
Algorithm and Programming (Introduction of dev pascal, data type, value, and ...
Algorithm and Programming (Introduction of dev pascal, data type, value, and ...Algorithm and Programming (Introduction of dev pascal, data type, value, and ...
Algorithm and Programming (Introduction of dev pascal, data type, value, and ...Adam Mukharil Bachtiar
 
Algorithm and Programming (Sequential Structure)
Algorithm and Programming (Sequential Structure)Algorithm and Programming (Sequential Structure)
Algorithm and Programming (Sequential Structure)Adam Mukharil Bachtiar
 
Sodani Giulio. Ruolo della RM nella caratterizzazione delle lesioni metastati...
Sodani Giulio. Ruolo della RM nella caratterizzazione delle lesioni metastati...Sodani Giulio. Ruolo della RM nella caratterizzazione delle lesioni metastati...
Sodani Giulio. Ruolo della RM nella caratterizzazione delle lesioni metastati...Gianfranco Tammaro
 
Algorithm and Programming (Procedure and Function)
Algorithm and Programming (Procedure and Function)Algorithm and Programming (Procedure and Function)
Algorithm and Programming (Procedure and Function)Adam Mukharil Bachtiar
 
Data Management (Data Mining Klasifikasi)
Data Management (Data Mining Klasifikasi)Data Management (Data Mining Klasifikasi)
Data Management (Data Mining Klasifikasi)Adam Mukharil Bachtiar
 
A history of science (volume 1)
A history of science (volume 1) A history of science (volume 1)
A history of science (volume 1) Dipoceanov Esrever
 

Destaque (20)

Algorithm and Programming (Branching Structure)
Algorithm and Programming (Branching Structure)Algorithm and Programming (Branching Structure)
Algorithm and Programming (Branching Structure)
 
Algorithm and Programming (Sorting)
Algorithm and Programming (Sorting)Algorithm and Programming (Sorting)
Algorithm and Programming (Sorting)
 
Algorithm and Programming (Searching)
Algorithm and Programming (Searching)Algorithm and Programming (Searching)
Algorithm and Programming (Searching)
 
Algorithm and Programming (Array)
Algorithm and Programming (Array)Algorithm and Programming (Array)
Algorithm and Programming (Array)
 
Algorithm and Programming (Introduction of Algorithms)
Algorithm and Programming (Introduction of Algorithms)Algorithm and Programming (Introduction of Algorithms)
Algorithm and Programming (Introduction of Algorithms)
 
Algorithm and Programming (Looping Structure)
Algorithm and Programming (Looping Structure)Algorithm and Programming (Looping Structure)
Algorithm and Programming (Looping Structure)
 
оператор присваивания и процедуры ввода и вывода
оператор присваивания и процедуры ввода и выводаоператор присваивания и процедуры ввода и вывода
оператор присваивания и процедуры ввода и вывода
 
HAZWOPER 40hr Training
HAZWOPER 40hr TrainingHAZWOPER 40hr Training
HAZWOPER 40hr Training
 
Orcid datacite autoupdate_cruse
Orcid datacite autoupdate_cruseOrcid datacite autoupdate_cruse
Orcid datacite autoupdate_cruse
 
Guía De La Torre Del Conocimiento... Adriana Carolina Supelano
Guía De La Torre Del Conocimiento... Adriana Carolina SupelanoGuía De La Torre Del Conocimiento... Adriana Carolina Supelano
Guía De La Torre Del Conocimiento... Adriana Carolina Supelano
 
добавление таблиц в текстовый документ
добавление таблиц в текстовый документдобавление таблиц в текстовый документ
добавление таблиц в текстовый документ
 
Mid Level Counterintelligence Analyst - Afghanistan
Mid Level Counterintelligence Analyst - AfghanistanMid Level Counterintelligence Analyst - Afghanistan
Mid Level Counterintelligence Analyst - Afghanistan
 
Minicurso - Teste de software (CACSI 2015)
Minicurso - Teste de software (CACSI 2015)Minicurso - Teste de software (CACSI 2015)
Minicurso - Teste de software (CACSI 2015)
 
La cabra pirinenca
La cabra pirinencaLa cabra pirinenca
La cabra pirinenca
 
Algorithm and Programming (Introduction of dev pascal, data type, value, and ...
Algorithm and Programming (Introduction of dev pascal, data type, value, and ...Algorithm and Programming (Introduction of dev pascal, data type, value, and ...
Algorithm and Programming (Introduction of dev pascal, data type, value, and ...
 
Algorithm and Programming (Sequential Structure)
Algorithm and Programming (Sequential Structure)Algorithm and Programming (Sequential Structure)
Algorithm and Programming (Sequential Structure)
 
Sodani Giulio. Ruolo della RM nella caratterizzazione delle lesioni metastati...
Sodani Giulio. Ruolo della RM nella caratterizzazione delle lesioni metastati...Sodani Giulio. Ruolo della RM nella caratterizzazione delle lesioni metastati...
Sodani Giulio. Ruolo della RM nella caratterizzazione delle lesioni metastati...
 
Algorithm and Programming (Procedure and Function)
Algorithm and Programming (Procedure and Function)Algorithm and Programming (Procedure and Function)
Algorithm and Programming (Procedure and Function)
 
Data Management (Data Mining Klasifikasi)
Data Management (Data Mining Klasifikasi)Data Management (Data Mining Klasifikasi)
Data Management (Data Mining Klasifikasi)
 
A history of science (volume 1)
A history of science (volume 1) A history of science (volume 1)
A history of science (volume 1)
 

Semelhante a Algorithm and Programming (Record)

ABAP Programming Overview
ABAP Programming OverviewABAP Programming Overview
ABAP Programming Overviewsapdocs. info
 
Chapter 1abapprogrammingoverview-091205081953-phpapp01
Chapter 1abapprogrammingoverview-091205081953-phpapp01Chapter 1abapprogrammingoverview-091205081953-phpapp01
Chapter 1abapprogrammingoverview-091205081953-phpapp01tabish
 
chapter-1abapprogrammingoverview-091205081953-phpapp01
chapter-1abapprogrammingoverview-091205081953-phpapp01chapter-1abapprogrammingoverview-091205081953-phpapp01
chapter-1abapprogrammingoverview-091205081953-phpapp01tabish
 
Chapter 1 Abap Programming Overview
Chapter 1 Abap Programming OverviewChapter 1 Abap Programming Overview
Chapter 1 Abap Programming OverviewAshish Kumar
 
Abapprogrammingoverview 090715081305-phpapp02
Abapprogrammingoverview 090715081305-phpapp02Abapprogrammingoverview 090715081305-phpapp02
Abapprogrammingoverview 090715081305-phpapp02tabish
 
Abapprogrammingoverview 090715081305-phpapp02
Abapprogrammingoverview 090715081305-phpapp02Abapprogrammingoverview 090715081305-phpapp02
Abapprogrammingoverview 090715081305-phpapp02wingsrai
 
Stranger in These Parts. A Hired Gun in the JS Corral (JSConf US 2012)
Stranger in These Parts. A Hired Gun in the JS Corral (JSConf US 2012)Stranger in These Parts. A Hired Gun in the JS Corral (JSConf US 2012)
Stranger in These Parts. A Hired Gun in the JS Corral (JSConf US 2012)Igalia
 
LLVM Backend Porting
LLVM Backend PortingLLVM Backend Porting
LLVM Backend PortingShiva Chen
 
Clean code
Clean codeClean code
Clean codeTony Vu
 
Data Structure and Algorithms
Data Structure and Algorithms Data Structure and Algorithms
Data Structure and Algorithms ManishPrajapati78
 
Advanced procedures in assembly language Full chapter ppt
Advanced procedures in assembly language Full chapter pptAdvanced procedures in assembly language Full chapter ppt
Advanced procedures in assembly language Full chapter pptMuhammad Sikandar Mustafa
 
Native interfaces for R
Native interfaces for RNative interfaces for R
Native interfaces for RSeth Falcon
 
The Ring programming language version 1.5.3 book - Part 35 of 184
The Ring programming language version 1.5.3 book - Part 35 of 184The Ring programming language version 1.5.3 book - Part 35 of 184
The Ring programming language version 1.5.3 book - Part 35 of 184Mahmoud Samir Fayed
 
Parsers Combinators in Scala, Ilya @lambdamix Kliuchnikov
Parsers Combinators in Scala, Ilya @lambdamix KliuchnikovParsers Combinators in Scala, Ilya @lambdamix Kliuchnikov
Parsers Combinators in Scala, Ilya @lambdamix KliuchnikovVasil Remeniuk
 
Array assignment
Array assignmentArray assignment
Array assignmentAhmad Kamal
 
Chapter Eight(1)
Chapter Eight(1)Chapter Eight(1)
Chapter Eight(1)bolovv
 

Semelhante a Algorithm and Programming (Record) (20)

ABAP Programming Overview
ABAP Programming OverviewABAP Programming Overview
ABAP Programming Overview
 
Chapter 1abapprogrammingoverview-091205081953-phpapp01
Chapter 1abapprogrammingoverview-091205081953-phpapp01Chapter 1abapprogrammingoverview-091205081953-phpapp01
Chapter 1abapprogrammingoverview-091205081953-phpapp01
 
chapter-1abapprogrammingoverview-091205081953-phpapp01
chapter-1abapprogrammingoverview-091205081953-phpapp01chapter-1abapprogrammingoverview-091205081953-phpapp01
chapter-1abapprogrammingoverview-091205081953-phpapp01
 
Chapter 1 Abap Programming Overview
Chapter 1 Abap Programming OverviewChapter 1 Abap Programming Overview
Chapter 1 Abap Programming Overview
 
Abapprogrammingoverview 090715081305-phpapp02
Abapprogrammingoverview 090715081305-phpapp02Abapprogrammingoverview 090715081305-phpapp02
Abapprogrammingoverview 090715081305-phpapp02
 
Abapprogrammingoverview 090715081305-phpapp02
Abapprogrammingoverview 090715081305-phpapp02Abapprogrammingoverview 090715081305-phpapp02
Abapprogrammingoverview 090715081305-phpapp02
 
Stranger in These Parts. A Hired Gun in the JS Corral (JSConf US 2012)
Stranger in These Parts. A Hired Gun in the JS Corral (JSConf US 2012)Stranger in These Parts. A Hired Gun in the JS Corral (JSConf US 2012)
Stranger in These Parts. A Hired Gun in the JS Corral (JSConf US 2012)
 
LLVM Backend Porting
LLVM Backend PortingLLVM Backend Porting
LLVM Backend Porting
 
cp05.pptx
cp05.pptxcp05.pptx
cp05.pptx
 
Clean code
Clean codeClean code
Clean code
 
Data Structure and Algorithms
Data Structure and Algorithms Data Structure and Algorithms
Data Structure and Algorithms
 
Advanced procedures in assembly language Full chapter ppt
Advanced procedures in assembly language Full chapter pptAdvanced procedures in assembly language Full chapter ppt
Advanced procedures in assembly language Full chapter ppt
 
[ASM]Lab6
[ASM]Lab6[ASM]Lab6
[ASM]Lab6
 
Native interfaces for R
Native interfaces for RNative interfaces for R
Native interfaces for R
 
The Ring programming language version 1.5.3 book - Part 35 of 184
The Ring programming language version 1.5.3 book - Part 35 of 184The Ring programming language version 1.5.3 book - Part 35 of 184
The Ring programming language version 1.5.3 book - Part 35 of 184
 
Parsers Combinators in Scala, Ilya @lambdamix Kliuchnikov
Parsers Combinators in Scala, Ilya @lambdamix KliuchnikovParsers Combinators in Scala, Ilya @lambdamix Kliuchnikov
Parsers Combinators in Scala, Ilya @lambdamix Kliuchnikov
 
Biopython: Overview, State of the Art and Outlook
Biopython: Overview, State of the Art and OutlookBiopython: Overview, State of the Art and Outlook
Biopython: Overview, State of the Art and Outlook
 
Stored procedure
Stored procedureStored procedure
Stored procedure
 
Array assignment
Array assignmentArray assignment
Array assignment
 
Chapter Eight(1)
Chapter Eight(1)Chapter Eight(1)
Chapter Eight(1)
 

Mais de Adam Mukharil Bachtiar

Materi 8 - Data Mining Association Rule.pdf
Materi 8 - Data Mining Association Rule.pdfMateri 8 - Data Mining Association Rule.pdf
Materi 8 - Data Mining Association Rule.pdfAdam Mukharil Bachtiar
 
Clean Code and Design Pattern - Meaningful Names
Clean Code and Design Pattern - Meaningful NamesClean Code and Design Pattern - Meaningful Names
Clean Code and Design Pattern - Meaningful NamesAdam Mukharil Bachtiar
 
Data Mining Klasifikasi (Updated 30 Desember 2020)
Data Mining Klasifikasi (Updated 30 Desember 2020)Data Mining Klasifikasi (Updated 30 Desember 2020)
Data Mining Klasifikasi (Updated 30 Desember 2020)Adam Mukharil Bachtiar
 
Analisis Algoritma - Strategi Algoritma Dynamic Programming
Analisis Algoritma - Strategi Algoritma Dynamic ProgrammingAnalisis Algoritma - Strategi Algoritma Dynamic Programming
Analisis Algoritma - Strategi Algoritma Dynamic ProgrammingAdam Mukharil Bachtiar
 
Analisis Algoritma - Strategi Algoritma Divide and Conquer
Analisis Algoritma - Strategi Algoritma Divide and ConquerAnalisis Algoritma - Strategi Algoritma Divide and Conquer
Analisis Algoritma - Strategi Algoritma Divide and ConquerAdam Mukharil Bachtiar
 
Analisis Algoritma - Strategi Algoritma Greedy
Analisis Algoritma - Strategi Algoritma GreedyAnalisis Algoritma - Strategi Algoritma Greedy
Analisis Algoritma - Strategi Algoritma GreedyAdam Mukharil Bachtiar
 
Analisis Algoritma - Penerapan Strategi Algoritma Brute Force
Analisis Algoritma - Penerapan Strategi Algoritma Brute ForceAnalisis Algoritma - Penerapan Strategi Algoritma Brute Force
Analisis Algoritma - Penerapan Strategi Algoritma Brute ForceAdam Mukharil Bachtiar
 
Analisis Algoritma - Strategi Algoritma Brute Force
Analisis Algoritma - Strategi Algoritma Brute ForceAnalisis Algoritma - Strategi Algoritma Brute Force
Analisis Algoritma - Strategi Algoritma Brute ForceAdam Mukharil Bachtiar
 
Analisis Algoritma - Kelas-kelas Dasar Efisiensi Algoritma
Analisis Algoritma - Kelas-kelas Dasar Efisiensi AlgoritmaAnalisis Algoritma - Kelas-kelas Dasar Efisiensi Algoritma
Analisis Algoritma - Kelas-kelas Dasar Efisiensi AlgoritmaAdam Mukharil Bachtiar
 
Analisis Algoritma - Teorema Notasi Asimptotik
Analisis Algoritma - Teorema Notasi AsimptotikAnalisis Algoritma - Teorema Notasi Asimptotik
Analisis Algoritma - Teorema Notasi AsimptotikAdam Mukharil Bachtiar
 
Analisis Algoritma - Notasi Asimptotik
Analisis Algoritma - Notasi AsimptotikAnalisis Algoritma - Notasi Asimptotik
Analisis Algoritma - Notasi AsimptotikAdam Mukharil Bachtiar
 

Mais de Adam Mukharil Bachtiar (20)

Materi 8 - Data Mining Association Rule.pdf
Materi 8 - Data Mining Association Rule.pdfMateri 8 - Data Mining Association Rule.pdf
Materi 8 - Data Mining Association Rule.pdf
 
Clean Code - Formatting Code
Clean Code - Formatting CodeClean Code - Formatting Code
Clean Code - Formatting Code
 
Clean Code - Clean Comments
Clean Code - Clean CommentsClean Code - Clean Comments
Clean Code - Clean Comments
 
Clean Method
Clean MethodClean Method
Clean Method
 
Clean Code and Design Pattern - Meaningful Names
Clean Code and Design Pattern - Meaningful NamesClean Code and Design Pattern - Meaningful Names
Clean Code and Design Pattern - Meaningful Names
 
Model Driven Software Development
Model Driven Software DevelopmentModel Driven Software Development
Model Driven Software Development
 
Scrum: How to Implement
Scrum: How to ImplementScrum: How to Implement
Scrum: How to Implement
 
Pengujian Perangkat Lunak
Pengujian Perangkat LunakPengujian Perangkat Lunak
Pengujian Perangkat Lunak
 
Data Mining Clustering
Data Mining ClusteringData Mining Clustering
Data Mining Clustering
 
Data Mining Klasifikasi (Updated 30 Desember 2020)
Data Mining Klasifikasi (Updated 30 Desember 2020)Data Mining Klasifikasi (Updated 30 Desember 2020)
Data Mining Klasifikasi (Updated 30 Desember 2020)
 
Analisis Algoritma - Strategi Algoritma Dynamic Programming
Analisis Algoritma - Strategi Algoritma Dynamic ProgrammingAnalisis Algoritma - Strategi Algoritma Dynamic Programming
Analisis Algoritma - Strategi Algoritma Dynamic Programming
 
Analisis Algoritma - Strategi Algoritma Divide and Conquer
Analisis Algoritma - Strategi Algoritma Divide and ConquerAnalisis Algoritma - Strategi Algoritma Divide and Conquer
Analisis Algoritma - Strategi Algoritma Divide and Conquer
 
Analisis Algoritma - Strategi Algoritma Greedy
Analisis Algoritma - Strategi Algoritma GreedyAnalisis Algoritma - Strategi Algoritma Greedy
Analisis Algoritma - Strategi Algoritma Greedy
 
Analisis Algoritma - Penerapan Strategi Algoritma Brute Force
Analisis Algoritma - Penerapan Strategi Algoritma Brute ForceAnalisis Algoritma - Penerapan Strategi Algoritma Brute Force
Analisis Algoritma - Penerapan Strategi Algoritma Brute Force
 
Analisis Algoritma - Strategi Algoritma Brute Force
Analisis Algoritma - Strategi Algoritma Brute ForceAnalisis Algoritma - Strategi Algoritma Brute Force
Analisis Algoritma - Strategi Algoritma Brute Force
 
Analisis Algoritma - Kelas-kelas Dasar Efisiensi Algoritma
Analisis Algoritma - Kelas-kelas Dasar Efisiensi AlgoritmaAnalisis Algoritma - Kelas-kelas Dasar Efisiensi Algoritma
Analisis Algoritma - Kelas-kelas Dasar Efisiensi Algoritma
 
Analisis Algoritma - Teorema Notasi Asimptotik
Analisis Algoritma - Teorema Notasi AsimptotikAnalisis Algoritma - Teorema Notasi Asimptotik
Analisis Algoritma - Teorema Notasi Asimptotik
 
Analisis Algoritma - Notasi Asimptotik
Analisis Algoritma - Notasi AsimptotikAnalisis Algoritma - Notasi Asimptotik
Analisis Algoritma - Notasi Asimptotik
 
Activity Diagram
Activity DiagramActivity Diagram
Activity Diagram
 
UML dan Use Case View
UML dan Use Case ViewUML dan Use Case View
UML dan Use Case View
 

Último

Folding Cheat Sheet #4 - fourth in a series
Folding Cheat Sheet #4 - fourth in a seriesFolding Cheat Sheet #4 - fourth in a series
Folding Cheat Sheet #4 - fourth in a seriesPhilip Schwarz
 
Balasore Best It Company|| Top 10 IT Company || Balasore Software company Odisha
Balasore Best It Company|| Top 10 IT Company || Balasore Software company OdishaBalasore Best It Company|| Top 10 IT Company || Balasore Software company Odisha
Balasore Best It Company|| Top 10 IT Company || Balasore Software company Odishasmiwainfosol
 
How to submit a standout Adobe Champion Application
How to submit a standout Adobe Champion ApplicationHow to submit a standout Adobe Champion Application
How to submit a standout Adobe Champion ApplicationBradBedford3
 
Powering Real-Time Decisions with Continuous Data Streams
Powering Real-Time Decisions with Continuous Data StreamsPowering Real-Time Decisions with Continuous Data Streams
Powering Real-Time Decisions with Continuous Data StreamsSafe Software
 
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样umasea
 
Unveiling Design Patterns: A Visual Guide with UML Diagrams
Unveiling Design Patterns: A Visual Guide with UML DiagramsUnveiling Design Patterns: A Visual Guide with UML Diagrams
Unveiling Design Patterns: A Visual Guide with UML DiagramsAhmed Mohamed
 
VK Business Profile - provides IT solutions and Web Development
VK Business Profile - provides IT solutions and Web DevelopmentVK Business Profile - provides IT solutions and Web Development
VK Business Profile - provides IT solutions and Web Developmentvyaparkranti
 
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptxKnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptxTier1 app
 
Odoo 14 - eLearning Module In Odoo 14 Enterprise
Odoo 14 - eLearning Module In Odoo 14 EnterpriseOdoo 14 - eLearning Module In Odoo 14 Enterprise
Odoo 14 - eLearning Module In Odoo 14 Enterprisepreethippts
 
Sending Calendar Invites on SES and Calendarsnack.pdf
Sending Calendar Invites on SES and Calendarsnack.pdfSending Calendar Invites on SES and Calendarsnack.pdf
Sending Calendar Invites on SES and Calendarsnack.pdf31events.com
 
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024StefanoLambiase
 
Intelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalmIntelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalmSujith Sukumaran
 
Ahmed Motair CV April 2024 (Senior SW Developer)
Ahmed Motair CV April 2024 (Senior SW Developer)Ahmed Motair CV April 2024 (Senior SW Developer)
Ahmed Motair CV April 2024 (Senior SW Developer)Ahmed Mater
 
Automate your Kamailio Test Calls - Kamailio World 2024
Automate your Kamailio Test Calls - Kamailio World 2024Automate your Kamailio Test Calls - Kamailio World 2024
Automate your Kamailio Test Calls - Kamailio World 2024Andreas Granig
 
PREDICTING RIVER WATER QUALITY ppt presentation
PREDICTING  RIVER  WATER QUALITY  ppt presentationPREDICTING  RIVER  WATER QUALITY  ppt presentation
PREDICTING RIVER WATER QUALITY ppt presentationvaddepallysandeep122
 
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte Germany
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte GermanySuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte Germany
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte GermanyChristoph Pohl
 
Implementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with AzureImplementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with AzureDinusha Kumarasiri
 
Precise and Complete Requirements? An Elusive Goal
Precise and Complete Requirements? An Elusive GoalPrecise and Complete Requirements? An Elusive Goal
Precise and Complete Requirements? An Elusive GoalLionel Briand
 
Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...
Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...
Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...Angel Borroy López
 

Último (20)

Folding Cheat Sheet #4 - fourth in a series
Folding Cheat Sheet #4 - fourth in a seriesFolding Cheat Sheet #4 - fourth in a series
Folding Cheat Sheet #4 - fourth in a series
 
Odoo Development Company in India | Devintelle Consulting Service
Odoo Development Company in India | Devintelle Consulting ServiceOdoo Development Company in India | Devintelle Consulting Service
Odoo Development Company in India | Devintelle Consulting Service
 
Balasore Best It Company|| Top 10 IT Company || Balasore Software company Odisha
Balasore Best It Company|| Top 10 IT Company || Balasore Software company OdishaBalasore Best It Company|| Top 10 IT Company || Balasore Software company Odisha
Balasore Best It Company|| Top 10 IT Company || Balasore Software company Odisha
 
How to submit a standout Adobe Champion Application
How to submit a standout Adobe Champion ApplicationHow to submit a standout Adobe Champion Application
How to submit a standout Adobe Champion Application
 
Powering Real-Time Decisions with Continuous Data Streams
Powering Real-Time Decisions with Continuous Data StreamsPowering Real-Time Decisions with Continuous Data Streams
Powering Real-Time Decisions with Continuous Data Streams
 
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样
办理学位证(UQ文凭证书)昆士兰大学毕业证成绩单原版一模一样
 
Unveiling Design Patterns: A Visual Guide with UML Diagrams
Unveiling Design Patterns: A Visual Guide with UML DiagramsUnveiling Design Patterns: A Visual Guide with UML Diagrams
Unveiling Design Patterns: A Visual Guide with UML Diagrams
 
VK Business Profile - provides IT solutions and Web Development
VK Business Profile - provides IT solutions and Web DevelopmentVK Business Profile - provides IT solutions and Web Development
VK Business Profile - provides IT solutions and Web Development
 
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptxKnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
 
Odoo 14 - eLearning Module In Odoo 14 Enterprise
Odoo 14 - eLearning Module In Odoo 14 EnterpriseOdoo 14 - eLearning Module In Odoo 14 Enterprise
Odoo 14 - eLearning Module In Odoo 14 Enterprise
 
Sending Calendar Invites on SES and Calendarsnack.pdf
Sending Calendar Invites on SES and Calendarsnack.pdfSending Calendar Invites on SES and Calendarsnack.pdf
Sending Calendar Invites on SES and Calendarsnack.pdf
 
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
 
Intelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalmIntelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalm
 
Ahmed Motair CV April 2024 (Senior SW Developer)
Ahmed Motair CV April 2024 (Senior SW Developer)Ahmed Motair CV April 2024 (Senior SW Developer)
Ahmed Motair CV April 2024 (Senior SW Developer)
 
Automate your Kamailio Test Calls - Kamailio World 2024
Automate your Kamailio Test Calls - Kamailio World 2024Automate your Kamailio Test Calls - Kamailio World 2024
Automate your Kamailio Test Calls - Kamailio World 2024
 
PREDICTING RIVER WATER QUALITY ppt presentation
PREDICTING  RIVER  WATER QUALITY  ppt presentationPREDICTING  RIVER  WATER QUALITY  ppt presentation
PREDICTING RIVER WATER QUALITY ppt presentation
 
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte Germany
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte GermanySuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte Germany
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte Germany
 
Implementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with AzureImplementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with Azure
 
Precise and Complete Requirements? An Elusive Goal
Precise and Complete Requirements? An Elusive GoalPrecise and Complete Requirements? An Elusive Goal
Precise and Complete Requirements? An Elusive Goal
 
Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...
Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...
Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...
 

Algorithm and Programming (Record)

  • 1. Adam Mukharil Bachtiar English Class Informatics Engineering 2011 Algorithms and Programming Record
  • 2. Steps of the Day Let’s Start Definition of Record Application of Record Array of Record
  • 4. BackgroundofRecord I need a program that similar with array program but can be composed with different data types.
  • 5. WhatisRecord Data structure that contains of several fields (more than one) which has different data types.
  • 6. Lecturer 1 Lecturer 2 NIP Name Address NIP Name Address IlustrationofRecord Records were named Lecturer 1 and Lecture 2, consists of 3 fields each of its. Field Name of Record
  • 7. Lecturer 1 Lecturer 2 NIP Name Address NIP Name Address IlustrationofRecord Field Name of Record If you want to access NIP from Lecturer 1, yu can do with Lecturer1.NIP
  • 8. Application of Record Definition and Structures of Record
  • 9. StepsinRecord • Declare record • Initialize record • Accessing record (input, operate, and output)
  • 10. Record Declaration (Algorithm) Kamus: type TipeRecord = record < field_1 : TipeData_1, field_2 : TipeData_2, .. field_n :TipeData_n > endrecord NamaRecord : TipeRecord
  • 11. Example of Record Declaration (Algorithm) Kamus: type RecordDosen = record < NIP : integer, Nama : string, Gaji : real > endrecord Dosen : RecordDosen
  • 12. Record Declaration (PASCAL) type TipeRecord = record field_1 : TipeData_1; field_2 : TipeData_2; .. field_n :TipeData_n; end; var NamaRecord : TipeRecord;
  • 13. Example of Record Declaration (PASCAL) type RecordDosen = record NIP : longint; Nama : string; Gaji : double; end; var Dosen: RecordDosen;
  • 14. Record Initialization (Algorithm) Format: NamaRecord.NamaField  DefaultValue Example: Dosen.NIP  0 Dosen.Nama  ‘’ Dosen.Gaji  0
  • 15. Record Initialization (Pascal) Format: NamaRecord.NamaField := DefaultValue; Example: Dosen.NIP := 0; Dosen.Nama := ‘’; Dosen.Gaji := 0;
  • 16. Input Value to Record (Algorithm) Format: input(NamaRecord.NamaField) Example: input(Dosen.NIP) input(Dosen.Nama) input(Dosen.Gaji)
  • 17. Input Value to Record (Pascal) Format: readln(NamaRecord.NamaField); Example: readln(Dosen.NIP); readln(Dosen.Nama); readln(Dosen.Gaji);
  • 18. Output Value from Record (Algorithm) Format: output(NamaRecord.NamaField) Example: output(Dosen.NIP) output(Dosen.Nama) output(Dosen.Gaji)
  • 19. Output Value from Record (Pascal) Format: writeln(NamaRecord.NamaField); Example: writeln(Dosen.NIP); writeln(Dosen.Nama); writeln(Dosen.Gaji);
  • 20.
  • 21. Example of Record (Algorithm) 1 2 3 4 5 6 7 8 9 10 11 12 13 Algoritma RecordDosen {I.S.: Dideklarasikan dua buah record dosen} {F.S.: Menampilkan isi record} Kamus: type RecordDosen = record < NIP : integer, Nama : string, Gaji : real > endrecord Dosen1,Dosen2 : RecordDosen
  • 22. Example of Record (Algorithm) 14 15 16 17 18 19 20 21 22 23 24 25 26 27 Algoritma: {input record} input(Dosen1.NIP) input(Dosen1.Nama) input(Dosen1.Gaji) input(Dosen2.NIP) input(Dosen2.Nama) input(Dosen2.Gaji) {Operasi field record} Dosen1.Gaji  Dosen1.Gaji + 1000000 {Tambah THR} Dosen2.Gaji  Dosen2.Gaji – 100000 (Karena telat}
  • 23. Example of Record (Algorithm) 28 29 30 31 32 33 34 35 {Output record} output(Dosen1.NIP) output(Dosen1.Nama) output(Dosen1.Gaji) output(Dosen2.NIP) output(Dosen2.Nama) output(Dosen2.Gaji)
  • 24. Example of Record (Pascal) 1 2 3 4 5 6 7 8 9 10 11 12 13 program RecordDosenIF; uses crt; type RecordDosen=record NIP:longint; Nama:string; Gaji:double; end; var Dosen1,Dosen2:RecordDosen;
  • 25. Example of Record (Pascal) 14 15 16 17 18 19 20 21 22 23 24 25 26 27 {input record} write('Masukkan NIP dosen pertama : '); readln(Dosen1.NIP); write('Masukkan Nama dosen pertama : '); readln(Dosen1.Nama); write('Masukkan Gaji dosen pertama : '); readln(Dosen1.Gaji); writeln(); write('Masukkan NIP dosen kedua : '); readln(Dosen2.NIP); write('Masukkan Nama dosen kedua : '); readln(Dosen2.Nama); write('Masukkan Gaji dosen kedua : ');
  • 26. Example of Record (Pascal) 28 29 30 31 32 33 34 35 37 38 39 40 readln(Dosen2.Gaji); {Operasi pada field record} Dosen1.Gaji:=Dosen1.Gaji+1000000; {karena THR} Dosen2.Gaji:=Dosen2.Gaji-100000; {karena telat} {output record} writeln(); writeln('NIP dosen pertama = ',Dosen1.NIP); writeln('Nama dosen pertama = ',Dosen1.Nama); writeln('Gaji dosen pertama = ',Dosen1.Gaji:0:2);
  • 27. Example of Record (Pascal) 41 42 43 44 45 46 47 48 49 writeln(); writeln('NIP dosen kedua = ',Dosen2.NIP); writeln('Nama dosen kedua = ',Dosen2.Nama); writeln('Gaji dosen kedua = ',Dosen2.Gaji:0:2); writeln(); write('Tekan sembarag tombol untuk menutup...'); readkey(); end.
  • 28. Example of Record (Pascal) 54 55 56 57 58 59 60 61 jumlah2:=jumlah2+bil2[i]; end; writeln('Jumlah elemen array bil 2 = ',jumlah2); writeln(); write('Tekan sembarang tombol untuk menutup...'); readkey(); end.
  • 29. Array of Record Definition and Structures of Array of Record
  • 30. BackgroundofArrayofRecord I have lecturer’s record but i need lots of variables to declare lecturers in program.
  • 31. WhatisArrayofRecord Record that declare using array’s form. It can be made using all ways of array’s declaration (three ways).
  • 32. [1] [2] NIP Name Address NIP Name Address IlustrationofArrayofRecord Had been declared an array that had Lecturer type consists of 3 fields each of element. To access this i call Lecturer [1].NIP Lecturer
  • 33. Array of Record Declaration (Algorithm) Kamus: const maks = value type TipeRecord = record < field_1 : TipeData_1, field_2 : TipeData_2, .. field_n : TipeData_n > endrecord NamaArrayofRecord = array [1..maks] of TipeRecord NamaRecord : NamaArrayofRecord
  • 34. Example of Array of Record Declaration (Algorithm) Kamus: const maks = 20 type DosenIF = record < NIP : integer, Nama : string, Gaji : real > endrecord ArrayDosenIF = array [1..maks] of DosenIF Dosen: ArrayDosenIF
  • 35. Array of Record Declaration (Pascal) const maks = value; type TipeRecord = record field_1 : TipeData_1; field_2 : TipeData_2; .. field_n : TipeData_n; end; NamaArrayofRecord = array [1..maks] of TipeRecord; var NamaRecord : NamaArrayofRecord;
  • 36. Example of Array of Record Declaration (Pascal) const maks = 20; type DosenIF = record NIP : longint; Nama : string; Gaji : double; end; ArrayDosenIF = array [1..maks] of DosenIF; var Dosen: ArrayDosenIF;
  • 37. Record Initialization (Algorithm) Format: NamaRecord[indeks].NamaField  DefaultValue Example: Dosen[1].NIP  0 Dosen[1].Nama  ‘’ Dosen[1].Gaji  0
  • 38. Record Initialization (Pascal) Format: NamaRecord[indeks].NamaField := DefaultValue; Example: Dosen[1].NIP := 0; Dosen[1].Nama := ‘’; Dosen[1].Gaji := 0;
  • 39. Input Value to Array of Record (Algorithm) Format: input(NamaRecord[indeks].NamaField) Example: input(Dosen[1].NIP) input(Dosen[1].Nama) input(Dosen[1].Gaji)
  • 40. Input Value to Array of Record (Pascal) Format: readln(NamaRecord[indeks].NamaField); Example: readln(Dosen[1].NIP); readln(Dosen[1].Nama); readln(Dosen[1].Gaji);
  • 41. Output Value from Array from Record (Algorithm) Format: output(NamaRecord[indeks].NamaField) Example: output(Dosen[1].NIP) output(Dosen[1].Nama) output(Dosen[1].Gaji)
  • 42. Output Value from Array from Record (Pascal) Format: writeln(NamaRecord[indeks].NamaField); Example: writeln(Dosen[1].NIP); writeln(Dosen[1].Nama); writeln(Dosen[1].Gaji);
  • 43.
  • 44. Example of Array of Record (Algorithm) 1 2 3 4 5 6 7 8 9 10 11 12 13 Algoritma ArrayRecordMakananMinuman {I.S : didefinisikan dua array of record food and drink} {F.S : menampilkan array of record beserta operasinya} const maks=3; type RecordMakanan = record < KodeMakanan:integer, NamaMakanan:string, HargaMakanan:real, DiskonMakanan:real > endrecord
  • 45. Example of Array of Record (Algorithm) 14 15 16 17 18 19 20 21 22 23 24 25 26 27 RecordMinuman = record < KodeMinuman:integer, NamaMinuman:string, HargaMinuman:real, DiskonMinuman:real > endrecord {array of record} ArrayMakanan = array [1..maks] of RecordMakanan; ArrayMinuman = array [1..maks] of RecordMinuman; Makanan:ArrayMakanan; Minuman:ArrayMinuman; TotalHarga:real; i:integer;
  • 46. Example of Array of Record (Algorithm) 28 29 30 31 32 33 34 35 37 38 39 40 41 42 Algoritma: {input record} for i  1 to maks do input(Makanan[i].KodeMakanan) input(Makanan[i].NamaMakanan); input(Makanan[i].HargaMakanan) input(Makanan[i].DiskonMakanan) endfor for i  1 to maks do input(Minuman[i].KodeMinuman) input(Minuman[i].NamaMinuman) input(Minuman[i].HargaMinuman) input(Minuman[i].DiskonMinuman) endfor
  • 47. Example of Array of Record (Algorithm) 43 44 45 46 47 48 49 50 51 52 53 {perhitungan total harga} TotalHarga  0 for i  1 to maks do TotalHarga  TotalHarga+(Makanan[i].HargaMakanan (Makanan[i].HargaMakanan*Makanan[i].DiskonMakanan)) +(Minuman[i].HargaMinuman- (Minuman[i].HargaMinuman*Minuman[i].DiskonMinuman)) endfor {output record} for i  1 to maks do output(Makanan[i].KodeMakanan) output(Makanan[i].NamaMakanan) output(Makanan[i].HargaMakanan) output(Makanan[i].DiskonMakanan) endfor
  • 48. Example of Array of Record (Algorithm) 54 55 56 57 58 59 60 61 for i  1 to maks do output(Minuman[i].KodeMinuman) output(Minuman[i].NamaMinuman) output(Minuman[i].HargaMinuman) output(Minuman[i].DiskonMinuman) endfor output(TotalHarga);
  • 49. Example of Array of Record (Pascal) 1 2 3 4 5 6 7 8 9 10 11 12 13 program MenuMakananMinuman; uses crt; const maks=3; type RecordMakanan = record KodeMakanan:integer; NamaMakanan:string; HargaMakanan:real; DiskonMakanan:real; end;
  • 50. Example of Array of Record (Pascal) 14 15 16 17 18 19 20 21 22 23 24 25 26 27 RecordMinuman = record KodeMinuman:integer; NamaMinuman:string; HargaMinuman:real; DiskonMinuman:real; end; {array of record} ArrayMakanan=array [1..maks] of RecordMakanan; ArrayMinuman=array [1..maks] of RecordMinuman; var Makanan:ArrayMakanan; Minuman:ArrayMinuman; TotalHarga:real; i:integer;
  • 51. Example of Array of Record (Pascal) 28 29 30 31 32 33 34 35 37 38 39 40 41 begin {input record} for i:=1 to maks do begin write('Masukkan kode makanan ',i,' : '); readln(Makanan[i].KodeMakanan); write('Masukkan nama makanan ',i,' : '); readln(Makanan[i].NamaMakanan); write('Masukkan harga makanan ',i,' : '); readln(Makanan[i].HargaMakanan:0:2); write('Masukkan diskon makanan ',i,' : '); readln(Makanan[i].DiskonMakanan:0:2); end;
  • 52. Example of Array of Record (Pascal) 42 43 44 45 46 47 48 49 50 51 52 53 54 writeln(); for i:=1 to maks do begin write('Masukkan kode Minuman ',i,' : '); readln(Minuman[i].KodeMinuman); write('Masukkan nama Minuman ',i,' : '); readln(Minuman[i].NamaMinuman); write('Masukkan harga Minuman ',i,' : '); readln(Minuman[i].HargaMinuman:0:2); write('Masukkan diskon Minuman ',i,' : '); readln(Minuman[i].DiskonMinuman:0:2); end;
  • 53. Example of Array of Record (Pascal) 55 56 57 58 59 60 61 62 63 {perhitungan total harga} TotalHarga:=0; for i:=1 to maks do TotalHarga:=TotalHarga+(Makanan[i].HargaMakanan (Makanan[i].HargaMakanan*Makanan[i].DiskonMakanan)) +(Minuman[i].HargaMinuman- (Minuman[i].HargaMinuman*Minuman[i].DiskonMinuman)); {output record} clrscr(); for i:=1 to maks do begin writeln('Kode makanan ',i,' adalah ',Makanan[i].KodeMakanan); writeln('Nama makanan ',i,' adalah ',Makanan[i].NamaMakanan);
  • 54. Example of Array of Record (Pascal) 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 writeln('Harga makanan ',i,' adalah ',Makanan[i].HargaMakanan:0:2); writeln('Diskon makanan ',i,' adalah ',Makanan[i].DiskonMakanan:0:2); end; writeln(); for i:=1 to maks do begin writeln('Kode Minuman ',i,' adalah ',Minuman[i].KodeMinuman); writeln('Nama Minuman ',i,' adalah ',Minuman[i].NamaMinuman); writeln('Harga Minuman ',i,' adalah ',Minuman[i].HargaMinuman); writeln('Diskon Minuman ',i,' adalah ',Minuman[i].DiskonMinuman); end; writeln(); writeln('Total harga yang harus dibayar adalah : Rp. ',TotalHarga:0:2); writeln(); write('Tekan sembarang tombol untuk menutup...'); readkey(); end.
  • 55. Contact Person: Adam Mukharil Bachtiar Informatics Engineering UNIKOM Jalan Dipati Ukur Nomor. 112-114 Bandung 40132 Email: adfbipotter@gmail.com Blog: http://adfbipotter.wordpress.com Copyright © Adam Mukharil Bachtiar 2011