Selamat Datang Di Blog Saya

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();
}

0 komentar:

Posting Komentar