a=raw_input ("Masukkan Nama : ")
b=raw_input ("Masukkan NPM : ")
c=int(raw_input ("Masukkan nilai UTS : "))
d=int(raw_input ("Masukkan nilai UAS : "))
e=int(raw_input ("Masukkan nilai tugas : "))
f= (0.5*c)+(0.3*d)+(0.2*e)
print "Nama Anda : " ,a
print "NPM Anda : ",b
print "Nilai rata-rata Anda : " ,f
if f>=80 :
print "Selamat Anda mendapatkan Grade A"
elif f>=70 :
print "Selamat Anda mendapatkan Grade B"
elif f>=50 :
print "Selamat Anda mendapatkan Grade C"
elif f<=30 :
print "Selamat Anda mendapatkan Grade D"
else :
print "Maaf Anda mendapatkan Grade E"
Sabtu, 13 April 2013
Posted by eyzha on 01.30 with No comments
langsung sedot source code nya :
Categories: programming
Langganan:
Posting Komentar (Atom)
0 komentar:
Posting Komentar