KOMPUTER
MODUL VIII
(Data Base Lanjutan)
Disusun Oleh:
Adillah Bulan Suci
(1700019075)
Asisten praktikum:
Bagas Kautsar Rahman
Gambar 8.5 Contoh Hasil Penghitungan Nilai Akhir Setelah Ditekan Enter
{ Private declarations }
d:=strtofloat(EDUAS.Text);
public
{ Public declarations } hasil:=(a*0.1)+(b*0.25)+(c*
0.3)+(d*0.35);
end;
EDAKHIR.Text:=floattostr(
var hasil);
Form1: TForm1; begin
z:=strtofloat(EDakhir.Text);
implementation if z>=80 then
begin
{$R *.dfm} edhuruf.Text:='A';
end
procedure else
TForm1.EDUASKeyPress(
if (z<=79) and (z>64) then
Sender: TObject; var Key:
Char); begin
VAR edhuruf.Text:='B';
end end
else else
if (z<=64) and (z>54) then if (z<=64)and (z>54) then
begin begin
edhuruf.Text:='C'; edketerangan.Text:='LULU
S';
end
end
else
else
if (z<=54) and (z>39) then
if (z<=54)and (z>39) then
begin
begin
edhuruf.Text:='D';
edketerangan.Text:='TIDAK
end
LULUS';
else
end
if z<=39 then
else
begin
if z<=39 then
edhuruf.Text:='E';
begin
end;
edketerangan.Text:='TIDAK
end; LULUS';
begin end;
z:=strtofloat(edakhir.Text); end;
begin procedure
TForm1.BINPUTTABELCli
edketerangan.Text:='LULU ck(Sender: TObject);
S';
begin
end
Table1.Append;
else
Table1['NIM'] :=
if (z<=79)and (z>64) then EDNIM.Text;
begin TABLE1['NAMA']:=
edketerangan.Text:='LULU BULAN.Text;
S';
TABLE1['KELAS']:= EDTUGAS.Clear;
EDKELAS.Text;
EDKUIS.CLEAR;
TABLE1['TUGAS']:=
EDUTS.CLEAR;
EDTUGAS.Text;
EDUAS.CLEAR;
TABLE1['KUIS']:=
EDKUIS.Text; EDAKHIR.CLEAR;
TABLE1['UTS']:=EDUTS.T EDHURUF.Clear;
ext;
EDKETERANGAN.Clear;
TABLE1['UAS']:=EDUAS.
Text; end;
TABLE1['NILAI procedure
AKHIR']:=EDAKHIR.Text; TForm1.Timer1Timer(Send
er: TObject);
TABLE1['NILAI
HURUF']:=EDHURUF.Text begin
; label16.Caption:=
TABLE1['KETERANGAN'] formatdatetime('HH:NN:SS'
:=EDKETERANGAN.Text; ,now);
TABLE1.Post; Label16.Refresh;
end; end;
procedure end.
TForm1.BHAPUSDATACli
ck(Sender: TObject);
begin
table1.Delete;
end;
procedure
TForm1.BINPUTDATALA
GIClick(Sender: TObject);
BEGIN
BULAN.Clear;
EDNIM.CLEAR;
EDKELAS.Clear;