Born to be Programmer - STIKOM Surabayablog.stikom.edu/teguh/files/2011/09/PERT-1_Bpro.pdfTujuan...

Post on 07-Mar-2018

222 views 4 download

Transcript of Born to be Programmer - STIKOM Surabayablog.stikom.edu/teguh/files/2011/09/PERT-1_Bpro.pdfTujuan...

Born to be Programmer

TeguhSutanto, M.Kom.

teguh.sutanto@gmail.comteguh@stikom.edu

http://blog.stikom.edu/teguhhttp://teguhsutanto.blogspot.com

Tujuan Mata Kuliah

• Mahasiswa mampu menyusun program untukditerapkan sebagai solusi persoalan komputasipada proses bisnis

Menu Hari ini

• Computer

• Bahasa Pemrograman

• Java

• Compiler

• Interpreter

• How to Program

• Tugas I

Anatomi Komputer

Computer

• A computer is a machine that performs computations, logical operations, or moregenerally, data manipulation according to some prescribed sequence of instructionscalled a computer program. The physical components of a computer are termedhardware and the programs software.

Apa itu Programming?

• Ainin menggunakan komputer untuk bermaingame

• Aqila mengguankan komputer untuk membuatfile presentasi

• Shabira menggunakan Komputer untukmenonton Film

• Bu Ari menggunakan komputer untuk mencatatpenjualan produk herbalnya

• Aca menulis surat menggunakan pengolah kata di komputer

Komputer sangat Fleksibel

• Komputer harus deprogram untuk setiappekerjaan

• Komputer hanya sebuah mesin yang menyimpan data(angka, kata dan gambar), berinteraksi dengan peralatan (monitor, printer dan speaker) dan menjalankanprogram

Resume

• A computer is a machine that performs computations, logical operations, and data manipulation according to some prescribed sequence of instructions called computer program .

• The physical components of a computer are called hardware .• The programs that run on a computer are called software .• The central processing unit ( CPU ) is that part of the computer that

performs most calculations and makes decisions.• The arithmetic and logic unit ( ALU ) is the part of the CPU that performs

arithmetical calculations.• The control unit ( CU ) coordinates the calculations of the ALU and the

movement of data between the CPU and RAM.• The clock determines how frequently the computer hardware executes

instructions.• A computer stores data in binary format , i.e., as a sequence of 0’s and 1’s.• A single 0 or 1 is called a bit ; a sequence of eight bits is called a byte .

How to Start Learning Computer Programming

1. Start with a good book or tutorial on programming2. Get a compiler/interpreter/IDE for the programming

language your book uses3. Read the book!4. Try putting together your own ideas to form a

working program5. Once you start actively programming in your first

language, you may want to learn a second one6. Continue programming and trying new things7. Learn how to type - This is very essential as it is make

your programming very fast and effective

Installasi JDK

• Download JDK Terbaru (http://java.sun.com) atau dari oracle

• Install

• Konfigurasi

– Setting PATH

– Environment Variable

Command Dasar DOS

• dir : melihat isi folder

• Cls : membersihkan layar/console

• Mkdir : membuat sebuah direktori

• Del: menghapus file

• cd : masuk/pindah direktori

How to Program

Editor

KodeProgam(*.java)

Compiler

File Class

File Library

Virtual Machine

JalankanProgram

Compile

• javac namaFile.java

Running

• java namaFile

• Contoh: java PrgPertamax

Tugas 1

• Persiapan– B5– Polos

• Resume Komputer• Resume Bhs Pemrograman• Proses Instalasi JDK

– Download JDK– Install– Konfig– Test

• Compile• Running

Next >>

• Java Basic Programming

• Variable

• Tipe Data

• Operator