Professional Documents
Culture Documents
Input Nilai 5 Kondisi
Input Nilai 5 Kondisi
/bin/bash
echo ------------------------------------------echo -n "Input nama mata kuliah : "
read matkul
echo -n "Input stb anda : "
read stb
echo -n "Input nama anda : "
read nm
echo ------------------------------------------echo -n "Input jumlah absensi : "
read absen
echo -n "Input nilai kuis : "
read quiz
echo -n "Input nilai mid : "
read md
echo -n "Input nilai tugas : "
read tgs
echo -n "Input nilai final : "
read final
na=$[$[$absen*10/100] + $[$quiz*10/100] + $[$md*20/100] + $[$tgs*30/100] + $[$fi
nal*30/100]]
echo "------------------------------------------------------"
echo "Total nilai : $na";
echo "------------------------------------------------------"
echo " Nilai Akhir Mahasiswa"
echo "------------------------------------------------------"
echo "Matakuliah : $matkul"
echo "STB : $stb"
echo "Nama : $nm"
if [
echo
elif
echo
elif
echo
elif
echo
else
echo
fi