Minggu, 30 Agustus 2015

Selasa, 25 Agustus 2015

Algoritma dan Flowchart Bilangan Prima

Berikut adalah algoritma, sintak serta flowchart untuk mencari bilangan prima dengan menggunakan program Turbo Pascal:

Algoritma (pseudocode)
1.Start
2.a,b,c,n : integer
3.Input n
4.For a←1 to n do
5.c ←0
6.For b ←1 to a do
7.If a mod b ←0 then c ←c+1
8.End if
9.If c ←2 then write (a,’ ‘)
10.End if
11.End

script
Uses crt;
Var
a,b,c,n : integer;
BEGIN
Clrscr;
Writeln(‘Masukkan Nilai :’);readln(n);
For a:=1 to n do
  BEGIN
  c:=0;
  For b:=1 to a do
    BEGIN
    If a mod b=0 then c:=c+1;
    end;
  If c=2 then write (a,’ ‘);
  end;
Readln;
End.

Flowchart

Semoga bermanfaat 

Contoh Narrative Text

Cerita Rakyat Bali "Musang dan Ayam Gundul" (Bahasa Inggris)

The Civet and the Bald Chicken
            Civets are well known among the Balinese for being crafty hunters of chicken. Chicken know that they make a tasty meal for civets. But in this case there was an unusual association between a bald chicken and a civet. The civet was the good protector and care of the chicken. Like wish, the chicken was quite at ease in the company of the civet. Their friendship was very close and peaceful even though we don’t know what the civet was really thinking. Was the friendship all about the chicken still being bald, and the civet was looking after the chicken merely to make it grow quickly, get feathers and so develop nice-tasting flesh? Even so, the bald chicken didn’t give any hint that it was concerned, unlike other chickens which, had they been approached by the civet, would most certainly have run away to avoid being gobbled up. Or perhaps the chicken thought she was too young to protect itself from danger: “Things are fine for the moment, and later when I am fully fledged I’ll be able to look after myself”—was this the case? So far the friendship had been going just fine, without any mutual suspicion. This went on for quite a while, for some months, until the chicken was not bald anymore. Her feathers were thickening and she was getting fat—about two kilograms in weight. They each began to have ill-feelings towards each other. The civet’s eyes would glow when he saw how fat and pretty the chicken was getting. The chicken also started to become aware of the civet’s every movement, and no longer allowed it to get close. She started glance around, left and light, and if anything happened she would fly away high. She started to roost in the higher tree branches. Such was the behavior of the chicken that was no longer bald (but actually pretty). So, how did things turn out? One night, the civet planned to attack the no-longer-bad chicken, because he knew quite well that under those beautiful feathers there was some exceedingly delicious meat. But the chicken, no less, had been doing some clear thinking. This was very night she had been waiting for to fly far away from danger. The chicken was extremely alert and ready to get away as far as she could. So, in fact, both got themselves ready that evening: that which was suspected and that which was planned in fact happened. The civet with his sharp eyes and nimble legs pounced: “where are you, chicken?” the answer came: “I am here, not far from you”, while little by little she moved further away. The civet heard some movement: “What was that? Oh, it’s nothing, maybe some dry leaves are falling”. But needless to say, the chicken up and away into the darkness of the night, further and further away. The civet regretted that his ruse of looking after the chicken for months and months, in order to make a delicious meal of it, failed because the chicken his bad intentions. A thus ends this story: a happy ending for the chicken but a sad ending for the civet.

Moral: Guard against the danger that always shadows us. Don’t let up even a little. 

Kamis, 20 Agustus 2015

Menentukan Kode Warna Pada Resistor

Resistor disebut juga dengan tahanan atau hambatan atau perlawanan yang disingkat dengan huruf R dengan satuan Ohm (Ω), yang berfungsi untuk menghambat arus listrik yang melewatinya.
Resistor terbagi menjadi 2 macam yaitu:
1. Resistor tetap


Simbol Resistor


2. Resistor Variabel


 
Simbol Trimpot

Simbol Potensiometer

Resistor tetap dibagi menjadi 2 yaitu: yang nilainya menggunakan kode warna dan yang tertulis pada bodinya.
Kode warna pada resistor menunjukkan resistansi dan toleransinya. Semakin kecil toleransi pada resistor maka semakin baik resistor tersebut. Resistor yang menggunakan kode warna mempunyai 4 gelang, ada juga yang 5 gelang.


Keterangan:
Gelang/pita ke-1: menunjukkan angka
Gelang/pita ke-2: menunjukkan angka
Gelang/pita ke-3: menunjukkan banyaknya 0/faktor pengali
Gelang/pita ke-4: menunjukkan toleransi (%)


Tabel Kode Warna pada Resistor
Warna
Gelang 1
(Angka Pertama)
Gelang 2
(Angka Kedua)
Gelang 3
(Faktor Pengali)
Gelang 4
(Toleransi %)
Hitam
-
0
1
-
Cokelat
1
1
10
1
Merah
2
2
102
2
Orange
3
3
103
3
Kuning
4
4
104
4
Hijau
5
5
105
5
Biru
6
6
106
6
Ungu
7
7
107
7
Abu-abu
8
8
108
8
Putih
9
9
109
9
Emas
-
-
10-1
5
Perak
-
-
10-2
10
Tanpa Warna
-
-
10-3
20

Contoh:
Resistor dengan kode warna merah, ungu, orange dan emas
Merah = 2
Ungu = 7
Orange = 103
Emas = 5%
Harga resistor:
R = 27 x 103 ±5%
R = 27000 Ω  ±5% = 27K  ±5%

Untuk mencari nilai toleransinya:

R (+) = 5/100  ×27000=1350   
R (+) = 27000 + 1350 = 28350 Ω = 28,35 Ω
R (-) = 27000 – 1350 = 25650 Ω = 25,65 Ω

Jadi, toleransi untuk resistor dengan kode warna merah, ungu, orange dan emas adalah 25,65 – 28,35 Ω                 

Rabu, 19 Agustus 2015

Perkenalan Penulis

Hai..

Welcome to my blog

Sedikit perkenalan dari penulis, katanya sih kalau tak kenal maka tak sayang hehehe..

Nama saya Lian. Lahir pada 29 September 1996. Asal dari Bali. Profesi yang saya jalani sekarang adalah sebagai guru PAUD dan juga sedang menjalani kuliah dibidang Pendidikan Matematika
Warna favorit biru muda. Mengenai hobi, saya suka bermain game, main gitar (but I can’t do it well), mungkin online juga termasuk salah satu dari hobi saya, dan tentunya seperti kebanyakan perempuan lainnya saya juga suka selfie hihihi. 
Kenapa saya membuat blog ini? Saya ingin sharing kepada semua orang tentang apa yang saya ketahui dan apa yang saya sukai, saya ingin postingan di blog saya ini bisa menjadi lebih bermanfaat bagi semua orang yang membutuhkan. 
Ingin tau lebih lanjut tentang saya? 
Bisa langsung follow twitter dan instagram  >> @lianjayani

Thanks for reading


Tanpa kalian blog ini tak akan berarti