Professional Documents
Culture Documents
1. SOURCECODE PROGRAM
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;
type
TForm1 = class(TForm)
Label1: TLabel;
Label2: TLabel;
Label4: TLabel;
Label6: TLabel;
Edit1: TEdit;
Edit2: TEdit;
Label8: TLabel;
Memo1: TMemo;
Button1: TButton;
Button2: TButton;
Button3: TButton;
Button4: TButton;
Button5: TButton;
Edit3: TEdit;
Edit4: TEdit;
Edit5: TEdit;
Label3: TLabel;
Edit6: TEdit;
Label5: TLabel;
Label7: TLabel;
procedure Button1Click(Sender: TObject);
procedure Button2Click(Sender: TObject);
procedure Button3Click(Sender: TObject);
procedure Button5Click(Sender: TObject);
procedure Button4Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
c:real;
d:real;
e:real;
f:real;
begin
a:=Strtoint(edit1.Text);
b:=a*3000000;
c:=b*0.1;
d:=b-c;
e:=(d-60000000)*0.05;
edit2.Text:=floattostr(b);
edit3.Text:=floattostr(c);
edit4.Text:=floattostr(d);
edit5.Text:=floattostr(e);
memo1.lines.add('1.type:'+inttostr(a));
memo1.lines.add('2.harga jual:'+'Rp.'+inttostr(b));
memo1.lines.add('3.ppn 10%:'+'Rp.'+floattostr(c));
memo1.lines.add('4.harga sebelum ppn:'+'Rp.'+floattostr(d));
memo1.lines.add('5.biaya bphtb:'+'Rp.'+floattostr(e));
end;
d:real;
e:real;
f:real;
g:real;
begin
b:=a*3000000;
c:=b*0.1;
d:=b-c;
e:=(d-60000000)*0.05;
f:=b+e;
a:=strtoint(edit1.Text);
if a>50 then
memo1.lines.add('6.TYPE: '+inttostr(a)+' MENDAPAT BONUS MOTOR');
if a<50 then
memo1.lines.add('6.TYPE: '+inttostr(a)+' MENDAPAT BONUS AC');
end;
a:=strtoint(edit1.Text);
b:=a*3000000;
c:=b*0.1;
d:=b-c;
e:=(d-60000000)*0.05;
f:=b+e;
n:=strtoint(edit6.Text);//n=3
for i:=0 to n-1 do
begin
memo1.lines.add(' angsuran per bulan: '+'Rp.'+floattostr(F/n));
end;
end;
b:integer;
c:real;
d:real;
e:real;
f:real;
begin
a:=Strtoint(edit1.Text);
b:=a*3000000;
c:=b*0.1;
d:=b-c;
e:=(d-60000000)*0.05;
edit2.Text:=floattostr(b);
edit3.Text:=floattostr(c);
edit4.Text:=floattostr(d);
edit5.Text:=floattostr(e);
f:=b+e;
memo1.lines.add('7.total biaya (Harga jual + Biaya
BPHTB):'+'Rp.'+floattostr(f));
end;
end.