Tentang shareilmu2ilmu.blogspot.com

http://shareilmu2ilmu.blogspot.com/ adalah blog tentang komputer yang di buat untuk Pembelajaran, tugas-tugas,aplikasi komputer,Coding,pemograman visual, sistem manajemen basis data

Showing posts with label Script. Show all posts
Showing posts with label Script. Show all posts

Wednesday, 2 April 2014

Cara membuat web sederhana(dasar). HTML.(Source Code).

Ok,kita akan membahas beberapa dasar pembuatan web yang akan dapat digunakan untuk memperindah dan mempercantik web.
Kita akan membuat tulisan,warna,tabel,link,gambar,list menu dan lainnya.
dan inilah langkah-langkahnya:

>Buka Notepad atau text editor lainnya.
>diharuskan sudah memiliki aplikasi localhost(Xampp,Wampserver,dll).
>localhost yg saya gunakan yaitu xampp,buka xampp,jalankan Apache dan mySQL.
>Tulisakan koding/kode berikut pada notepad/text editor anda.


<html>
<body>
<table border="4" cellpadding="0" cellspacing="2">
<tr><td colspan="3" bgcolor="red"><h1> <center>Selamat Datang Website 12.12.0009</center><h1></td></tr>
<tr><td bgcolor="yellow" ><center><p>Haiii apa kabar<br>nama saya dionisius riyan edlianto
<br>saya sedang dalam studi pada STMIK AMIKOM PURWOKERTO<br>dan Nim saya 12.12.0009</p><center><table border="2" cellpadding="0" cellspacing="2" bgcolor="red">
<tr><td>Nama</td><td>Nim</td><td>Kelas<center></td></tr>
<tr><td>Dionisius Ryan E</td><td>12.12.0009</td><td>SI 12 A</td></tr></table></center>
</td>

<td bgcolor="gray"><center><p><font color="#fff">Klik gambar</font> untuk menuju Halaman Lain<a href="http://localhost/webmula/"
       target="_blank"><img src="32.jpg" alt="Klik gambar untuk melihat Profil Lengkap Saya"
       height="260" width="320"><a/></p><p>Klik gambar untuk menuju Halaman Lain<a href="http://localhost/webmula/"
       target="_blank"><img src="31.jpg" alt="Klik gambar untuk melihat Profil Lengkap Saya"
       height="260" width="320"><a/></p></center></td><td bgcolor="green">Keterangan Lengkap Tentang Saya :
<ol>
<li>Dionisius Riyan Edliatno
<li>12.12.0009
<li>SI12A
<li>Jenjang Studi
<ul>
<li>SD Broederan
<li>SMP negeri 6 purwokerto
<li>SMA negeri 5 purwokerto
<li>STMIK AMIKOM purwokerto
</ul>
</ol><p>Untuk melihat profil saya lebih lanjut <a href="http://localhost/webmula/"
target=”_blank”>Klik disini </a> dan akan terbuka pada tab baru</p>
<p>Atau Anda dapat melihatnya disini <a href="http://localhost/dionweb/"
target=”_blank”>Klik disini </a> dan akan terbuka pada tab baru</p>
</td></tr>
<tr><td colspan="3"bgcolor="purple"><h1><center>Website Profil Pembuat<center></h1></td></tr>
</table>
</body>
</html>



>Setelah selesai,simpan file pada folder htdocs pada xampp,biasanya terdapat di C:\xampp\htdocs.
>jalankan menggunakan web browser(mozzila,Chrome,inet Explore dll) dengan cara mengetikan : http://localhost/(nama folder). cth: http://localhost/praktek/praktek.html
>Tampilan web yang dibuat.

Sunday, 12 January 2014

TUTORIAL PEMBUATAN WebKit Sederhana Pada ADT BUNDLE Android Aplikasi

1.      Buat Project baru dengan nama webkit.

2.      Pada layout main_activity desain layout seperti berikut:
3.      Tuliskan source code pada ActivityMain.java:
package com.example.webkit;

import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.webkit.WebView;

public class MainActivity extends Activity {
            WebView browser;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
       
       
        browser =(WebView) findViewById(R.id.webkit);
        browser.loadData("<html><body>Tulisan Pertama yang ditampilkan di web browser</body><html>","text/html","UTF-8");
    }


    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        // Inflate the menu; this adds items to the action bar if it is present.
        getMenuInflater().inflate(R.menu.main, menu);
        return true;
    }
   
}
4.      Output:


Sunday, 28 October 2012

Script C# penjumlahan matriks

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication14
{
    class Program
    {
        static void Main(string[] args)
        {
            //DEKLARASI VARIABLE DAN ARRAY
            int a, b, i, j;
            int baris_a, kolom_a, baris_b, kolom_b;
            int[,] matrik_a;
            int[,] matrik_b;
            byte x;
            //INPUT JUMLAH BARIS DAN KOLOM
            Console.WriteLine();
            Console.Write("<-PROGRAM PENJUMLAHAN MATRIKS->");
            Console.WriteLine();
            Console.WriteLine();
            x = 1;
            while (x >= 1)
            {
                Console.Write("Jumlah Baris Matrik A : ");
                baris_a = int.Parse(Console.ReadLine());
                Console.Write("Jumlah Kolom Matrik A : ");
                kolom_a = int.Parse(Console.ReadLine());
                Console.Write("Jumlah Baris Matrik B : ");
                baris_b = int.Parse(Console.ReadLine());
                Console.Write("Jumlah Kolom Matrik B : ");
                kolom_b = int.Parse(Console.ReadLine());
                Console.WriteLine();
                if (baris_a == baris_b || kolom_a == kolom_b)
                {

                    //ISI ARRAY MATRIKS

                    matrik_a = new int[baris_a, kolom_a];
                    matrik_b = new int[baris_b, kolom_b];

                    Console.WriteLine(" Nilai Matriks A : ");
                    Console.WriteLine("--------------- ");
                    Console.WriteLine();
                    Console.WriteLine();
                    for (a = 0; a < baris_a; a++)
                    {
                        for (b = 0; b < kolom_a; b++)
                        {
                            Console.Write(" Matriks A [" +
                            (a + 1) + " , " + (b + 1) + " ] = ");

                            matrik_a[a, b] = int.Parse(Console.ReadLine());
                        }
                    }

                    Console.WriteLine();
                    Console.WriteLine(" Nilai Matriks B : ");
                    Console.WriteLine("--------------- ");
                    Console.WriteLine();
                    Console.WriteLine();
                    for (i = 0; i < baris_b; i++)
                    {
                        for (j = 0; j < kolom_b; j++)
                        {
                            Console.Write(" Matriks B [" + (i + 1) + " , " + (j + 1) + " ] = ");
                            matrik_b[i, j] = int.Parse(Console.ReadLine());
                        }
                    }


                    //HASIL JUMLAH MATRIK A & B
                    Console.WriteLine();
                    Console.WriteLine();
                    Console.WriteLine(" HASIL PENJUMLAHAN MATRIKS A & B =");
                    Console.WriteLine("------------------------------------ ");
                    Console.WriteLine();
                    for (a = 0; a < baris_a; a++)
                    {
                        for (b = 0; b < kolom_a; b++)
                        {
                            Console.Write(matrik_a[a, b] + matrik_b[a, b]
                            + " ");
                        }
                        Console.WriteLine();
                    }

                    {

                        Console.ReadKey();
                        break;
                    }

                }
                Console.ReadLine();
            }

        }


    }
}

Thursday, 18 October 2012

Script * for c#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication18
{
    class Program
    {
        static void Main(string[] args)
        {
            int baris, kolom;

            for (baris = 0; baris <= 10; baris++)
            {
                for (kolom = 0; kolom <= baris; kolom++)
                {
                    if (kolom % 2 == 1)
                    {
                        Console.ForegroundColor = ConsoleColor.Magenta;
                        Console.Write("*");
                    }
                    else
                    {
                        Console.ForegroundColor = ConsoleColor.White;
                        Console.Write("*");
                    }
                }
                Console.Write("\n");
                Console.ReadLine();
            }
        }
    }
}
==========================================================================
Untuk Download file via 4shared Download disini !!

Script Fibonacci c#

 Cara pertama:
============================================================================
//Fibonacci 1
==========================================================================
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication3
{
    class Program
    {
        static void Main(string[] args)
        {

          int x = 1, y = 1, z = 1;

          Console.Write("jumlah bilangan Fibonasi yang ingin ditampilkan =");
          int jumlah = Convert.ToInt32(Console.ReadLine());
          for (int i = 0; i < jumlah; i++)
           {
               Console.Write(z + " ");
               z = x + y;
               x = y;
               y = z;
           }
      

        }
    }
}

=========================================================================================




Cara ke-2.:

//Fibonacci 2
==========================================================================
public void fibonacci(int bil)
        {
            int a = 0;
            int b = 1;
            for (int i = 1; i <= bil; i++)
            {
                a = a + b;
                b = a - b;
                Console.Write (a + " ");
            }
        }










=============================================================================


Unduh File via 4shared Download disini !