0% found this document useful (0 votes)
15 views1 page

Tugas Pascal

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views1 page

Tugas Pascal

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Uses Crt; Else If(NA > 54) Then 1:

Var HitungNH:= 'C' Begin

UAS, UTS, TUGAS : Else If(NA > 39) Then UAS :=InputNilai('Uas
Integer; ');
HitungNH:= 'D'
NA : Real; UTS :=InputNilai('Uts ');
Else If(NA < 40) Then
Pil : Byte;
HitungNH:= 'E'; TUGAS:=InputNilai('Tug
Function InputNilai(C : as');
String):Integer; End;
End;
Begin
Procedure Output(C, 2:
Write('Nilai ', C, ' :
');Readln(InputNilai); V:String;X:Real); Begin

End; Begin

If(V = 'NULL') Then NA:=HitungNA(UAS,


UTS, TUGAS);
Function HitungNA(Var Writeln(C,X:0:2)
Output('Nilai Akhir : ',
NUAS, NUTS, NTUGAS Else 'NULL', NA);
: Integer):Real;
Writeln(C,V); Output('Nilai Huruf : ',
Begin HitungNH(NA),0);
End;
Readln;
HitungNA:=(0.5*NUAS)
+(0.35*NUTS) End;
Begin
+(0.15*NTUGAS);
0:
Repeat
End;
End;
ClrScr;
Until Pil=0;
Writeln(' Menu');
Function
End.
HitungNH(NA:Real):Stri Writeln('----------------');
ng;
Writeln(' 1. Input Nilai');
Begin
Writeln(' 2. Cetak Nilai
If(NA > 79) Then Hasil');
HitungNH:= 'A' Write (' PILIH ( 0 =
Keluar ) >>
Else If(NA > 69) Then
');Readln(Pil);
HitungNH:= 'B'
Case Pil Of

You might also like