1 Pertemuan 1 Pengenalan Komputer dan Algoritma Matakuliah: T0016/Algoritma dan Pemrograman Tahun: 2005 Versi: versi 2.

Slides:



Advertisements
Presentasi serupa
Pseudocode & Flowchart
Advertisements

1 Algoritma Bahasa Pemrograman dan Bab 1.1. Pengertian Algoritma.
Organisasi Komputer BAB II Pengantar Organisasi Komputer.
Function.
INPUT / OUTPUT.
BAB 3 – Pandangan Tingkat Paling Atas Fungsi dan Interkoneksi Komputer
2. Introduction to Algorithm and Programming
PEMROGRAMAN TERSTRUKTUR
Fungsi Lecture 7. Motivation Complexity of programming problem  more difficult to consider the solution as a whole  clue: dividing the problem into.
Pengantar Teknologi Informasi
Hardware Hardware Merupakan komponen-komponen fisik peralatan yang membentuk suatu sistem komputer, serta peralatan-peralatan lain yang mendukung komputer.
1 Pertemuan 1 Introduction Matakuliah: sistem Operasi Tahun: 2010.
1 Flowchart Techniques Is: A graphical representation of the sequence of operations in an information system program The plan to be followed when the program.
Organisasi dan Arsitektur Komputer
Pendahuluan Algoritma Pengolahan Paralel S1-TI Prepared by: MT Wilson.
Perancangan Database Pertemuan 07 s.d 08
Oleh : Eko Prianto. Read Carefully  another section at the same document  to a different document  to a different Web page  to a variety of other.
1 Pertemuan 17 Input / Output Matakuliah: T0316/sistem Operasi Tahun: 2005 Versi/Revisi: 5.
REPETITION CONTROL STRUCTURES
Pendahuluan Definisi :
1 Diselesaikan Oleh KOMPUTER Langkah-langkah harus tersusun secara LOGIS dan Efisien agar dapat menyelesaikan tugas dengan benar dan efisien. ALGORITMA.
1 Pertemuan 1 Algoritma Matakuliah: T0456 ~ Algoritma dan Metode Object Oriented Programming Tahun: 2005 Versi: 5.
1 Pertemuan 26 NEURO FUZZY SYSTEM Matakuliah: H0434/Jaringan Syaraf Tiruan Tahun: 2005 Versi: 1.
1 Pertemuan 2 Unit 1 - Careers Matakuliah: G0682 / Bahasa Inggris Ekonomi 1 Tahun: 2005 Versi: versi/revisi.
Pertemuan 1 Struktur Dasar Sistem Komputer
1 Pertemuan > > Matakuliah: >/ > Tahun: > Versi: >
Pertemuan 2 Klasifikasi Sistem Operasi dan Review Hardware
1 Pertemuan 2 Algoritma dan Pemrograman Matakuliah: T0016/Algoritma dan Pemrograman Tahun: 2005 Versi: versi 2.
EIS (Executive Information Systems)
Konsep Pemrograman 3
Pengertian Algoritma Pemrograman Pertemuan 1
Pert. 16. Menyimak lingkungan IS/IT saat ini
Pengantar Arsitektur Komputer
PERANGKAT LUNAK KOMPUTER
Pengenalan Pemograman Komputer
Notasi Object Oriented System
Membangun Web Site“Cantik”
INTRODUCTION TO OPERATING SYSTEM
Dasar-Dasar Pemrograman
CA113 Pengantar Manajemen Bisnis
PENGANTAR TEKNOLOGI INFORMASI
Dasar Pemrosesan Komputer
Sistem dan Teknologi Perangkat Keras Komputer
Oleh : Rofifah Durrotul Hikmah
Hardware Hardware Merupakan komponen-komponen fisik peralatan yang membentuk suatu sistem komputer, serta peralatan-peralatan lain yang mendukung komputer.
Pertemuan Ke – 2 Pengantar Organisasi Komputer
PENDAHULUAN PEMROGRAMAN SISTEM
KONSEP DASAR DAN TEKNOLOGI INFORMASI
CA113 Pengantar Manajemen Bisnis
EIS (Executive Information Systems)
Micro-programmed Control (Kontrol Termikroprogram)
Dasar-dasar Pemrograman
Sistem Operasi. Pendahuluan Sistem Operasi Arsitektur Sistem Komputer Hardware Operating System (OS) Programming Language (e.g. PASCAL) Application Programs.
Organisasi Komputer II
Pengantar Teknologi Informasi Introduction to Computers and Networks
PART 3 PENGENALAN HARDWARE
Pertemuan 5 Computer Components
Pertemuan Ke – 2 Pengantar
Organisasi Komputer II
Organisasi dan Arsitektur Komputer : Perancangan Kinerja
How to Set Up AT&T on MS Outlook ATT is a multinational company headquartered in Texas. ATT services are used by many people widely across.
CA113 Pengantar Manajemen Bisnis
SISTEM OPERASI Desi Ramayanti, S.Kom 11/16/2018
Pertemuan 2 Klasifikasi Sistem Operasi dan Review Hardware
Algoritma & Pemrograman 1 Achmad Fitro The Power of PowerPoint – thepopp.com Chapter 3.
Hardware Merupakan komponen-komponen fisik peralatan yang membentuk suatu sistem komputer, serta peralatan- peralatan lain yang mendukung komputer dalam.
Website: Website Technologies.
Rank Your Ideas The next step is to rank and compare your three high- potential ideas. Rank each one on the three qualities of feasibility, persuasion,
KELOMPOK 6 Arranged by Group 3 Adam Pangestu ( ) Muhammad Arif( ) Mohammad Lutfi( ) Mala Sari( ) Noor Fajri( )
Transcript presentasi:

1 Pertemuan 1 Pengenalan Komputer dan Algoritma Matakuliah: T0016/Algoritma dan Pemrograman Tahun: 2005 Versi: versi 2

2 Learning Outcomes Pada akhir pertemuan ini, diharapkan mahasiswa akan mampu : Menjelaskan kegunaan komputer dan sejarah algoritma menjelaskan kegunaan dan tahapan algoritma

 2000 Prentice Hall, Inc. All rights reserved. 3 What is a Computer? Computer –Device capable of performing computations and making logical decisions –Computers process data under the control of sets of instructions called computer programs Hardware –Various devices comprising a computer –Keyboard, screen, mouse, disks, memory, CD-ROM, and processing units Software –Programs that run on a computer

 2000 Prentice Hall, Inc. All rights reserved. 4 Computer Organization Six logical units in every computer: 1.Input unit Obtains information from input devices (keyboard, mouse) 2.Output unit Outputs information (to screen, to printer, to control other devices) 3.Memory unit Rapid access, low capacity, stores input information 4.Arithmetic and logic unit (ALU) Performs arithmetic calculations and logic decisions 5.Central processing unit (CPU) Supervises and coordinates the other sections of the computer 6.Secondary storage unit Cheap, long-term, high-capacity storage Stores inactive programs

 2000 Prentice Hall, Inc. All rights reserved. 5 Evolution of Operating Systems Batch processing –Do only one job or task at a time Operating systems –Manage transitions between jobs –Increased throughput Amount of work computers process Multiprogramming –Computer resources are shared by many jobs or tasks Timesharing –Computer runs a small portion of one user’s job then moves on to service the next user

 2000 Prentice Hall, Inc. All rights reserved. 6 Personal Computing, Distributed Computing, and Client/Server Computing Personal computers –Economical enough for individual Distributed computing –Computing distributed over networks Client/server computing –Sharing of information across computer networks between file servers and clients (personal computers)

 2000 Prentice Hall, Inc. All rights reserved. 7 Machine Languages, Assembly Languages, and High-level Languages Three types of programming languages 1.Machine languages Strings of numbers giving machine specific instructions Example: Assembly languages English-like abbreviations representing elementary computer operations (translated via assemblers) Example: LOAD BASEPAY ADD OVERPAY STORE GROSSPAY

 2000 Prentice Hall, Inc. All rights reserved. 8 Machine Languages, Assembly Languages, and High-level Languages 3.High-level languages Codes similar to everyday English Use mathematical notations (translated via compilers) Example: grossPay = basePay + overTimePay

 2000 Prentice Hall, Inc. All rights reserved. 9 History of C C –Evolved by Ritchie from two previous programming languages, BCPL and B –Used to develop UNIX –Used to write modern operating systems –Hardware independent (portable) –By late 1970's C had evolved to "Traditional C" Standardization –Many slight variations of C existed, and were incompatible –Committee formed to create a "unambiguous, machine- independent" definition –Standard created in 1989, updated in 1999

 2000 Prentice Hall, Inc. All rights reserved. 10 The C Standard Library C programs consist of pieces/modules called functions –A programmer can create his own functions Advantage: the programmer knows exactly how it works Disadvantage: time consuming –Programmers will often use the C library functions Use these as building blocks –Avoid re-inventing the wheel If a premade function exists, generally best to use it rather than write your own Library functions carefully written, efficient, and portable

 2000 Prentice Hall, Inc. All rights reserved. 11 The Key Software Trend: Object Technology Objects –Reusable software components that model items in the real world –Meaningful software units Date objects, time objects, paycheck objects, invoice objects, audio objects, video objects, file objects, record objects, etc. Any noun can be represented as an object –Very reusable –More understandable, better organized, and easier to maintain than procedural programming –Favor modularity

 2000 Prentice Hall, Inc. All rights reserved. 12 Structured Programming Structured programming –Disciplined approach to writing programs –Clear, easy to test and debug and easy to modify Multitasking –Specifying that many activities run in parallel

 2000 Prentice Hall, Inc. All rights reserved. 13 Basics of a Typical C Program Development Environment Phases of C++ Programs: 1.Edit 2.Preprocess 3.Compile 4.Link 5.Load 6.Execute Program is created in the editor and stored on disk. Preprocessor program processes the code. Loader puts program in memory. CPUtakes each instruction and executes it, possibly storing new data values as the program executes. Compiler creates object code and stores it on disk. Linker links the object code with the libraries Loader Primary Memory Compiler Editor Preprocessor Linker Primary Memory Dis k CPU Dis k

 2000 Prentice Hall, Inc. All rights reserved. 14 Hardware Trends Every year or two the following approximately double: –Amount of memory in which to execute programs –Amount of secondary storage (such as disk storage) Used to hold programs and data over the longer term –Processor speeds The speeds at which computers execute their programs

 2000 Prentice Hall, Inc. All rights reserved. 15 General Notes About C and This Book Program clarity –Programs that are convoluted are difficult to read, understand, and modify C is a portable language –Programs can run on many different computers –However, portability is an elusive goal We will do a careful walkthrough of C –Some details and subtleties are not covered –If you need additional technical details Read the C standard document Read the book by Kernigan and Ritchie

16 Algoritma Algoritma ialah sekumpulan langkah- langkah atau instruksi-instruksi yang terbatas untuk menyelesaikan suatu masalah. Kata Algoritma mulai diperkenalkan oleh seorang ilmuwan matematika Persia bernama Al Khwarizmi (ca. 780-ca. 850)

17 Dalam bidang pemrograman, algoritma didefinisikan sebagai : “Suatu metode yang terdiri dari serangkaian langkah-langkah yang terstruktur dan dituliskan secara sistematis untuk menyelesaikan masalah dengan bantuan komputer”.

18 Algoritma dan Pemrograman Algoritma dan pemrograman yang baik : Memiliki logika perhitungan/metode yang tepat dalam memecahkan masalah Menghasilkan output yang tepat dan benar dalam waktu yang singkat Ditulis dengan bahasa yang standar dan sistematis. Dituliskan dengan format yang mudah dipahami

19 Penyajian algoritma Teknik tulisan : Struktur english dan pseudocode Teknik gambar : flow chart.

20 Contoh algoritma Algoritma untuk mencari jumlah N bilangan bulat >0, yaitu N : 1.Set jumlah=0 dan pencacah c=1 2.Ulangi langkah selanjutnya hingga c>N a. Hitung jumlah=jumlah + c b. Naikkan nilai c dengan 1 3. Hasil yang diperoleh ialah jumlah total 4. Tampilkan jumlah total

21 Pseudocode Pseudocode ialah bahasa informal yang membantu kita mendevelop algoritma. Mirip dengan bahasa inggris standar Solusi : begin set jumlah=0 set c=1 input N repeat until c>N jumlah=jumlah +c c=c+1 loop display jumlah end

22 Implementasi #include void main() { int sum=0; int c=0; int N; printf ("\nMasukkan nilai N \n"); scanf ("%d",&N); while (c <= N) { sum=sum+c; c= c + 1; } printf ("Total ialah %d",sum); }

23 Penutup Algoritma yang tepat dan benar sangat penting untuk menyelesaikan suatu permasalahan.