Ujian Sem/sem II

uses crt;
type
                  mahasiswa = record
                    nim                    : integer;
                    nama                   : string [15];
                    jk                     : string [2];
                    tm,tt,mdr,prkt,mid,ua  : real;
                    end;
var
   filemahasiswa        : file of mahasiswa;
   recordmahasiswa      : mahasiswa;
   lagi                 : char;
begin
assign(filemahasiswa,'MHS.DAT');
rewrite(filemahasiswa);
lagi :='Y';
while upcase(lagi)='Y' do
begin
clrscr;
with recordmahasiswa do
begin
READ;
     gotoxy(5,6); writeln('Nim Mahasiswa        :');
     gotoxy(5,8); writeln('Nama Mahasiswa       :');
     gotoxy(5,10);writeln('Jenis kelamin        :');
     gotoxy(5,12);writeln('Tatap muka           :');
     gotoxy(5,13);writeln('Terstruktur          :');
     gotoxy(5,14);writeln('Mandiri              :');
     gotoxy(5,15);writeln('Praktikum            :');
     gotoxy(5,16);writeln('Mid semester         :');
     gotoxy(5,17);writeln('Nilai ahir           :');
     gotoxy(5,18);writeln('----------------------');

     gotoxy(27,6);    readln(nim);
     gotoxy(27,8);    readln(nama);
     gotoxy(27,10);    readln(jk);
     gotoxy(27,12);   readln(tm);
     gotoxy(27,13);   readln(tt);
     gotoxy(27,14);   readln(mdr);
     gotoxy(27,15);   readln(prkt);
     gotoxy(27,16);   readln(mid);
     gotoxy(27,17);   readln(ua);
     writeln;
     ua := (tm+tt + mdr + prkt + mid+ua)/6;
     writeln;
     gotoxy(5,20); writeln('----------------------');
     gotoxy(5,22); writeln('nilai ahir (na)=',ua:5:2);
     gotoxy(5,23); writeln('----------------------');
     end;

write(filemahasiswa, recordmahasiswa);
gotoxy(5,24);write('masukkan data lagi (Y/T) ?'); readln(lagi);
end;
close(filemahasiswa);
end.

1 komentar:

  1. Casino - MapYRO
    Find Casinos Near Me near 거제 출장샵 you, and 밀양 출장마사지 explore New Jersey, Pennsylvania, Delaware, New 보령 출장안마 Jersey & Pennsylvania. Casinos 태백 출장샵 Near Me, Uncasville, 충청남도 출장마사지 Connecticut, Pennsylvania.

    BalasHapus

Thk's 4 u'r coment.

Populer