Anda di halaman 1dari 27

# 09511050

## Pendidikan Matematika STKIP GARUT

procedure TForm1.BitBtn1Click(Sender: TObject); begin form4.ProgressBar1.Position : = 0; form4.Timer1.enabled:= true; form4.visible:=true; form1.visible:=false; procedure end; TForm2.Timer1Timer(Sende r: TObject); begin if label1.visible:=true then label1.visible:=false else Label1.visible:=true; end;

Listing main menu procedure TForm2.AboutMe1Click(Sender: TObject); begin showmessage('Go 2 my_Profil'); form3.show; end; procedure TForm2.Close1Click(Sender: TObject); begin form6.show; end; procedure TForm2.DeretGeometri1Click(Sender: TObject); begin showmessage('go 2 math''s Application'); form5.show; end;

procedure TForm2.Timer1Timer(Sender: TObject); begin if image2.visible=true then image2.visible:=false else image2.visible:=true; end;

procedure TForm3.Timer1Timer(Sender: TObject); begin if label1.visible=true then label1.visible:=false else label1.visible:=true; end;

procedure TForm3.Button1Click(Sender: TObject); var s:string; p,i:integer; No:array[1..20] of string; Nama:array[1..20]of string; NIM:array[1..20]of string; Alamat:array[1..20]of string; NoHP:array[1..20]of string; begin listbox1.Items.Clear; s:=inputbox('loop','Jumlah Perulangan',''); p:=strtoint(s); stringgrid1.cells[0,0]:='No'; stringgrid1.Cells[1,0]:='Nama'; stringgrid1.Cells[2,0]:='NIM'; stringgrid1.Cells[3,0]:='Alamat';

stringgrid1.Cells[4,0]:='NoHP';

listbox1.Items.add('Hasil Input'); listbox1.Items.add('bisa di liat di samping'); listbox1.Items.add('>>>>>>>>>>>>>>>> >>>'); for i:=1 to p do begin No[i]:=inputbox('ID','No',''); Nama[i]:=inputbox('ID','Nama',''); NIM[i]:=inputbox('ID','NIM',''); Alamat[i]:=inputbox('ID','Alamat',''); NoHP[i]:=inputbox('ID','No HP',''); stringgrid1.Cells[0,i]:=No[i]; stringgrid1.cells[1,i]:=Nama[i]; stringgrid1.cells[2,i]:=NIM[i]; stringgrid1.cells[3,i]:=Alamat[i]; stringgrid1.cells[4,i]:=NoHP[i]; end; end;

procedure TForm4.Timer1Timer(Sender: TObject); begin if progressbar1.Position <> 100 then progressbar1.Position := progressbar1.Position +1 else begin timer1.Enabled := false; form4.Close; form4.Visible:=false; form2.visible:=true; end; end;

procedure TForm4.Timer2Timer(Sender: TObject); begin if progressbar1.Position <> 100 then progressbar1.Position := progressbar1.Position +1 else begin timer2.Enabled := false; form4.Close; form4.Visible:=false; form2.visible:=true; form2.Enabled:=true; end; end; end.

## procedure TForm5.FormCreate(Sender: TObject); begin a:=1; edit1.Text:=inttostr(a); end; end.

var Form5: TForm5; a,j,n:integer; P,Ung,Sng:real; bilangan:array[1..9999]of integer; suku:array[1..9999]of integer; rasio:array[1..9999]of integer; implementation {\$R *.dfm} procedure TForm5.BitBtn1Click(Sender: TObject); begin if a<=9999 then bilangan[a]:=strtoint(edit2.Text); edit2.setfocus; rasio[a]:=strtoint(edit3.Text); edit3.setfocus; suku[a]:=strtoint(edit4.Text); edit4.setfocus; P:=-1;{Variabel P mewakili n-1}

for j:=1 to suku[a] do begin P:=P+1; Ung:=(bilangan[a]*(Exp(P*ln(rasio[a])))); listbox1.Items.Add('Nilai Suku Ke'+ inttostr(j)+ '='+ floattostr(Ung)); end; listbox1.Items.Add('Nilai Suku Pertama atau a='+ inttostr(bilangan[a])); listbox1.Items.Add('Perbandingan Bilangan atau r='+ inttostr(rasio[a])); Sng:=((bilangan[a]*(Exp(suku[a]*ln(rasio[a]))-1)))/(rasio[a]-1); listbox1.Items.Add('Jumlah Deret Geometri ' + inttostr(suku[a]) + ' Suku Pertama ='+floattostr(Sng)); listbox1.Items.Add('------------------------------------------------------------------------------'); edit2.SetFocus; if a<9999 then begin a:=a+1; edit1.text:=inttostr(a); end else if a=9999 then messagedlg('STOP Data Bilangan Sudah 9999 buah',mtInformation, [mbYes],0); end;

## procedure TForm5.BitBtn2Click(Sender: TObject); begin edit2.Clear; edit3.Clear; edit4.Clear; edit2.setfocus; end;

procedure TForm6.Timer3Timer(Sender: TObject); begin if label3.visible=true then label3.visible:=false else label3.visible:=true; end;

## procedure TForm6.BitBtn1Click(Sender: TObject); begin application.Terminate; end;

### Dapatkan aplikasi gratis kami

Hak cipta © 2021 Scribd Inc.