Selamat Datang Di Blog Saya

Minggu, 04 Juni 2017

Program Mencari Pecahan Uang Menggunakan IF Pada C++

#include<stdio.h>
#include<conio.h>
main()
{
clrscr();
long int uang,kembali,total,sisa1,sisa2,sisa3,sisa4,sisa5,sisa6,sisa7,sisa8;
printf("Uang Anda      :");
scanf("%li",&kembali);
printf("Total Belanja  :");
scanf("%li",&total);
uang = kembali-total;
printf("Kembalian      :%li\n",uang);
printf("\n<< Rincian Kembalian >>\n");
printf("===================================\n");
sisa1=uang/100000;
if(sisa1>0)
uang=uang%100000;
sisa2=uang/50000;
if(sisa2>0)
uang=uang%50000;
sisa3=uang/20000;
if(sisa3>0)
uang=uang%20000;
sisa4=uang/10000;
if(sisa4>0)
uang=uang%10000;
sisa5=uang/5000;
if(sisa5>0)
uang=uang%5000;
sisa6=uang/2000;
if(sisa6>0)
uang=uang%2000;
sisa7=uang/1000;
if(sisa7>0)
uang=uang%1000;
sisa8=uang/500;
if(sisa8>0)
uang=uang%500;
printf("Pecahan Rp. 100000 : %li lembar\n",sisa1);
printf("Pecahan Rp. 50000  : %li lembar\n",sisa2);
printf("Pecahan Rp. 20000  : %li lembar\n",sisa3);
printf("Pecahan Rp. 10000  : %li lembar\n",sisa4);
printf("Pecahan Rp. 5000   : %li lembar\n",sisa5);
printf("Pecahan Rp. 2000   : %li lembar\n",sisa6);
printf("Pecahan Rp. 1000   : %li lembar\n",sisa7);
printf("Pecahan Rp. 500     : %li koin\n",sisa8);
printf("__________________________________\n");
printf("sisa uang                 : %li Rupiah\n",uang);
printf("==================================\n\n\n");
printf("<< Terima Kasih >>\n\n");
printf("Created By : Heru Dwi Siswoyo");
getch();
}

Sabtu, 15 April 2017

Belajar Membuat Halaman Website Sederhana

<! DOCTYPE html>
<html>
<head>
    <title> Belajar Website </title>
    <!--Fungsi Memanggil Css-->
<Link rel="stylesheet" href="css/global.css">
</head>

<body>
<div class="header">
    <h1>TRANNING WEBSITE</h1>
</div>
<div class="navigation">
<div class="container">
    <ul>

    <li><a href="index.html">Home</a></li>
    <li><a href="about.html">About</a></li>
    <li><a href="gallery.html">Gallery</a></li>
    <li><a href="service.html">Service</a></li>
    <li><a href="Contact.html">contact</a></li>
    <li><a href="Instagram.html">Instagram</a></li>
</ul>
</div>
</div>

<div class="container">
<div class="content">
<h1>MY FIRST ARTICLE</h1>
<ARTICLE>
    Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
    tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
    quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
    consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
    cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
    proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</ARTICLE>
</div><!--Penutup Content-->

<div class="sidebar">
    <h1>News Article</h1>
    Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
    tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
    quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
    consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
    cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
    proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
    </div><!--Penutupup sidebar-->

    <div class:"footer">
        @copy; 2017 designed and built website by Heru Dwi Siswoyo
    </div><!--Penutup Footer-->

    </div><!--Penutup container-->

</body>
</html>
<!--penggabungan coding menjadi 2 sheet yang berbeda dalam satu folder yang sama-->

CSS
*
{
padding:0;
margin:0;
}
body
{
font-family:arial;
font-size:15px;
}
.header
{
background:#260598;
padding:50px;
color:brown;
text-align:center;
}
.container
{
width:90%;
margin:0 auto;
}
.navigation
{
background-color:brown;
margin-bottom:0px;
}
.navigation li
{
display:inline-block;
padding:20px 15px;
color:white;
}

.navigation li a
{
color:white;
text-decoration:none;
padding:20px o;
}

.navigation li a:hover
{
background-color:rgba(0,0,0,.9);
}
.content, .sidebar
{
padding:10px;
}
.content
{
width:60%;
float:left;
}
.sidebar
{
width:35%;
float:left;
}
.footer
{
clear:both;
border-top: 1px solid #000;
padding:20px 10px;
}

Selasa, 28 Februari 2017

Coding Dasar PHP

<?php

 $language["C"]="nice";

$language["C++"]="very nice";

$language["JAVA"]="amazing";

$language["PHP"]="mind blowing";

 

echo "C is ".$language["C"];

echo ",C++ is" . $language["C++"];

echo ", JAVA is". $language["JAVA"];

echo  "and PHP is".$language["PHP"];

 ?>

Rabu, 14 Desember 2016

Penjumlahan sederhana pembuatan struk alfamidi menggunakan coding C++

#include<stdio.h>
#include<conio.h>
main()
{
char kata;
float jmlh,harga,seluruh,uang,kembali,barang;
clrscr();
printf("\nPT MIDI UTAMA INDONESIA TBK");
printf("\nALFAMIDI LUKU/081585130726");
printf("\n");
printf("\nJL. MH. THAMRIN NO. 9 COKOKOL");
printf("\nNPWP: 02.672.927.7-054.000");
printf("\nJL.LUKU | KWALA BKALA-MDN JOHOR");
printf("\n===================================");
printf("\nSF11-506-1412MDW9 Kasir : ××××");
printf("\n===================================");
printf("\nNama Barang : ");
scanf("%s",&kata);
printf("\nJumlah Beli : ");
scanf("%f",&jlh);
printf("\nHarga Barang : ");
scanf("%f",&harga);
printf("\n===================================");
seluruh= jlh;
printf("\nJumlah Barang Dibeli : %5.0f", seluruh);
barang= jlh*harga;
printf("\nHarga Keseluruhan : %5.0f", barang);
printf("\nJumlah Uang : ");
scanf("%f",&uang);
kembali=uang-barang;
printf("\nKembalian : %5.0f", kembali);
printf("\nPPN : 4,436");
printf("\n====================================");
printf("\n.2016.10.02");
printf("\n------------------------------------");
printf("\nHARGA BKP SUDAH TERMASUK PAJAK");
getch();
}

Selasa, 13 Desember 2016

Membuat Biodata sederhana dengan coding HTML 5

Heru Dwi Siswoyo

<! DOCTYPE html>
<html>
<head><title>Biodata</title></head>
<body>
    <center><table border ="1" width="750">
    <tr><td colspan="3" align="center"><font face="Algerian" color=#26051998><h1>BIODATA SAYA</h1></td></tr>
    <tr><td colspan="3"><middle><h3>A. Biodata Pribadi</h3></middle></td></tr>
    <tr><td colspan="3"><br></td>
    <tr><td>Nama Lengkap</td>
        <td>:</td>
        <td>Heru Dwi Siswoyo</td>
    </tr>  
    <tr><td>Nirm</td>
        <td>:</td>
        <td>2016020420</td>
    </tr>
    <tr><td>Jenis Kelamin</td>
        <td>:</td>
        <td>Laki-laki</td>
    </tr>
    <tr><td>Agama</td>
        <td>:</td>
        <td>Islam</td>
    </tr>
    <tr><td>Alamat</td>
        <td>:</td>
        <td>Jl.AH Nasution</td>
    </tr>
    <tr><td>Status</td>
        <td>:</td>
        <td>Mahasiswa</td>
    </tr>
        </tr>
    <tr><td>Akun Instagram</td>
        <td>:</td>
        <td>@herudwisiswoyo</td>
    </tr>
    <tr><td>No Telp</td>
        <td>:</td>
        <td>082382824460</td>
    </tr>
    <tr><td colspan="3"><br></td>
    <tr><td colspan="2"><img src="herudwi.jpg"widht="100"height="110"></td>
        <td><center>Medan, 10 Desember 2016<br><br><br>Heru Dwi Siswoyo</center></td>
    </tr>
    </table></center><br>
</body>
</html>