/**
* Copyright (c) 2010 Alvin Aditya H
* GNU GPL License
*
*
*/
uses crt;
type tabel=RECORD
kd:string[8];
mk:string[30];
sks:Integer;
n:char;
end;
var i : integer;
nama:string[20];
npm:string[8];
kelas:string[5];
aw:ARRAY[1..10]OF tabel;
tsks:integer;
mt:integer;
bobot:integer;
jmt:integer;
ipk:real;
BEGIN
clrscr;
tsks := 0;
jmt := 0;
writeln('masukkan Nama : ');readln(nama);
writeln('masukkan NPM : ');readln(npm);
writeln('masukkan Kelas : ');readln(kelas);
for i:=0 to 9 do
begin
writeln('masukkan kode : ');readln(aw[i].kd);
writeln('masukkan mata kuliah : ');readln(aw[i].mk);
writeln('masukkan sks : ');readln(aw[i].sks);
writeln('masukkan nilai(pake huruf gede) : ');readln(aw[i].n);
end;
writeln('Rangkuman Nilai Mahasiswa :');
writeln('---------------------------------------');
writeln('no| Kode | Mata Kuliah | SKS | Nilai |');
for i:=0 to 9 do
begin
writeln('|',i+1,'|',aw[i].kd,'|',aw[i].mk,'|',aw[i].sks,'|',aw[i].n,'|');
writeln('------------------------------------------------------------');
end;
for i:=0 to 9 do
tsks := tsks + aw[i].sks;
for i:=0 to 9 do
begin
case aw[i].n of
'A': bobot:= 4;
'B': bobot:= 3;
'C': bobot:= 2;
'D': bobot:= 1;
'E': bobot:= 0;
end;
mt := aw[i].sks*bobot;
jmt := jmt+mt;
end;
writeln('Total SKS yang diperoleh : ',tsks);
ipk := jmt/tsks;
writeln('Indeks prestasi kumulatif :',ipk);
readln;
END.
Blog Archive
-
►
2012
(2)
- ► 04/22 - 04/29 (1)
- ► 04/01 - 04/08 (1)
-
►
2011
(6)
- ► 12/18 - 12/25 (1)
- ► 12/11 - 12/18 (1)
- ► 04/24 - 05/01 (1)
- ► 02/27 - 03/06 (2)
- ► 02/20 - 02/27 (1)
-
▼
2010
(26)
- ► 12/26 - 01/02 (6)
- ► 12/05 - 12/12 (1)
- ► 11/28 - 12/05 (1)
- ▼ 06/06 - 06/13 (4)
- ► 05/30 - 06/06 (9)
- ► 03/07 - 03/14 (2)
- ► 02/14 - 02/21 (2)
- ► 01/03 - 01/10 (1)
-
►
2009
(21)
- ► 10/18 - 10/25 (2)
- ► 09/27 - 10/04 (1)
- ► 08/23 - 08/30 (3)
- ► 06/28 - 07/05 (2)
- ► 05/24 - 05/31 (1)
- ► 02/01 - 02/08 (1)
- ► 01/25 - 02/01 (3)
- ► 01/18 - 01/25 (8)
Recent Post
Senin, 07 Juni 2010
Langganan:
Posting Komentar (Atom)
Mengenai Saya
Category
How to
(20)
software review
(12)
coding
(6)
security
(5)
Desktop Environment
(3)
Distro
(2)
teknologi
(2)
Install
(1)
Sejarah Linux
(1)
Sejarah Unix
(1)
bantuan
(1)
opini
(1)
0 komentar:
Posting Komentar