Professional Documents
Culture Documents
interface
uses
type
TForm10 = class(TForm)
Panel1: TPanel;
Panel2: TPanel;
Panel3: TPanel;
Panel4: TPanel;
Panel5: TPanel;
Button1: TButton;
Button2: TButton;
Button3: TButton;
Button4: TButton;
Button5: TButton;
Button6: TButton;
Button7: TButton;
Button8: TButton;
Button9: TButton;
Button10: TButton;
ComboBox1: TComboBox;
ComboBox2: TComboBox;
ComboBox3: TComboBox;
ComboBox4: TComboBox;
ComboBox5: TComboBox;
ComboBox6: TComboBox;
ComboBox7: TComboBox;
ComboBox8: TComboBox;
ComboBox9: TComboBox;
ComboBox10: TComboBox;
Button11: TButton;
Button12: TButton;
Button13: TButton;
Button14: TButton;
Gauge1: TGauge;
Shape1: TShape;
Button15: TButton;
Label1: TLabel;
Label2: TLabel;
Timer1: TTimer;
Image1: TImage;
Image2: TImage;
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form10: TForm10;
tombol:boolean=false ;
tot:integer;
nilai:array[0..9]of integer;
jawab,kunci:array[0..9]of string;
implementation
uses Unit3;
{$R *.dfm}
begin
image1.Picture.LoadFromFile('soal1.bmp');
end;
begin
if Shape1.Brush.Color=claqua then
Shape1.Brush.Color:=clfuchsia
else
Shape1.Brush.Color:=claqua;
end;
begin
combobox1.Enabled:=true;
combobox2.Enabled:=true;
combobox3.Enabled:=true;
combobox4.Enabled:=true;
combobox5.Enabled:=true;
combobox6.Enabled:=true;
combobox7.Enabled:=true;
combobox8.Enabled:=true;
combobox9.Enabled:=true;
combobox10.Enabled:=true;
button11.Enabled:=true;
button12.Enabled:=true;
button14.Enabled:=true;
end;
begin
combobox1.Text:='Pilih Jawaban';
combobox2.Text:='Pilih Jawaban';
combobox3.Text:='Pilih Jawaban';
combobox4.Text:='Pilih Jawaban';
combobox5.Text:='Pilih Jawaban';
combobox6.Text:='Pilih Jawaban';
combobox7.Text:='pilih jawaban';
combobox8.text:='pilih jawaban';
combobox9.Text:='pilih jawaban';
combobox10.text:='pilih jawan';
panel4.Caption:=' ';
panel5.Caption:=' ';
button7.Enabled:=true;
button9.Enabled:=false;
gauge1.Progress:=0;
end;
begin
image1.Picture.LoadFromFile('soal2.bmp');
end;
begin
image1.Picture.LoadFromFile('soal3.bmp');
end;
procedure TForm10.Button4Click(Sender: TObject);
begin
image1.Picture.LoadFromFile('soal4.bmp');
end;
begin
image1.Picture.LoadFromFile('soal5.bmp');
end;
begin
image1.Picture.LoadFromFile('soal6.bmp');
end;
begin
image1.Picture.LoadFromFile('soal7.bmp');
end;
begin
image1.Picture.LoadFromFile('soal8.bmp');
end;
image1.Picture.LoadFromFile('soal9.bmp');
end;
begin
image1.Picture.LoadFromFile('soal10.bmp');
end;
var
I,J,K,l :INTEGER;
begin
kunci[0]:='A';kunci[1]:='B';kunci[2]:='B';kunci[3]:='D';
gauge1.Progress:=0;
gauge1.MinValue:=0;
gauge1.MaxValue:=100;
for i:=0 to 9 do
begin
k:=i*1000000;
end;
jawab[0]:=trim(combobox1.text); //soal1
jawab[1]:=trim(combobox2.text); //soal2
jawab[2]:=trim(combobox3.text); //soal3
jawab[3]:=trim(combobox4.text); //soal4
jawab[4]:=trim(combobox5.text); //soal5
jawab[5]:=trim(combobox6.text); //soal6
jawab[6]:=trim(combobox7.text); //soal7
jawab[7]:=trim(combobox8.text); //soal8
if jawab[7]='_' then nilai[7]:=0 else
jawab[8]:=trim(combobox9.text); //soal9
jawab[9]:=trim(combobox10.text); //soal10
tot :=0;
for l:=0 to 9 do
button14.Enabled:=true;
end;
begin
form3.show;
form10.hide;
end;
begin
button11.Enabled:=false;
Panel4.Caption:=floattostr(tot);
If tot>= 28 then
Panel5.Caption:='A'
Panel5.Caption:='A-'
Panel5.Caption:='B+'
Panel5.Caption:='B'
Panel5.Caption:='B-'
Panel5.Caption:='C+'
Panel5.Caption:='C'
Panel5.Caption:='D'
else
end;
end.