Professional Documents
Culture Documents
Kelas : TI.23
NIM : 20192205094
Metode Perulangan : FOR
Nama : Falensius Mintu
Kelas : TI.23
NIM : 20192205094
Metode Perulangan : FOR
unit Unit1;
interface
uses
Dialogs, StdCtrls;
type
TForm1 = class(TForm)
GroupBox3: TGroupBox;
Label1: TLabel;
Label2: TLabel;
ComboBox1: TComboBox;
ComboBox2: TComboBox;
GroupBox1: TGroupBox;
RadioButton1: TRadioButton;
RadioButton2: TRadioButton;
RadioButton3: TRadioButton;
GroupBox2: TGroupBox;
Label3: TLabel;
Label4: TLabel;
Label5: TLabel;
Edit4: TEdit;
Edit5: TEdit;
Nama : Falensius Mintu
Kelas : TI.23
NIM : 20192205094
Metode Perulangan : FOR
Edit3: TEdit;
Edit1: TEdit;
Edit2: TEdit;
GroupBox4: TGroupBox;
Label6: TLabel;
Label7: TLabel;
Label8: TLabel;
Label9: TLabel;
Label10: TLabel;
Label11: TLabel;
Label12: TLabel;
Button1: TButton;
Button2: TButton;
GroupBox5: TGroupBox;
Memo1: TMemo;
Button3: TButton;
headline: TLabel;
GroupBox6: TGroupBox;
GroupBox7: TGroupBox;
bold: TCheckBox;
italic: TCheckBox;
underline: TCheckBox;
GroupBox8: TGroupBox;
left: TRadioButton;
center: TRadioButton;
right: TRadioButton;
GroupBox9: TGroupBox;
Nama : Falensius Mintu
Kelas : TI.23
NIM : 20192205094
Metode Perulangan : FOR
red: TRadioButton;
green: TRadioButton;
blue: TRadioButton;
Button4: TButton;
Edit6: TEdit;
Edit7: TEdit;
Edit8: TEdit;
Edit9: TEdit;
Edit10: TEdit;
Edit11: TEdit;
Edit12: TEdit;
private
{ Private declarations }
Nama : Falensius Mintu
Kelas : TI.23
NIM : 20192205094
Metode Perulangan : FOR
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
var
nilai:integer;
begin
for nilai:=1 to 8 do
begin
ComboBox1.Items.Add(IntToStr(nilai));
ComboBox1.Items.Add('Semester'+IntToStr(nilai));
end;
end;
var k,m,f,h:real;
ket:real;
Nama : Falensius Mintu
Kelas : TI.23
NIM : 20192205094
Metode Perulangan : FOR
begin
Edit6.Text:=''+Edit1.Text;
Edit7.Text:=''+Edit2.Text;
if RadioButton1.Checked=true then
Edit8.Text:='Teknik Informatika'
Edit8.Text:='Sistem Informasi'
Edit8.Text:='TK/KA';
Edit9.Text:=''+ComboBox1.Text;
Edit10.Text:=''+ComboBox2.Text;
k:=StrToFloat(Edit3.Text);
m:=StrToFloat(Edit4.Text);
f:=StrToFloat(Edit5.Text);
h:=(k*0.2)+(m*0.3)+(f*0.5);
Edit11.Text:=FloatToStr(h);
ket:=StrToFloat(Edit11.Text);
if(ket>54)then
Edit12.Text:='Lulus'
else if (ket<55)then
Edit12.Text:='Tidak Lulus'
end;
var
Nama : Falensius Mintu
Kelas : TI.23
NIM : 20192205094
Metode Perulangan : FOR
i : integer;
begin
for i := 0 to ComponentCount-1 do
begin
begin
(Components[ i ] as TButton).enabled:=true;
end;
end;
for i := 0 to ComponentCount-1 do
begin
begin
(Components[ i ] as TEdit).clear;
end;
end;
end;
begin
then
close;
end;
Nama : Falensius Mintu
Kelas : TI.23
NIM : 20192205094
Metode Perulangan : FOR
procedure TForm1.boldClick(Sender: TObject);
begin
if bold.Checked=true then
headline.Font.Style := headline.Font.Style+[fsBold]
else
headline.Font.Style := headline.Font.Style-[fsBold]
end;
begin
if underline.Checked=true then
headline.Font.Style := headline.Font.Style+[fsUnderline]
else
headline.Font.Style := headline.Font.Style-[fsUnderline]
end;
begin
if underline.Checked=true then
headline.Font.Style := headline.Font.Style+[fsUnderline]
else
headline.Font.Style := headline.Font.Style-[fsUnderline]
end;
begin
headline.Alignment:= taleftjustify;
Nama : Falensius Mintu
Kelas : TI.23
NIM : 20192205094
Metode Perulangan : FOR
end;
begin
headline.Alignment:= tacenter;
end;
begin
headline.Alignment:= tarightjustify;
end;
begin
form1.Color:= clred;
end;
begin
form1.Color := clgreen;
end;
begin
form1.Color := clblue
end;
Nama : Falensius Mintu
Kelas : TI.23
NIM : 20192205094
Metode Perulangan : FOR
procedure TForm1.Button4Click(Sender: TObject);
begin
form1.Color := clbtnface;
headline.Font.Style := [];
headline.Alignment := taleftjustify;
//style
bold.Checked :=false;
italic.Checked := false;
underline.Checked := false;
//aligment
left.Checked := false;
center.Checked := false;
right.Checked := false;
//theme
red.Checked := false;
green.Checked := false;
blue.Checked := false;
end;
end.