PROGRAM MENGHITUNG NILAI AKHIR

PROGRAM MENGHITUNG NILAI AKHIR

Berikut adalah program menghitung nilai akhir mahasiswa stmik budi darma

Program MenghitungNilaiAkhir
uses crt;
var
      NPM, Nama, KodeMK, MK, NHuruf     : String ;
      NH, NT, NUTS, NUAS, NA                    : Real   ;
begin
     clrscr ;
     Writeln ('Program Menghitung Nilai Akhir') ;
     Write('Input NPM          :')readln(NPM)   ;
     Write('Input KodeMK   :')readln(KodeMK) ;
     Write('Input NH             :')readln(NH)   ;
     Write('Input NUTS        :')readln(NUTS) ;
     Write('Input NUAS       :')readln(NUAS) ;
     If NPM  = '19110313' then
         nam a  :='Murni'
    else if NPM = '19110113' then
         nama :='Budi'
    else if NPM = '19110523' then
        nama :='Dodi' ;
    If KodeMK = 'MK01, then
        MK := 'Fisika'
    else if KodeMK ='MK02' then
        MK :='Logika dan Algoritma';

             NA :=0.1*NH+0,2*NT+0.3*NUTS+0,4*NUAS;
             If NA> =90 then
                    NHuruf :='A'
             else if NA> =80 then
                    NHuruf :='B+'
             else if NA> =75 then
                    NHuruf := 'B'
             else if NA> =70 then
                    NHuruf :='C+'
             else if NA> =60 then
                    NHuruf :='C'
             else if NA> =50 then
                    NHuruf :='D'
             else if NA< =50 then
                    NHuruf :='E';


             Writeln('Nama     :',Nama);
             Writeln('MK        :',MK);
             Writeln('NA         :',NA :2:0);
             Writeln('NHuruf   :',NHuruf);
             readln ;
end.

















Komentar

Postingan populer dari blog ini

MENGHITUNG VOLUME TABUNG DENGAN PASCAL

TABEL DISTRIBUSI FREKUENSI DATA JAMAK, NILAI MEAN, ,MEDIAN, MODUS, QUARTIL DAN DESIL

MENCARI LUAS LAYANG LAYANG DENGAN MENGGUNAKAN KALIMAT DESKRIPTIF DAN PSEUDO-CODE