Académique Documents
Professionnel Documents
Culture Documents
Anggota Kelompok:
2-C MATEMATIKA
JURUSAN MATEMATIKA
STKIP - GARUT
Sebelum diRun
Code Editor
procedure TForm1.Timer1Timer(Sender: else if label1.Left=-634 then
TObject); BEGIN
begin image3.visible:=false;
Timer1.Interval:=1; image4.visible:=true;
Label1.Left:=Label1.Left-1; end
if label1.Left=-121 then else if label1.Left=-805 then
begin BEGIN
image1.Visible:=true; image4.visible:=false;
end image5.visible:=true;
else if label1.Left=-292 then end
BEGIN else if label1.Left=-966 then
image1.visible:=false; BEGIN
image2.visible:=true; image5.visible:=false;
end Label1.Left:=Label1.Left* -1;
else if label1.Left=-463 then end
BEGIN end;
image2.visible:=false;
image3.visible:=true;
end
Code Editor
procedure TForm1.BitBtn1Click(Sender: close;
TObject); end;
begin
form2.show; procedure TForm1.Timer2Timer(Sender:
end; TObject);
begin
procedure TForm1.BitBtn2Click(Sender: label2.caption:=formatdatetime('hh:mm',
TObject); (now));
begin label3.caption:=formatdatetime('ss',(now));
form3.show; label4.caption:=formatdatetime('dd/mm/
end; yyyy',(now));
end;
procedure TForm1.BitBtn3Click(Sender:
TObject); end.
begin
Setelah diRun
Sebelum diRun
Code Editor
var procedure TForm2.BitBtn1Click(Sender:
Form2: TForm2; TObject);
a,b:integer; begin
d,e:real; b:=strtoint(edit1.Text);
sisi:array[1..100] of integer; if a<=b then
luas:array[1..100] of integer; sisi[a]:=strtoint(edit3.Text);
volume:array[1..100] of integer; luas[a]:=6*(sisi[a]*sisi[a]);
dr:array[1..100] of real; volume[a]:=sisi[a]*sisi[a]*sisi[a];
Db:array[1..100] of real; dr[a]:=exp((1/2)*ln(3*(sisi[a]*sisi[a])));
Lb:array[1..100] of real; Db[a]:=exp((1/2)*ln(2*(sisi[a]*sisi[a])));
jumlah:array[1..100] of real; Lb[a]:=Db[a]*sisi[a];
implementation edit3.SetFocus;
label10.caption:=' = '+inttostr(sisi[a]);
{$R *.dfm} label11.caption:=' = '+inttostr(sisi[a]);
label12.caption:=' = '+inttostr(sisi[a]);
Code Editor
listbox1.Items.add('================ listbox1.Items.add('luas permukaan
============================='); '+'= '+inttostr(luas[a]));
listbox1.Items.add(' listbox1.Items.add('panjang diagonal
DATA KE '+inttostr(a)); ruang '+'= '+floattostr(dr[a]));
listbox1.Items.add('panjang diagonal
listbox1.Items.add('================ bidang '+'= '+floattostr(db[a]));
============================='); listbox1.Items.add('luas bidang
listbox1.Items.add('Sisi '+'= diagonal '+'= '+floattostr(Lb[a]));
'+inttostr(sisi[a]));
listbox1.Items.add('-----------------------------
listbox1.Items.add('----------------------------- --------------------------------------------------------
-------------------------------------------------------- ------');
------'); listbox1.Items.add('');
listbox1.Items.add('volume
'+'= '+inttostr(volume[a]));
Code Editor
if a<b then edit2.Text:=inttostr(a);
begin
a:=a+1; end;
edit2.Text:=inttostr(a);
end procedure
else if a=b then TForm2.BitBtn2Click(Sender:
messageDlg('Stop Data Bilangan TObject);
Sudah '+inttostr(b)+' begin
Buah',mtInformation,[mbYes],0); a:=1;
end; edit2.Text:=inttostr(a);
procedure edit1.clear;
TForm2.FormCreate(Sender: edit3.clear;
TObject);
begin
a:=1;
Code Editor
procedure
listbox1.Clear; TForm2.Timer1Timer(Sender:
label10.Caption:=''; TObject);
label11.Caption:=''; begin
label12.Caption:=''; Timer1.Interval:=10;
edit3.SetFocus; Label3.Left:=Label3.Left-1;
end; if Label3.Left<-1080 then
procedure begin
TForm2.BitBtn3Click(Sender: Label3.Left:=Label3.Left*-1;
TObject); label2.Caption :='VOLUME = S*S*S
begin DAN LUAS PERMUKAAN =
close; 6*S*S'+' Tanggal
end; '+DateToStr(Now) +' Jam
'+TimeToStr(Now);
end;
end;
end.
Setelah dirun
Setelah diRun
Sebelum diRun
Code Editor
var begin
Form3: TForm3; a:=1;
a,b,C,F:integer; edit2.Text:=inttostr(a);
d,e:real;
panjang:array[1..100] of integer;
Lebar:array[1..100] of integer; end;
Tinggi:array[1..100] of integer;
luas:array[1..100] of integer;
volume:array[1..100] of integer; procedure
jumlah:array[1..100] of real; TForm3.BitBtn1Click(Sender:
TObject);
implementation
begin
b:=strtoint(edit1.Text);
if a<=b then
{$R *.dfm}
PANJANG[a]:=strtoint(edit3.Text);
Code Editor
edit3.SetFocus; listbox1.Items.add('luas permukaan
'+'= '+inttostr(luas[a]));
label10.caption:=' = '+inttostr(Panjang[a]);
label11.caption:=' = '+inttostr(LEBAR[a]);
listbox1.Items.add('-----------------------------------
label12.caption:=' = '+inttostr(TINGGI[a]); --------------------------------------------------------');
listbox1.Items.add('');
listbox1.Items.add('=================== if a<b then
==========================');
begin
listbox1.Items.add('
DATA KE '+inttostr(a)); a:=a+1;
edit2.Text:=inttostr(a);
listbox1.Items.add('=================== end
==========================');
else if a=b then
listbox1.Items.add('Panjang '+'=
'+inttostr(Panjang[a])); messageDlg('Stop Data Bilangan Sudah
'+inttostr(b)+' Buah',mtInformation,
listbox1.Items.add('Lebar '+'=
[mbYes],0);
'+inttostr(LEBAR[a]));
listbox1.Items.add('Tinggi '+'=
'+inttostr(TINGGI[a]));
listbox1.Items.add('-----------------------------------
end;
--------------------------------------------------------');
procedure TForm3.BitBtn2Click(Sender: begin
TObject); close;
begin end;
a:=1;
edit2.Text:=inttostr(a);
edit1.clear; procedure TForm3.Timer1Timer(Sender:
TObject);
edit3.clear;
begin
edit4.Clear;
Timer1.Interval:=10;
edit5.Clear;
Label3.Left:=Label3.Left-1;
listbox1.Clear;
if Label3.Left<-1080 then
label10.Caption:='';
begin
label11.Caption:='';
Label3.Left:=Label3.Left*-1;
label12.Caption:='';
label2.Caption :='VOLUME = P*L*T DAN
edit3.SetFocus;
LUAS PERMUKAAN = 2((P*L)+(P*T)+
(L*T))'+' Tanggal '+DateToStr(Now) +'
Jam '+TimeToStr(Now);
end; end;
end;
Setelah diRun