SlideShare a Scribd company logo
Nama : Venta Adrian Ahnaf
NIM : 10508447
Kelas : MI-9

   1. Program Mencari Nilai Minimum

      uses crt;
      type
         arrint = array[1..10] of integer;
      var
        mins :integer;
        tabint:arrint;
        nn       : integer;
        i : integer;
      function minimum(tabint : arrint ; n : integer):integer;
      var
        i:byte;
        min:byte;
      begin
                 min:=tabin2[1];
                 for i:=2 to n do
                 if min > tabin2[i] then
                 min := tabint[i];
                 minimum :=min;
      end;
      begin
      clrscr;
      write('Jumlah elemen= ');readln(nn);
      for i := 1 to nn do
      begin
                 write('elemen ke-',i,'=');readln(tabint2[i]);
      end;
      mins := minimum (tabint,nn);
      writeln('Nilai Minimum = ', mins);
      readln;
      end.




       OUTPUT:
2. Program Mencari indeks dimana Nilai minimum disimpan

    OUTPUT
uses crt;
type                                                     OUTPUT :
    arrint = array[1..10] of integer;
var
   imins :integer;
   tabint:arrint;
   nn,i :integer;
function iminimum(tabint : arrint; n:integer):integer;
var
i,imin :integer;
. begin
imin := 1;
for i:=2 to n do
    if tabint2[imin] > tabint2 [i] then
    imin :=i;
    iminimum := imin;
end;
begin
clrscr;
write('Jumlah elemen= ');readln(nn);
for i := 1 to nn do
begin
write('elemen ke-',i,'=');readln(tabint2[i]);
end;
imins := iminimum (tabint2,nn);
writeln('Indeks Minimum = ',imins);
readln;
end.
3. Program Pengurutan Ascending (terurut membesar)

uses crt;                                  for i:=min to max do
const                                        tabfrek[i]:=0;
 nmax=100;                                  for i:=1 to n do
type                                        tabfrek[tabint[i]]:=tabfrek[tabint[i]]+1;
 arrint=array[0..nmax] of integer;
var                                         j:=0;
 tabint:arrint;                             for i:=min to max do
 n:integer;                                 begin
                                             if tabfrek[i]<>0 then
procedure isidata;                           begin
var                                           for k:=1 to tabfrek[i]do
 i:integer;                                   begin
begin                                          inc(j);
 clrscr;                                       tabint[j]:=i;
  randomize;                                  end;
  for i:=1 to n do                           end;
  tabint[i]:=random(nmax);                  end;
 end;                                      end;
                                           begin
procedure tulisdata;                        clrscr;
var                                         write('jumlah elemen=');readln(n);
 i:integer;                                 isidata;
begin                                       writeln('data sebelum terurut');
 for i:=1 to n do                           tulisdata;
 write(tabint[i],' ');                      hitungurut;
end;                                        writeln;
                                            writeln;
procedure hitungurut;                       writeln('data terurut membesar');
var                                         tulisdata;
 max,min,i,j,k:integer;                     readln;
 tabfrek :arrint;                          end.
begin
 min:=tabint[1];
 for i:=1 to n do
 if tabint[i]<min then                   OUTPUT :
 min:=tabint[i];

 max:=tabint[1];
 for i:=1 to n do
 if tabint[i]>max then
 max:=tabint[i];
4. Nilai top score Bola

uses crt;                                                 gotoxy(5,j);write(name[i]);
type                                                      gotoxy(25,j);write(goal[i]);
  nama = array[1..10] of string;                          j:=j+1;
  gol = array[1..10] of integer;                          end;
var
                                                        end;
  i,n,maks,imaks,j :integer;
  name:nama;                                            begin
  goal:gol;                                               clrscr;
procedure input;                                          input;
begin                                                     view;
    write('Jumlah Data =');readln(n);                     writeln;
    for i:=1 to n do                                      writeln('Top Skor sampai saat ini');
    begin                                                 imaks := imaksimum (goal,n);
            writeln('Data ke-',i,'=');                    writeln('Nama: ',name[imaks]);
             write('Nama = ');readln(name[i]);            maks := maksimum (goal,n);
            write('Jumlah Gol = ');readln(goal[i]);
                                                          writeln('Jumlah Gol: ',maks);
    end;
end;                                                      readln;
function maksimum(bsr : gol ; nn : integer):integer;      end.
var
             i:byte;
            max:byte;
begin                                                   OUTPUT:
            max:=bsr[1];
for i:=2 to nn do
   if max < bsr[i] then
   max := bsr[i];
   maksimum :=max;
end;
function imaksimum(bsr : gol ; nn : integer):integer;
var
             i:byte;
            imax:byte;
begin
            max:=1;
for i:=2 to nn do
   if bsr[imax] < bsr[i] then
   imax := i;
   imaksimum := imax;
end;
procedure view;
begin
    clrscr;
   writeln('Top Skor Liga Tarkam 2009-2010');
    writeln('No Nama             Jumlah Gol');
    writeln('==========================');
       j:=4;
    for i:=1 to n do
    begin
    gotoxy(1,j);write(i);
Algoritma

More Related Content

What's hot

Dvst
DvstDvst
Dvst
hahaa225
 
Arrays
ArraysArrays
Statistics.cpp
Statistics.cppStatistics.cpp
Statistics.cpp
Vorname Nachname
 
Experement no 6
Experement no 6Experement no 6
Experement no 6
Smita Batti
 
C questions
C questionsC questions
C questions
mohamed sikander
 
Big omega
Big omegaBig omega
Big omega
Rajesh K Shukla
 
Tools.cpp
Tools.cppTools.cpp
Tools.cpp
Vorname Nachname
 
To Infinity & Beyond: Protocols & sequences in Node - Part 2
To Infinity & Beyond: Protocols & sequences in Node - Part 2To Infinity & Beyond: Protocols & sequences in Node - Part 2
To Infinity & Beyond: Protocols & sequences in Node - Part 2
Bahul Neel Upadhyaya
 
C Prog. - Structures
C Prog. - StructuresC Prog. - Structures
C Prog. - Structures
vinay arora
 
C Prog - Strings
C Prog - StringsC Prog - Strings
C Prog - Strings
vinay arora
 
Number
NumberNumber
Number
mussawir20
 
c-programming-using-pointers
c-programming-using-pointersc-programming-using-pointers
c-programming-using-pointers
Sushil Mishra
 
timingExercise
timingExercisetimingExercise
timingExercise
Amrita Singh
 
String in c
String in cString in c
String in c
Suneel Dogra
 
10 template code program
10 template code program10 template code program
10 template code program
Bint EL-maghrabi
 
CUDA First Programs: Computer Architecture CSE448 : UAA Alaska : Notes
CUDA First Programs: Computer Architecture CSE448 : UAA Alaska : NotesCUDA First Programs: Computer Architecture CSE448 : UAA Alaska : Notes
CUDA First Programs: Computer Architecture CSE448 : UAA Alaska : Notes
Subhajit Sahu
 
Pointer level 2
Pointer   level 2Pointer   level 2
Pointer level 2
mohamed sikander
 
Oop1
Oop1Oop1
Strings1
Strings1Strings1
Strings1
Michael Gordon
 
Class array
Class arrayClass array
Class array
nky92
 

What's hot (20)

Dvst
DvstDvst
Dvst
 
Arrays
ArraysArrays
Arrays
 
Statistics.cpp
Statistics.cppStatistics.cpp
Statistics.cpp
 
Experement no 6
Experement no 6Experement no 6
Experement no 6
 
C questions
C questionsC questions
C questions
 
Big omega
Big omegaBig omega
Big omega
 
Tools.cpp
Tools.cppTools.cpp
Tools.cpp
 
To Infinity & Beyond: Protocols & sequences in Node - Part 2
To Infinity & Beyond: Protocols & sequences in Node - Part 2To Infinity & Beyond: Protocols & sequences in Node - Part 2
To Infinity & Beyond: Protocols & sequences in Node - Part 2
 
C Prog. - Structures
C Prog. - StructuresC Prog. - Structures
C Prog. - Structures
 
C Prog - Strings
C Prog - StringsC Prog - Strings
C Prog - Strings
 
Number
NumberNumber
Number
 
c-programming-using-pointers
c-programming-using-pointersc-programming-using-pointers
c-programming-using-pointers
 
timingExercise
timingExercisetimingExercise
timingExercise
 
String in c
String in cString in c
String in c
 
10 template code program
10 template code program10 template code program
10 template code program
 
CUDA First Programs: Computer Architecture CSE448 : UAA Alaska : Notes
CUDA First Programs: Computer Architecture CSE448 : UAA Alaska : NotesCUDA First Programs: Computer Architecture CSE448 : UAA Alaska : Notes
CUDA First Programs: Computer Architecture CSE448 : UAA Alaska : Notes
 
Pointer level 2
Pointer   level 2Pointer   level 2
Pointer level 2
 
Oop1
Oop1Oop1
Oop1
 
Strings1
Strings1Strings1
Strings1
 
Class array
Class arrayClass array
Class array
 

Viewers also liked

Beyond the Indonesia the beuties of the Asian
Beyond the Indonesia the beuties of the AsianBeyond the Indonesia the beuties of the Asian
Beyond the Indonesia the beuties of the AsianVenta Adrian, S.Kom
 
Russell strutt coast to capital lep 190911
Russell strutt coast to capital lep 190911Russell strutt coast to capital lep 190911
Russell strutt coast to capital lep 190911
Philip Locke
 
Board generic presentation
Board generic presentationBoard generic presentation
Board generic presentation
Philip Locke
 
Lecture 3 - Comm Lab: Web @ ITP
Lecture 3 - Comm Lab: Web @ ITP Lecture 3 - Comm Lab: Web @ ITP
Lecture 3 - Comm Lab: Web @ ITP
yucefmerhi
 
Nh forum comms presentation v3
Nh forum comms presentation v3Nh forum comms presentation v3
Nh forum comms presentation v3
Philip Locke
 
High growth and Innovation
High growth and InnovationHigh growth and Innovation
High growth and Innovation
Philip Locke
 
Statistika "Systematic Random Sampling"
Statistika "Systematic Random Sampling"Statistika "Systematic Random Sampling"
Statistika "Systematic Random Sampling"
Venta Adrian, S.Kom
 

Viewers also liked (7)

Beyond the Indonesia the beuties of the Asian
Beyond the Indonesia the beuties of the AsianBeyond the Indonesia the beuties of the Asian
Beyond the Indonesia the beuties of the Asian
 
Russell strutt coast to capital lep 190911
Russell strutt coast to capital lep 190911Russell strutt coast to capital lep 190911
Russell strutt coast to capital lep 190911
 
Board generic presentation
Board generic presentationBoard generic presentation
Board generic presentation
 
Lecture 3 - Comm Lab: Web @ ITP
Lecture 3 - Comm Lab: Web @ ITP Lecture 3 - Comm Lab: Web @ ITP
Lecture 3 - Comm Lab: Web @ ITP
 
Nh forum comms presentation v3
Nh forum comms presentation v3Nh forum comms presentation v3
Nh forum comms presentation v3
 
High growth and Innovation
High growth and InnovationHigh growth and Innovation
High growth and Innovation
 
Statistika "Systematic Random Sampling"
Statistika "Systematic Random Sampling"Statistika "Systematic Random Sampling"
Statistika "Systematic Random Sampling"
 

Similar to Algoritma

Contoh program buble sort dalam pascal
Contoh program buble sort dalam pascalContoh program buble sort dalam pascal
Contoh program buble sort dalam pascal
Simon Patabang
 
Program pengurutan data
Program pengurutan dataProgram pengurutan data
Program pengurutan data
linda_rosalina
 
Contoh Program buble sort dari belakang
Contoh Program buble sort dari belakangContoh Program buble sort dari belakang
Contoh Program buble sort dari belakang
Simon Patabang
 
Program Pengurutan Data Dengan Buble Sort
Program Pengurutan Data Dengan Buble SortProgram Pengurutan Data Dengan Buble Sort
Program Pengurutan Data Dengan Buble Sort
Simon Patabang
 
2Bytesprog2 course_2014_c1_sets
2Bytesprog2 course_2014_c1_sets2Bytesprog2 course_2014_c1_sets
2Bytesprog2 course_2014_c1_sets
kinan keshkeh
 
2Bytesprog2 course_2014_c1_sets
2Bytesprog2 course_2014_c1_sets2Bytesprog2 course_2014_c1_sets
2Bytesprog2 course_2014_c1_sets
kinan keshkeh
 
Daapracticals 111105084852-phpapp02
Daapracticals 111105084852-phpapp02Daapracticals 111105084852-phpapp02
Daapracticals 111105084852-phpapp02
Er Ritu Aggarwal
 
DAA Lab File C Programs
DAA Lab File C ProgramsDAA Lab File C Programs
DAA Lab File C Programs
Kandarp Tiwari
 
week-4x
week-4xweek-4x
Kumpulan contoh-program-pascal
Kumpulan contoh-program-pascalKumpulan contoh-program-pascal
Kumpulan contoh-program-pascal
rey25
 
Kumpulan program pascal
Kumpulan program pascalKumpulan program pascal
Kumpulan program pascal
Widi Darmalaksana
 
Ada file
Ada fileAda file
Ada file
Kumar Gaurav
 
Tugas1
Tugas1Tugas1
Tugas1
Av Ri
 
ECE-PYTHON.docx
ECE-PYTHON.docxECE-PYTHON.docx
ECE-PYTHON.docx
Chaithanya89350
 
PCA-2 Programming and Solving 2nd Sem.pdf
PCA-2 Programming and Solving 2nd Sem.pdfPCA-2 Programming and Solving 2nd Sem.pdf
PCA-2 Programming and Solving 2nd Sem.pdf
Ashutoshprasad27
 
PCA-2 Programming and Solving 2nd Sem.docx
PCA-2 Programming and Solving 2nd Sem.docxPCA-2 Programming and Solving 2nd Sem.docx
PCA-2 Programming and Solving 2nd Sem.docx
Ashutoshprasad27
 
Cpds lab
Cpds labCpds lab
Kumpulan contoh-program-pascal-121209073936-phpapp01
Kumpulan contoh-program-pascal-121209073936-phpapp01Kumpulan contoh-program-pascal-121209073936-phpapp01
Kumpulan contoh-program-pascal-121209073936-phpapp01
Defina Iskandar
 
New microsoft office word document
New microsoft office word documentNew microsoft office word document
New microsoft office word document
Syed Umair
 
array.ppt
array.pptarray.ppt
array.ppt
DeveshDewangan5
 

Similar to Algoritma (20)

Contoh program buble sort dalam pascal
Contoh program buble sort dalam pascalContoh program buble sort dalam pascal
Contoh program buble sort dalam pascal
 
Program pengurutan data
Program pengurutan dataProgram pengurutan data
Program pengurutan data
 
Contoh Program buble sort dari belakang
Contoh Program buble sort dari belakangContoh Program buble sort dari belakang
Contoh Program buble sort dari belakang
 
Program Pengurutan Data Dengan Buble Sort
Program Pengurutan Data Dengan Buble SortProgram Pengurutan Data Dengan Buble Sort
Program Pengurutan Data Dengan Buble Sort
 
2Bytesprog2 course_2014_c1_sets
2Bytesprog2 course_2014_c1_sets2Bytesprog2 course_2014_c1_sets
2Bytesprog2 course_2014_c1_sets
 
2Bytesprog2 course_2014_c1_sets
2Bytesprog2 course_2014_c1_sets2Bytesprog2 course_2014_c1_sets
2Bytesprog2 course_2014_c1_sets
 
Daapracticals 111105084852-phpapp02
Daapracticals 111105084852-phpapp02Daapracticals 111105084852-phpapp02
Daapracticals 111105084852-phpapp02
 
DAA Lab File C Programs
DAA Lab File C ProgramsDAA Lab File C Programs
DAA Lab File C Programs
 
week-4x
week-4xweek-4x
week-4x
 
Kumpulan contoh-program-pascal
Kumpulan contoh-program-pascalKumpulan contoh-program-pascal
Kumpulan contoh-program-pascal
 
Kumpulan program pascal
Kumpulan program pascalKumpulan program pascal
Kumpulan program pascal
 
Ada file
Ada fileAda file
Ada file
 
Tugas1
Tugas1Tugas1
Tugas1
 
ECE-PYTHON.docx
ECE-PYTHON.docxECE-PYTHON.docx
ECE-PYTHON.docx
 
PCA-2 Programming and Solving 2nd Sem.pdf
PCA-2 Programming and Solving 2nd Sem.pdfPCA-2 Programming and Solving 2nd Sem.pdf
PCA-2 Programming and Solving 2nd Sem.pdf
 
PCA-2 Programming and Solving 2nd Sem.docx
PCA-2 Programming and Solving 2nd Sem.docxPCA-2 Programming and Solving 2nd Sem.docx
PCA-2 Programming and Solving 2nd Sem.docx
 
Cpds lab
Cpds labCpds lab
Cpds lab
 
Kumpulan contoh-program-pascal-121209073936-phpapp01
Kumpulan contoh-program-pascal-121209073936-phpapp01Kumpulan contoh-program-pascal-121209073936-phpapp01
Kumpulan contoh-program-pascal-121209073936-phpapp01
 
New microsoft office word document
New microsoft office word documentNew microsoft office word document
New microsoft office word document
 
array.ppt
array.pptarray.ppt
array.ppt
 

More from Venta Adrian, S.Kom

Makalah Sistem Informasi Rental Komik
Makalah Sistem Informasi Rental KomikMakalah Sistem Informasi Rental Komik
Makalah Sistem Informasi Rental Komik
Venta Adrian, S.Kom
 
OSI "Open System Interconnection"
OSI "Open System Interconnection"OSI "Open System Interconnection"
OSI "Open System Interconnection"
Venta Adrian, S.Kom
 
sistem Informasi Nilai UAS SMA 4 Cimahi
sistem Informasi Nilai UAS SMA 4 Cimahisistem Informasi Nilai UAS SMA 4 Cimahi
sistem Informasi Nilai UAS SMA 4 Cimahi
Venta Adrian, S.Kom
 
Artikel Kepemimpinan Partisipatif
Artikel Kepemimpinan PartisipatifArtikel Kepemimpinan Partisipatif
Artikel Kepemimpinan Partisipatif
Venta Adrian, S.Kom
 
Sistem Informasi Pembayaran Rek. Listrik
Sistem Informasi Pembayaran Rek. ListrikSistem Informasi Pembayaran Rek. Listrik
Sistem Informasi Pembayaran Rek. Listrik
Venta Adrian, S.Kom
 
proses bisnis
proses bisnisproses bisnis
proses bisnis
Venta Adrian, S.Kom
 
Internet
InternetInternet

More from Venta Adrian, S.Kom (7)

Makalah Sistem Informasi Rental Komik
Makalah Sistem Informasi Rental KomikMakalah Sistem Informasi Rental Komik
Makalah Sistem Informasi Rental Komik
 
OSI "Open System Interconnection"
OSI "Open System Interconnection"OSI "Open System Interconnection"
OSI "Open System Interconnection"
 
sistem Informasi Nilai UAS SMA 4 Cimahi
sistem Informasi Nilai UAS SMA 4 Cimahisistem Informasi Nilai UAS SMA 4 Cimahi
sistem Informasi Nilai UAS SMA 4 Cimahi
 
Artikel Kepemimpinan Partisipatif
Artikel Kepemimpinan PartisipatifArtikel Kepemimpinan Partisipatif
Artikel Kepemimpinan Partisipatif
 
Sistem Informasi Pembayaran Rek. Listrik
Sistem Informasi Pembayaran Rek. ListrikSistem Informasi Pembayaran Rek. Listrik
Sistem Informasi Pembayaran Rek. Listrik
 
proses bisnis
proses bisnisproses bisnis
proses bisnis
 
Internet
InternetInternet
Internet
 

Recently uploaded

Essentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FMEEssentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FME
Safe Software
 
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
SOFTTECHHUB
 
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
Neo4j
 
National Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practicesNational Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practices
Quotidiano Piemontese
 
Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?
Nexer Digital
 
Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
KatiaHIMEUR1
 
How to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptxHow to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptx
danishmna97
 
Artificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopmentArtificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopment
Octavian Nadolu
 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
DanBrown980551
 
Removing Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software FuzzingRemoving Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software Fuzzing
Aftab Hussain
 
Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
Ana-Maria Mihalceanu
 
“I’m still / I’m still / Chaining from the Block”
“I’m still / I’m still / Chaining from the Block”“I’m still / I’m still / Chaining from the Block”
“I’m still / I’m still / Chaining from the Block”
Claudio Di Ciccio
 
20240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 202420240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 2024
Matthew Sinclair
 
20240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 202420240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 2024
Matthew Sinclair
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance
 
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
名前 です男
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
Kari Kakkonen
 
Video Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the FutureVideo Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the Future
Alpen-Adria-Universität
 
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Albert Hoitingh
 
Introduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - CybersecurityIntroduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - Cybersecurity
mikeeftimakis1
 

Recently uploaded (20)

Essentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FMEEssentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FME
 
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
 
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
 
National Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practicesNational Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practices
 
Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?
 
Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
 
How to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptxHow to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptx
 
Artificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopmentArtificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopment
 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
 
Removing Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software FuzzingRemoving Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software Fuzzing
 
Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
 
“I’m still / I’m still / Chaining from the Block”
“I’m still / I’m still / Chaining from the Block”“I’m still / I’m still / Chaining from the Block”
“I’m still / I’m still / Chaining from the Block”
 
20240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 202420240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 2024
 
20240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 202420240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 2024
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
 
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
 
Video Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the FutureVideo Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the Future
 
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
 
Introduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - CybersecurityIntroduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - Cybersecurity
 

Algoritma

  • 1. Nama : Venta Adrian Ahnaf NIM : 10508447 Kelas : MI-9 1. Program Mencari Nilai Minimum uses crt; type arrint = array[1..10] of integer; var mins :integer; tabint:arrint; nn : integer; i : integer; function minimum(tabint : arrint ; n : integer):integer; var i:byte; min:byte; begin min:=tabin2[1]; for i:=2 to n do if min > tabin2[i] then min := tabint[i]; minimum :=min; end; begin clrscr; write('Jumlah elemen= ');readln(nn); for i := 1 to nn do begin write('elemen ke-',i,'=');readln(tabint2[i]); end; mins := minimum (tabint,nn); writeln('Nilai Minimum = ', mins); readln; end. OUTPUT:
  • 2. 2. Program Mencari indeks dimana Nilai minimum disimpan OUTPUT uses crt; type OUTPUT : arrint = array[1..10] of integer; var imins :integer; tabint:arrint; nn,i :integer; function iminimum(tabint : arrint; n:integer):integer; var i,imin :integer; . begin imin := 1; for i:=2 to n do if tabint2[imin] > tabint2 [i] then imin :=i; iminimum := imin; end; begin clrscr; write('Jumlah elemen= ');readln(nn); for i := 1 to nn do begin write('elemen ke-',i,'=');readln(tabint2[i]); end; imins := iminimum (tabint2,nn); writeln('Indeks Minimum = ',imins); readln; end.
  • 3. 3. Program Pengurutan Ascending (terurut membesar) uses crt; for i:=min to max do const tabfrek[i]:=0; nmax=100; for i:=1 to n do type tabfrek[tabint[i]]:=tabfrek[tabint[i]]+1; arrint=array[0..nmax] of integer; var j:=0; tabint:arrint; for i:=min to max do n:integer; begin if tabfrek[i]<>0 then procedure isidata; begin var for k:=1 to tabfrek[i]do i:integer; begin begin inc(j); clrscr; tabint[j]:=i; randomize; end; for i:=1 to n do end; tabint[i]:=random(nmax); end; end; end; begin procedure tulisdata; clrscr; var write('jumlah elemen=');readln(n); i:integer; isidata; begin writeln('data sebelum terurut'); for i:=1 to n do tulisdata; write(tabint[i],' '); hitungurut; end; writeln; writeln; procedure hitungurut; writeln('data terurut membesar'); var tulisdata; max,min,i,j,k:integer; readln; tabfrek :arrint; end. begin min:=tabint[1]; for i:=1 to n do if tabint[i]<min then OUTPUT : min:=tabint[i]; max:=tabint[1]; for i:=1 to n do if tabint[i]>max then max:=tabint[i];
  • 4. 4. Nilai top score Bola uses crt; gotoxy(5,j);write(name[i]); type gotoxy(25,j);write(goal[i]); nama = array[1..10] of string; j:=j+1; gol = array[1..10] of integer; end; var end; i,n,maks,imaks,j :integer; name:nama; begin goal:gol; clrscr; procedure input; input; begin view; write('Jumlah Data =');readln(n); writeln; for i:=1 to n do writeln('Top Skor sampai saat ini'); begin imaks := imaksimum (goal,n); writeln('Data ke-',i,'='); writeln('Nama: ',name[imaks]); write('Nama = ');readln(name[i]); maks := maksimum (goal,n); write('Jumlah Gol = ');readln(goal[i]); writeln('Jumlah Gol: ',maks); end; end; readln; function maksimum(bsr : gol ; nn : integer):integer; end. var i:byte; max:byte; begin OUTPUT: max:=bsr[1]; for i:=2 to nn do if max < bsr[i] then max := bsr[i]; maksimum :=max; end; function imaksimum(bsr : gol ; nn : integer):integer; var i:byte; imax:byte; begin max:=1; for i:=2 to nn do if bsr[imax] < bsr[i] then imax := i; imaksimum := imax; end; procedure view; begin clrscr; writeln('Top Skor Liga Tarkam 2009-2010'); writeln('No Nama Jumlah Gol'); writeln('=========================='); j:=4; for i:=1 to n do begin gotoxy(1,j);write(i);