Dian Programer Iseng
Manusia Biasa Yang lagi belajar menguasai Teknolgi Informasi
Selasa, 06 Oktober 2009
Sejerah Jaringan Komputer dan Komunikasi Data
Kamis, 30 April 2009
Tugas Ku JAVA
ingat Program Dibawah ini jangan dicopy,, kecuali jika kepepet...
jika terpaksa mengcopy tolong dipelajari lagi supaya lebih dipahami
1.....
/*---------------------------------------------------------------
Nama program : Manghitung Selisih Waktu
Deskripsi : menghitung Waktu dengan OOP
-----------------------------------------------------------------*/
import java.io.*;
class Waktu{
int jam ,menit,detik;
public Waktu(){
jam = 0;
menit = 0;
detik = 0;
}
public void inisialisasi(int jamMulai, int mntMulai, int dtkMulai){
System.out.println("Waktu Mulai");
jam = jamMulai ;
menit = mntMulai ;
detik = dtkMulai;
}
public void inputWaktu(){
System.out.println("Waktu Selesai");
String str;
System.out.print("Jam : ");
str = BacaKeyboard.bacaString();
jam = Integer.valueOf(str).intValue();
System.out.print("Menit : ");
str = BacaKeyboard.bacaString();
menit = Integer.valueOf(str).intValue();
System.out.print("Detik : ");
str = BacaKeyboard.bacaString();
detik = Integer.valueOf(str).intValue();
}
public void cetak (){
System.out.println( jam + ":" + menit + ":" + detik);
}
public void hitungWaktu (Waktu A, Waktu B){
System.out.println("LAMA");
if (B.detik <>
B.detik += 60;
B.menit --;
}
detik = B.detik - A.detik;
if (B.menit <>
B.menit += 60;
B.jam --;
}
menit = B.menit - A.menit;
if (B.jam <>
B.jam += 24;
}
jam = B.jam - A.jam;
}
}
public class Lama{
public static void main (String [] args) {
Waktu obj1 = new Waktu ();
obj1.inisialisasi(18,30,30);
obj1.cetak();
Waktu obj2 = new Waktu ();
obj2.inputWaktu();
obj2.cetak();
Waktu obj3 = new Waktu ();
obj3.hitungWaktu(obj1,obj2);
obj3.cetak();
}
}
2....
/*============================================================
Nama Program : Koordinat Tengah
Deskripsi : titik tengah Koordinat dengan OOP
=============================================================*/
class Point {
private float absis;
private float ordinat;
public Point(){
absis = 0;
ordinat = 0;
}
public void inisialisasi(float A, float B){
absis = A;
ordinat = B;
}
public void inputPoint(){
System.out.print("Absis : ");String str = BacaKeyboard.bacaString();
absis = Float.valueOf(str).floatValue();
System.out.print("Ordinat : ");str = BacaKeyboard.bacaString();
ordinat = Float.valueOf(str).floatValue();
}
public void cetak(){
System.out.println("(" + absis + ";" + ordinat + ")");
}
public void titikTengah(Point p1, Point p2){
absis = (p1.absis+p2.absis)/2;
ordinat=(p1.ordinat+p2.ordinat)/2;
}
}
public class Tengah{
public static void main(String[] args) {
Point satu = new Point();
System.out.print("Titik A ");
satu.inisialisasi(1,1);
satu.cetak();
Point dua = new Point();
System.out.println("Titik B ");
dua.inputPoint();
dua.cetak();
Point tiga = new Point();
System.out.println("Titik TENGAH ");
tiga.titikTengah(satu,dua);
tiga.cetak();
}
}
Minggu, 21 Desember 2008
Selasa, 09 Desember 2008
Today and Better Future
From chapter 1 until chapter 9, I am always narrating my past story, at this last chapter, I will narrate myself today and what I wish the future.
Today I am a student at a University in Bandung, I always thank goodness what have been given by Allah to me until today, because every breath which I exhale is godsend invaluable of Allah. Thus any which was Allah give to me, that the best ness for me, Remember Allah the most Know what I require. Allah will give which I require is not which I wish.
What I get today is result of from what I do from yesterday, and which I do today will become a future result. Today will become a classic story in future. I always try that today to better from yesterday and tomorrow have to better from today.
My aspiration of future is, I want to be a people which good for nation, state and religion. Aspiration will not reach if I am not out for reach my aspiration. To reach aspiration I have to try with as good as possibly by learning the diligentness and isn't it worthwhile small things, because that change have to start from ownself, start from simple things and start in this time. one matter which may not be forgotten in reaching aspiration is have to accompany with prayer to Allah, Because any was which I do was otherwise permitted by Allah hence all the things will not happened. thus any is which I do have to accompany with prayer.
Finally finish I narrate my life in 10 Chapter, Many insuffiencies in my article, I am apologize to readers if many mistakeses in writing, I Request the Criticism and suggestion of To repair myself.
I am render thanks To Allah giving me health, To My Parent which always give affection, " Ayah Uang Bulanan Kurang tambah dong", To Mr.Manto SS assisting me in learning English, " Tugas buat Film nya Susah pak he..he." , My friends In class MI/3/B FMIPA UNPAD which always make me Happy, special To Arif, Dony, Aang and Anggia which always each other assisting if many duties and Thank to All people, Bye…
Asalamualaikum Wr Wb.
Selasa, 02 Desember 2008
Goes In UNIVERSITY
Part 9 from 10 part
After pass national examination, I wish to continue the education to university. The university choose at that moment is ITB, UNPAD and UI, after following Test at 3 university, finally me accepted Padjadjaran university Bandung.
I very like acceptable in Padjadjaran University, because surely I will get the new friend, new world different period at Senior High School and most I like is I live in the Bandung town.
Before studying beginning as usual event Ospek, event Ospek executed during one week, on first day there is event Rekor MURI, play Angklung with 10000 people, I very very glad can become that historic event shares.
In Padjadjaran University, I am in mathematics majors at Program study Manajemen Informatika and program Diploma III, be in fact I wish the majors Environmental Technique ITB but in ITB I am not accepted by hence I take in Padjadjran University, I sure where we Learn if our strong willingness hence us is become successful people.
Till now I like to learn in management Informatika, I will learn serious to get best value
That is story of me at the goes in University
Thanks for your attention, see u next week for new story about me, bye
Rabu, 26 November 2008
PASKIBRAKA
I enter Senior High School in the year 2004, my school is Senior High School 3 Karawang, the school full of beautiful memory, since class 1 Senior High School, I enter the Corps Paskibra SMA, in this organization I get many friends and learn the discipline life. And that will good for my life till now. In June 2005 are selecting to be candidate PASKIBRAKA, finally after passing some tests, me chosen became PASKIBRAKA for the level of sub-province. After exercising during 2 months and quarantined during 2 week, arrive its moment to fly the flag on 17 august 2005, at that moment chosen me as 3 the people bring the flag, the position hungered for for All corps PASKIBRAKA, I execute the duty successfully.
After me return to the school, performed election of chief of corps Paskibra SMA, I am chosen also as chief corps Paskibra SMA for period of 2005/2006, experience in have organization very useful in my life now. Definitive I get many friends and I will not forget them in my memory
But my livelines in have organization, I have little time for learning, so that in the case of academic I don't too nicely but nor too ugly, I still can pursue the dropping behind to learn. All the things that make I learn manage the time between Learning and Organization
Thanks for your attention, see u next week for new story about me, bye
Selasa, 18 November 2008
Most beautiful Memory at Junior High School
After 2 year school, finally I go up to class 3, I get the class 3D. Students class 3D is 40 people, opinion of my friends, me bright between class friends, became if was duty hence they will order to me soon to finish the duty then they will see my duty. They are best friends, their name are Anton, Isal, Asep, Iwi, Sri, and its other. I will always remember them.
At class of 1 until class 2 me always get ranking 2, at class 3, I intend to get ranking 1. is not easy to get that, caused by many other students most clever from me, but I have remain to the spirit to get the satisfying result. And finally at semester 1 class 3, I get ranking 1, I very glad, this is my hard work result, best result is from good process. And I intend to maintain that good result at semester to come. And at national test I get the biggest value between class friends.
Most beautiful Memory at the Junior High School is at the time of that I have a girlfriend. That is my first love. That memory I cannot forget. By then every going the school, I always the spirit because surely will come meet her.
That most beautiful story in SMP, that memory I will not forget.
Thanks for your attention, see u next week for new story about me.