program phyton zakat profesi
Pemrograman Tips & Trik

Source Code Phyton Zakat Profesi Sederhana

Python adalah salah satu bahasa pemrograman tinggi yang dapat melakukan eksekusi sejumlah instruksi multi guna secara langsung dengan metode Object Oriented Programming. Dan kali ini saya akan membahas Source Code Phyton Zakat Profesi agar memudahkan sesorang dalam menerima zakat.

Baca Juga : Apa itu OpenCV ( Open Computer Vision )

Contoh Program Phyton Zakat Profesi

Untuk memudahkan dalam penghitungan zakat profesi saya membuat sebuah program phyton perhitungan zakat profesi.

Source Code Phyton Zakat Profesi
Source Code Phyton Zakat Profesi

Berikut adalah programnya :

# Source code phyton zakat by
# Program bisa di ikuti seperti di bawah

nama = []
gaji = []
zakat = []
emas = []
pertahun = []
perbulan = []
nisab = []

print('<=========== Menghitung Zakat ===========>')
print('<================= Cerdik & Cerdas =====================>')

data = int(input('\nInput data yang di perlukan : '))

for i in range(data):
    a = input('\nInput Nama : ')
    b = int(input('Input harga emas : '))
    c = int(input('Penghasilan/bulan : '))

for i in range(data):
    d = 12 * gaji[i]
    e = 0.025 * pertahun[i]
    f = 85 * emas[i]
    g = zakat[i] / 12

for i in range(data):
    print('      Data Zakat Cerdikiawan')
    print('Nama                             :', nama[i])
    print('Harga 1 gram emas                :', 'Rp.', emas[i])
    print('Penghasilan / bulan              :', 'Rp.', gaji[i])
    print('Penghasilan / tahun              :', 'Rp.', pertahun[i])
    print('Nishab                           :', 'Rp.', nisab[i])
    print('Zakat yang di keluarkan''          :', '2.5% x', pertahun[i], '=', 'Rp.', zakat[i])
    if pertahun[i] >= nisab[i]:
        print('Keterangan                       : Wajib Zakat sebesar Rp.', zakat[i], '/tahun')
        print('                                 atau Rp. ', perbulan[i], '/bulan')
    if pertahun[i] <= nisab[i]:
        print('\nKeterangan                       : Anda belum wajib mengeluarkan zakat')

Hasil dari program yang saya buat di atas :

C:\Users\ASUS\PycharmProjects\Zakat\venv\Scripts\python.exe C:/Users/ASUS/PycharmProjects/Zakat/

<=========== Menghitung Zakat ===========>
<================= Cerdik & Cerdas =====================>

Input data yang di perlukan : 1

Input Nama : stysthht
Input harga emas : 200000
Penghasilan/bulan : 4000000

      Data Zakat Cerdikiawan
Nama                             : stysthht
Harga 1 gram emas                : Rp. 200000
Penghasilan / bulan              : Rp. 4000000
Penghasilan / tahun              : Rp. 48000000
Nishab                           : Rp. 17000000
Zakat yang di keluarkan          : 2.5% x 48000000 = Rp. 1200000.0
Keterangan                       : Wajib Zakat sebesar Rp. 1200000.0 /tahun
                                 atau Rp.  100000.0 /bulan


Process finished with exit code 0

Demikian adalah artikel tentang Contoh Program Phyton Zakat Profesi semoga dapat bermanfaat bagi pengunjung. Terimakasih

Info Saya : Irsyad M


Irsyad Muhamad mahasiswa aktif Universitas Stikubank Semarang

Anda mungkin juga suka...

2 Komentar

  1. […] Baca Juga : Source Code Phyton Zakat Profesi […]

  2. Eric Jones menulis:

    Hey, my name’s Eric and for just a second, imagine this…

    – Someone does a search and winds up at

    – They hang out for a minute to check it out. “I’m interested… but… maybe…”

    – And then they hit the back button and check out the other search results instead.

    – Bottom line – you got an eyeball, but nothing else to show for it.

    – There they go.

    This isn’t really your fault – it happens a LOT – studies show 7 out of 10 visitors to any site disappear without leaving a trace.

    But you CAN fix that.

    Talk With Web Visitor is a software widget that’s works on your site, ready to capture any visitor’s Name, Email address and Phone Number. It lets you know right then and there – enabling you to call that lead while they’re literally looking over your site.

    CLICK HERE to try out a Live Demo with Talk With Web Visitor now to see exactly how it works.

    Time is money when it comes to connecting with leads – the difference between contacting someone within 5 minutes versus 30 minutes later can be huge – like 100 times better!

    Plus, now that you have their phone number, with our new SMS Text With Lead feature you can automatically start a text (SMS) conversation… so even if you don’t close a deal then, you can follow up with text messages for new offers, content links, even just “how you doing?” notes to build a relationship.

    Strong stuff.

    CLICK HERE to discover what Talk With Web Visitor can do for your business.

    You could be converting up to 100X more leads today!

    PS: Talk With Web Visitor offers a FREE 14 days trial – and it even includes International Long Distance Calling.
    You have customers waiting to talk with you right now… don’t keep them waiting.
    CLICK HERE to try Talk With Web Visitor now.

    If you’d like to unsubscribe click here

Tinggalkan Balasan

Alamat email Anda tidak akan dipublikasikan. Ruas yang wajib ditandai *