/* Program Menu */
menu:-nl,
write('------ MENU ------'),nl,
write(' 1. Biodata '),nl,
write(' 2. Aritmatika '),nl,
write(' 3. Kondisi '),nl,
write(' 4. Exit'),nl,
write('-----------------'),nl,
write('Pilihan [1..3] : '),read(Pil),
(
Pil = 1 ->
write('---- BIODATA ----'),nl,
write('Masukan Nama : '),read(Nama),
write('Masukan Kelas : '),read(Kelas),
write('Masukan NPM : '),read(NPM),
write('Nama Saya '),write(Nama),
write('Kelas Saya '),write(Kelas),
write('NPM Saya '),write(NPM),
menu;
/* Program Menghitung umur */
tuamuda:-nl,
write('Masukan Nama : '), read(Nama),
write('Masukan Tahun Lahir : '), read(Lahir),
Umur is (2013 - Lahir),
write('Nama Saya '), write(Nama),nl,
write('Umur Saya '), write(Umur),nl,
write('Saya adalah '),
(
Umur > 49 -> write('Orang Tua');
Umur > 20 -> write('Dewasa');
Umur > 12 -> write('Remaja');
Umur > 5 -> write('Anak Kecil');
write('Bayi')
).
LOGIKA PROGRAM
Program ini adalah program sederhana kondisi dimana kondisi pada program ini terletak pada Umur
yang mana kondisinya adalah sebagai berikut :
tuamuda:-nl,
write('Masukan Nama : '), read(Nama),
write('Masukan Tahun Lahir : '), read(Lahir),
Umur is (2013 - Lahir),
write('Nama Saya '), write(Nama),nl,
write('Umur Saya '), write(Umur),nl,
write('Saya adalah '),
(
Umur > 49 -> write('Orang Tua');
Umur > 20 -> write('Dewasa');
Umur > 12 -> write('Remaja');
Umur > 5 -> write('Anak Kecil');
write('Bayi')
).
LOGIKA PROGRAM
Program ini adalah program sederhana kondisi dimana kondisi pada program ini terletak pada Umur
yang mana kondisinya adalah sebagai berikut :
//Program Menu
import javax.swing.*;
public class LA5 {
public static void main(String[] args) {
do
{
String pil1 = JOptionPane.showInputDialog(
"Menu\n 1. while\n 2. deret\n 3. nilai\n 4. exit\n Masukan pilihan [1..4]");
int pil=Integer.parseInt(pil1);
switch(pil)
{
case 1:
String anak = JOptionPane.showInputDialog("Masukan Angka : ");
int nilai = Integer.parseInt(anak);
while (nilai>=1)
{
System.out.println("Aku anak soleh");
nilai--;
}
System.out.println("");
break;
import javax.swing.*;
public class LA5 {
public static void main(String[] args) {
do
{
String pil1 = JOptionPane.showInputDialog(
"Menu\n 1. while\n 2. deret\n 3. nilai\n 4. exit\n Masukan pilihan [1..4]");
int pil=Integer.parseInt(pil1);
switch(pil)
{
case 1:
String anak = JOptionPane.showInputDialog("Masukan Angka : ");
int nilai = Integer.parseInt(anak);
while (nilai>=1)
{
System.out.println("Aku anak soleh");
nilai--;
}
System.out.println("");
break;
Praktikum kali ini akan membahas tentang prolog~
Anda bisa download software prolog disini~ (^0^)
Sekarang kita akan coba membuat file prolog. Disini kita akan mengunakan notepad untuk menulis codenya.
Tulis seperti di bawah ini :
nama:-nl,
write('Masukan Nama : '),read(Nama),
write('Masukan Kelas : '),read(Kelas),
write('Masukan NPM : '),read(NPM),
write('Nama Saya '),write(Nama),nl,
write('Kelas Saya '),write(Kelas),nl,
write('NPM Saya '), write(NPM).
Kemudian simpan dengan extension .pl
Untuk mencompilenya :
Buka SWI prolog, pilih FILE>>Consult...>>Lalu cari file yang tandi anda buat
Anda bisa download software prolog disini~ (^0^)
Sekarang kita akan coba membuat file prolog. Disini kita akan mengunakan notepad untuk menulis codenya.
Tulis seperti di bawah ini :
nama:-nl,
write('Masukan Nama : '),read(Nama),
write('Masukan Kelas : '),read(Kelas),
write('Masukan NPM : '),read(NPM),
write('Nama Saya '),write(Nama),nl,
write('Kelas Saya '),write(Kelas),nl,
write('NPM Saya '), write(NPM).
Kemudian simpan dengan extension .pl
Untuk mencompilenya :
Buka SWI prolog, pilih FILE>>Consult...>>Lalu cari file yang tandi anda buat
//Program Array 1 Dimensi
import java.util.*;
public class LA4a {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
int[] array= new int[10];
int i,j,jumlah=0;
float rata;
System.out.print("Masukan Jumlah data : ");
i=input.nextInt();
for(j=0;j<i;j++)
{
System.out.print("Data ke-"+(j+1)+" = ");
array[j]=input.nextInt();
jumlah=jumlah+array[j];
}
rata=jumlah/i;
System.out.println("\n\nNilai Element Array");
for(j=0;j<i;j++)
{
System.out.println("Data ke-"+(j+1)+" = "+array[j]);
}
System.out.println("----------------- +");
System.out.println("Jumlah = "+jumlah);
System.out.println("Rata-rata = "+rata);
import java.util.*;
public class LA4a {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
int[] array= new int[10];
int i,j,jumlah=0;
float rata;
System.out.print("Masukan Jumlah data : ");
i=input.nextInt();
for(j=0;j<i;j++)
{
System.out.print("Data ke-"+(j+1)+" = ");
array[j]=input.nextInt();
jumlah=jumlah+array[j];
}
rata=jumlah/i;
System.out.println("\n\nNilai Element Array");
for(j=0;j<i;j++)
{
System.out.println("Data ke-"+(j+1)+" = "+array[j]);
}
System.out.println("----------------- +");
System.out.println("Jumlah = "+jumlah);
System.out.println("Rata-rata = "+rata);
//Program Konversi bilangan dari Desimal ke Binner, Oktal dan Hexa
import java.util.*;
public class LA3a {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
int[] b =new int[10];
int[] c =new int[10];
int[] e =new int[10];
int a,a1,a2,d,i=0;
System.out.print("Masukan ilangan Desimail : ");
a = input.nextInt();
a1=a2=a;
//Konversi Bilangan Desimal ke Binner
System.out.print("\n\nBilangan Binner : ");
while (a>=1)
{
b[i]=a%2;
i++;
a=a/2;
}
import java.util.*;
public class LA3a {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
int[] b =new int[10];
int[] c =new int[10];
int[] e =new int[10];
int a,a1,a2,d,i=0;
System.out.print("Masukan ilangan Desimail : ");
a = input.nextInt();
a1=a2=a;
//Konversi Bilangan Desimal ke Binner
System.out.print("\n\nBilangan Binner : ");
while (a>=1)
{
b[i]=a%2;
i++;
a=a/2;
}
//Program 1
import java.util.*;
public class LA3a {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
int a,b,c;
System.out.print("Masukan Angka : ");
a = input.nextInt();
for(b=1;b<=a;b++)
{
for(c=1;c<=b;c++)
{
System.out.print("* ");
}
System.out.println("");
}
System.out.println("\n\n");
}
}
LOGIKA PROGRAM
Program ini jika dijalankan akan user akan disuruh memasukan angka lalu dari angka itu program melakukan perulangan nasted loop dimana perulangan ada dalam perulangan.
Membuat Table dengan Div
Buka dreamweavernya lalu pilih HTML.
Disini kita ingin membuat web dengan menggunakan div (division) dimana nama div nya adalah main dan didalam main ada lagi div header, navigator, conten, dan footer. Gambar sederhananya seperti dibawah ini :
MAIN
|-------------------------------------------------------|
| |
| |
| HEADER |
| |
| |
|-------------------------------------------------------|
| NAVIGATOR |
|-------------------------------------------------------|
| |
| |
| |
| |
| |
| CONTEN |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
|-----------------------------------------------------|
| FOOTER |
|-----------------------------------------------------|
| |
| |
| HEADER |
| |
| |
|-------------------------------------------------------|
| NAVIGATOR |
|-------------------------------------------------------|
| |
| |
| |
| |
| |
| CONTEN |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
|-----------------------------------------------------|
| FOOTER |
|-----------------------------------------------------|
//Program Login
import java.util.*;
public class LA2b {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
String a,b;
System.out.print("Masukan Username : ");
a = input.nextLine();
System.out.print("Masukan Password : ");
b = input.nextLine();
if (a.equals("admin") && b.equals("labsi"))
System.out.println("\nAnda Berhasil Login");
else
System.out.println("\nAnda Gagal Login");
System.out.println("\n\n");
}
}
LOGIKA PROGRAM
Saat program dijalankan maka kita akan disuruh memasukan username dan password dimana nilainya akan tersimpan di variable a dan b yang bertipe data String. Kemudian program akan masuk kedalam statment kondisi dimana jika nilai a sebanding dengan "admin" DAN nilai b sebanding dengan "labsi" maka akan tercetak Anda Berhasil Login.
Membuat Database menggunakan MySQL
Software yang saya gunakan adalah MySql 5.5 anda bisa mendownloadnya disini dan untuk tutorial penginstalannya bisa anda liat disini.
Kenapa saya menggunakan MySql 5.5 bukan XAMPP seperti yang ada di LAb ??
Itu karena kita hanya menggunakan MySql nya saja untuk praktikum MySQL ini jadi aga sedikit membuang memory jika kita menginstal paket XAMPP. (^_^)v
Field = Atribut (kolom)
Record = Isi Table (baris)
Pertama buka MySql nya.
Program 1
public class LA1a {
public static void main(String[] args) {
int a = 2, b = 3;
double c = 4, d = 5;
int tambah = a+b;
double bagi = c/d;
System.out.println("a + b = " + tambah);
System.out.println("a - b = " + (a-b));
System.out.println("a * c = " + (a*c));
System.out.println("c / d = " + bagi);
System.out.println("a % d = " + (c%d));
System.out.println("a++ = " + a++);
System.out.println("++a = " + ++a);
System.out.println("a-- = " + a--);
System.out.println("--a = " + --a);
}
Date A Live (デート・ア・ライブ Dēto A Raibu?) is a Japanese light novel series written by Kōshi Tachibana and illustrated by Tsunako. An anime adaptation series began airing on TV on April 6, 2013. It is also being streamed on Niconico since March 31, 2013.
Story Synopsis
Thirty years ago a strange phenomena called a "spacequake" devastated the center of Eurasia, claiming the lives of at least 150 million people. Since then, smaller spacequakes plague the world on an irregular basis. Shido Itsuka, a seemingly ordinary high schooler comes across a mysterious girl at the ground zero of a spacequake and learns from his sister Kotori she is one of the "Spirits" who are the real cause of the
Story Synopsis
Thirty years ago a strange phenomena called a "spacequake" devastated the center of Eurasia, claiming the lives of at least 150 million people. Since then, smaller spacequakes plague the world on an irregular basis. Shido Itsuka, a seemingly ordinary high schooler comes across a mysterious girl at the ground zero of a spacequake and learns from his sister Kotori she is one of the "Spirits" who are the real cause of the
IS <Infinite Stratos> (Japanese: IS〈インフィニット・ストラトス〉 Hepburn: IS <Infinitto Sutoratosu>?) is a Japanese light novel series by Izuru Yumizuru with illustrations provided by Okiura and CHOCO. As of April 2011, 7 volumes have been published by Media Factory under their MF Bunko J label. From volume 8 onwards, the novels will be published by Overlap under their Overlap Bunko label. A manga adaptation by Kenji Akahoshi was serialized in the seinen manga magazine Monthly Comic Alive from May 2010 to July 2012 with five volumes published under their Alive Comics imprint. A 12-episode anime adaptation aired in Japan between January and March, 2011, and an OVA was released on December 7, 2011. The anime is licensed by Sentai Filmworks in North America, and they released the series on April 10, 2012. A second series has been announced and scheduled to start airing on October 5, 2013.
Sabtu, 31 Agustus 2013
Music
0
komentar
Shingeki no Kyojin - Opening 1 & 2 Guren no Yumiya / Jyuu no Tsubasa
Tracklist
Mahouka Koukou no Rettousei (魔法科高校の劣等生), literally "The Poor Performing Student of a Magic High School", and also known officially as "The Irregular at Magic High School", is a Japanese light novel series written by Satou Tsutomu (佐島勤), with illustrations by Ishida Kana (石田可奈), published by ASCII Media Works under their Dengeki Bunko label. The novel began as a web novel serialization in "Let's Become a Novelist" on October 12, 2008. It then became the second web novel after "Sword Art Online", to be commercialized and published by Dengeki in July 2011.
Other Interesting Facts
As of July 2011, the web novel has received over 30 million page views.
As of December 2011, the web novel has received over 50 million page views.
The web novel, including the Gaiden (side stories), have been taken down at the end of 2011.
The Dengeki published volumes were edited, supplemented with more text on some occasions, and overall improved over the web versions.
Tracklist:
- 01 Departures ~Anata ni Okuru Ai no Uta~
- 02 Euterpe
- 03 Departures ~Anata ni Okuru Ai no Uta~ (TV Size)
- 04 Departures ~Anata ni Okuru Ai no Uta~ -BOOM BOOM SATELLITES Remix-
- 05 Departures ~Anata ni Okuru Ai no Uta~ -karaoke-
- 06 Euterpe -karaoke-
- 07 Departures ~Anata ni Okuru Ai no Uta~ (TV Size) -karaoke-
Ichiban Ushiro no Dai Maō (いちばんうしろの大魔王?, "The Great Demon King in the Back Row"), also known as Demon King Daimao, is a Japanese light novel series written by Shotaro Mizuki and illustrated by Souichi Itō, published by Hobby Japan under their HJ Bunko imprint. The first volume was published on February 1, 2008, with a total of 11 volumes available as of December 2010. A manga adaptation began monthly serialization in the September 2008 issue of Akita Shoten's magazine Champion Red, and a 12-episode anime adaptation by Artland aired between April and June 2010 on Tokyo MX and other channels.
A Certain Magical Index is set in Academy City, a technologically advanced academic city located at western Tokyo which studies scientifically advanced superhuman students with powers, but is also set in a world where magic is real. Toma Kamijo is a student in Academy City whose right hand, the Imagine Breaker, has the ability to negate any supernatural powers, but also negates his own luck. One day he finds a young girl hanging on his balcony railing named Index. She is a nun from Necessarius, a secret magic branch of the Church of England, and her mind has been implanted with the Index Librorum Prohibitorum—103,000 forbidden magical books the Church has removed from circulation. His encounter with her leads him to meet others from the secret world of science and magic and an adventure with his friends where science and magic collide. Toma's unusual power places him at the center of conflicts relating magicians and science-based espers in Academy City. As Toma tries to help and protect his friends, he learns the people he knows are not as they appear and begins to attract the attention of magicians and espers alike as they try to unravel the secrets of Academy City and Index.
AMH Magz? Apaan tuh?
AMH Magz merupakan sebuah majalah digital atau lebih dikenal sebagai E-Magazine yang digarap sendiri oleh user-user dari subforum Anime & Manga Haven yang bermarkas di SG Kaskus, yang rilis setiap bulannya dan dapat diunduh secara GRATIS TIS TIS TIS, gak pake bayar dan gak pake ribet. Majalah yang kini telah berusia satu tahun ini membahas berbagai info aktual seputar dunia Anime, Manga, dan berperan sebagai media penyalur hobi serta karya yang dimiliki para user AMH. (>.<)
Oreimo (俺妹?), short for Ore no Imōto ga Konna ni Kawaii Wake ga Nai (俺の妹がこんなに可愛いわけがない?, lit. My Little Sister Can't Be This Cute) and also known as Ore no Imōto (俺の妹?), is a Japanese light novel series written by Tsukasa Fushimi, with illustrations provided by Hiro Kanzaki. There have been 11 volumes published since August 2008. A manga adaptation drawn by Sakura Ikeda was serialized in ASCII Media Works' Dengeki G's Magazine. A 12-episode anime adaptation produced by AIC aired in Japan between October and December 2010. Four additional episodes, which offer a different ending to the broadcast series, were streamed monthly via the official website and other video streaming sites between February and May 2011, before being released on Blu-ray Disc and DVD in June and July 2011. A 13-episode second anime season produced by A-1 Pictures, titled Ore no Imōto ga Konna ni Kawaii Wake ga Nai. (with a period at the end), began airing in April 2013. An additional three episodes will be released after the television broadcast has concluded.
//Program Class
#include <iostream.h>
#include <conio.h>
#include <string.h>
class motor{
public:
int kecepatan,ngebut;
char warna[20];
};
int main()
{
clrscr();
motor blade;
motor mio;
motor ninja;
cout<<"--Belajar Class pada C++--"<<endl<<endl;
blade.kecepatan = 10;
cout<<"Kecepatan Blade : "<<blade.kecepatan<<endl;
mio.kecepatan = 9;
cout<<"Kecepatan Mio : "<<mio.kecepatan<<endl;
ninja.kecepatan = 1;
cout<<"Kecepatan Ninja : "<<ninja.kecepatan<<endl<<endl;
#include <iostream.h>
#include <conio.h>
#include <string.h>
class motor{
public:
int kecepatan,ngebut;
char warna[20];
};
int main()
{
clrscr();
motor blade;
motor mio;
motor ninja;
cout<<"--Belajar Class pada C++--"<<endl<<endl;
blade.kecepatan = 10;
cout<<"Kecepatan Blade : "<<blade.kecepatan<<endl;
mio.kecepatan = 9;
cout<<"Kecepatan Mio : "<<mio.kecepatan<<endl;
ninja.kecepatan = 1;
cout<<"Kecepatan Ninja : "<<ninja.kecepatan<<endl<<endl;
Perilaku konsumen merupakan studi tentang cara individu, kelompok, organisasi dalam menyeleksi, membeli, menggunakan, dan mendisposisikan barang, jasa, gagasan, atau pengalaman untuk memuaskan kebutuhan dan keinginan mereka. Konsumen adalah individu yang mempunyai warna tersendiri tiap-tiap individunya, dalam tulisan ini kita perlu memahami konsep pemikiran mereka dengan mengetahui tahap-tahap dalam proses pembelian sebagai berikut :
Faktor-faktor yang memengaruhi
Terdapat lima faktor internal yang relevan terhadap proses pembuatan keputusan pembelian:
Faktor-faktor yang memengaruhi
Terdapat lima faktor internal yang relevan terhadap proses pembuatan keputusan pembelian:
- Motivasi (motivation) merupakan suatu dorongan yang ada dalam diri manusia untuk mencapai tujuan tertentu.
Sebelum kita membahas Peran komunikasi dalam organisasi kita harus tahu dulu apa sih itu komunukasi ?
Komunikasi
Semenjak kita lahir, kita sudah melakukan yang namanya komunikasi. Terkadang kita secara tidak sadar pun dapat melakukan yang namanya komunikasi. Komunikasi bukan hanya sebuah percakapan yang terjadi dengan orang lain, tetapi komunikasi adalah sebuah proses pengiriman pesan yang dikirim oleh pihak yang mengirim kepada pihak yang menerima. Pada umumnya, komunikasi dilakukan secara lisan atau verbal yang dapat dimengerti oleh kedua belah pihak. apabila tidak ada bahasa verbal yang dapat dimengerti oleh keduanya, komunikasi masih dapat dilakukan dengan menggunakan gerak-gerik badan, menunjukkan sikap tertentu, misalnya tersenyum, menggelengkan kepala, mengangkat bahu. Cara seperti ini disebut komunikasi nonverbal.
Komunikasi
Semenjak kita lahir, kita sudah melakukan yang namanya komunikasi. Terkadang kita secara tidak sadar pun dapat melakukan yang namanya komunikasi. Komunikasi bukan hanya sebuah percakapan yang terjadi dengan orang lain, tetapi komunikasi adalah sebuah proses pengiriman pesan yang dikirim oleh pihak yang mengirim kepada pihak yang menerima. Pada umumnya, komunikasi dilakukan secara lisan atau verbal yang dapat dimengerti oleh kedua belah pihak. apabila tidak ada bahasa verbal yang dapat dimengerti oleh keduanya, komunikasi masih dapat dilakukan dengan menggunakan gerak-gerik badan, menunjukkan sikap tertentu, misalnya tersenyum, menggelengkan kepala, mengangkat bahu. Cara seperti ini disebut komunikasi nonverbal.
Hello, hello. Welcome.
I’m sure you all had your own reasons for coming here, but try to be patient. You may be short a few credits or you may have gotten a bit too wild at the new student party. I can think of all sorts of reasons, but let’s set that aside. It’s not very interesting.
Whatever it was, this will get it written off.
Your suspension will be removed and you will get the proper credits, so this is great for you.
Hm?
You want to know what we’ll be doing?
Don’t worry. It won’t be physical labor like cleaning every university toilet with your tongues. It’s a survey. Just a quick survey. As you could probably guess from the fact that I gathered you here in the auditorium, I will be using a projector to show you some things on the large screen behind me.
What will I be showing? Just some short films.
I’m sure you all had your own reasons for coming here, but try to be patient. You may be short a few credits or you may have gotten a bit too wild at the new student party. I can think of all sorts of reasons, but let’s set that aside. It’s not very interesting.
Whatever it was, this will get it written off.
Your suspension will be removed and you will get the proper credits, so this is great for you.
Hm?
You want to know what we’ll be doing?
Don’t worry. It won’t be physical labor like cleaning every university toilet with your tongues. It’s a survey. Just a quick survey. As you could probably guess from the fact that I gathered you here in the auditorium, I will be using a projector to show you some things on the large screen behind me.
What will I be showing? Just some short films.
Bahasa pemrograman C merupakan salah satu bahasa pemrograman komputer. Dibuat pada tahun 1972 oleh Dennis Ritchie untuk Sistem Operasi Unix di Bell Telephone Laboratories. Meskipun C dibuat untuk memprogram sistem dan jaringan komputer namun bahasa ini juga sering digunakan dalam mengembangkan software aplikasi. C juga banyak dipakai oleh berbagai jenis platform sistem operasi dan arsitektur komputer, bahkan terdapat beberepa compiler yang sangat populer telah tersedia. C secara luar biasa memengaruhi bahasa populer lainnya, terutama C++ yang merupakan extensi dari C.....
Langganan:
Postingan (Atom)