0% menganggap dokumen ini bermanfaat (0 suara)
4 tayangan2 halaman

Kalkulasi Gaji dan Biaya Kuliah

The document contains code to calculate an employee's salary based on their grade level, allowances, and debts. It uses input to get the employee's grade, allowance type, and debt amount. It then calculates gross salary as base pay for the grade plus allowance, minus debt. A second section calculates semester tuition fees for a student by getting their class type, semester, number of credit hours, and multiplying credit hours by the hourly fee for their class.

Diunggah oleh

Rady Yusaniar
Hak Cipta
© All Rights Reserved
Kami menangani hak cipta konten dengan serius. Jika Anda merasa konten ini milik Anda, ajukan klaim di sini.
Format Tersedia
Unduh sebagai DOCX, PDF, TXT atau baca online di Scribd
0% menganggap dokumen ini bermanfaat (0 suara)
4 tayangan2 halaman

Kalkulasi Gaji dan Biaya Kuliah

The document contains code to calculate an employee's salary based on their grade level, allowances, and debts. It uses input to get the employee's grade, allowance type, and debt amount. It then calculates gross salary as base pay for the grade plus allowance, minus debt. A second section calculates semester tuition fees for a student by getting their class type, semester, number of credit hours, and multiplying credit hours by the hourly fee for their class.

Diunggah oleh

Rady Yusaniar
Hak Cipta
© All Rights Reserved
Kami menangani hak cipta konten dengan serius. Jika Anda merasa konten ini milik Anda, ajukan klaim di sini.
Format Tersedia
Unduh sebagai DOCX, PDF, TXT atau baca online di Scribd

gol=input('masukan golongan anda : ');

if gol==1
gaji_pokok = 100
end
if gol==2
gaji_pokok = 200
end
if gol==3
gaji_pokok = 300
end
if gol==4
disp ('data yang anda masukan salah')
end
disp ('ket : 1. lajang')
disp ('ket : 2. istri')
disp ('ket : 1. anak')
turn=input('masukan tunjangan anda :')
if turn==1
tunjangan = 2000
end
if turn==2
tunjangan = 3
end
if turn==3
tunjangan = 4000
end
utang = input('masukan utang anda :');
gaji = gaji_pokok+tunjangan-utang

nyobaan

disp ('ket : A. Reguler')


disp ('ket : B. Karyawan')
kelas=input('maneh kelas naon : ');
if kelas==A
biaya_per_sks = 1000
end
if kelas==B
biaya_per_sks = 2000
end

semester=input('masukan semester anda : ');


if semester==1
jumlah_sks = 5
end
if semester==2
jumlah_sks = 10
end
if semester==3
jumlah_sks = 15
end
if semester==4
jumlah_sks = 20
end
if semester==5
jumlah_sks = 25
end
if semester==6
jumlah_sks = 30
end
if semester==7
jumlah_sks = 35
end
if semester==8
jumlah_sks = 40
end

biaya = jumlah_sks*biaya_per_sks

Anda mungkin juga menyukai