5.
6.
7.
8.
Start
Insialisasi variable n,x,y,i=1,jumlah_sks=0,total=0,ipk,sks,jumlah=0
Read n (jumlah mata kuliah)
Repeat
Read x
Read sks
If 85<=x<=100 then y=4; print nilai anda A
If 70<=x<85 then y=3 ; print nilai anda B
If 55<=x<70 then y=2; print nilai anda C
If 40<=x<55 then y=1; print nilai anda D
If 0<=x<40 then y=0 print nilai anda E
i++
jumlah=x*sks
total=total+jumlah
jsks=jumlah_sks+sks
until i<=n
ipk=total/jumlah_sks
prinht IPK anda: write Ipk
end