interface
uses
Dialogs, StdCtrls;
type
TForm1 = class(TForm)
Label1: TLabel;
GroupBox1: TGroupBox;
RBTidak: TRadioButton;
RBYa: TRadioButton;
Label2: TLabel;
Label3: TLabel;
Label4: TLabel;
Label5: TLabel;
EdHarga: TEdit;
EdJumlah: TEdit;
EdTotal: TEdit;
EdPembayaran: TEdit;
Button1: TButton;
Button2: TButton;
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
var hp,jl,ht:integer;
p:real;
begin
hp:=strtoint(edharga.text);
jl:=strtoint(edjumlah.Text);
ht:=hp*jl;
p:=ht -(10/100*ht)
p:=ht;
edtotal.Text:= inttostr(ht);
edpembayaran.Text:=floattostr(p);
end;
begin
Close;
end;
end.