Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- using namespace std;
- int main(){
- int posisiawal,posisiakhir,biayabeban,PPJ,totalbiaya,tariflistrik,pajak,totalbayar;
- string nama,kelurahan;
- cout<< "Program penghitung pemakaian listrik sederhana";
- cout<< "Masukkan Nama";
- cin>> nama;
- cout<< "kelurahan";
- cin>> kelurahan;
- cout<< "Masukkan posisi awal";
- cin>> posisiawal;
- cout<< "Masukkan posisi akhir";
- cin>> posisiakhir;
- cout<< "Masukkan biaya beban";
- cin>> biayabeban;
- cout<< "Masukkan PPJ";
- cin>> PPJ;
- totalbiaya=posisiakhir-posisiawal;
- tariflistrik=totalbiaya*biayabeban;
- pajak=tariflistrik*0.1;
- totalbayar=tariflistrik+pajak;
- cout<< "==================PLN Java====================";
- cout<< "nama" << nama <<endl;
- cout<< "kelurahan" << kelurahan <<endl;
- cout<< "Pemakaian bulan ini" << totalbiaya <<endl;
- cout<< "Tarif Listrik" << tariflistrik <<endl;
- cout<< "PPJ 10%" << pajak <<endl;
- cout<< "Total Bayar" << totalbayar <<endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement