Está en la página 1de 21

PRACTICA N1

PROGRAM CARACTERISTICAS_PERSONALES;
USES
FORMS,DIALOGS,SYSUTILS;
BEGIN
SHOWMESSAGE( 'HOLA ME LLAMO ADALIT MARQUEZ'+#13+'TENGO 4 HERMANOS');
SHOWMESSAGE( 'ESTUDIO EN LA UMSS'+#13+'ESTOY EN 4to SEMESTRE');
SHOWMESSAGE( 'VIVO EN COCHABAMBA'+#13+'TENGO 19 AOS'+#13+'ESOY SOLTERO');
SHOWMESSAGE( 'MIDO 1.67 m'+#13+'SOY MORENO');
SHOWMESSAGE( 'ME GUSTA LA MUSICA ELECTRONICA'+#13+'ME GUSTA CANTAR');
SHOWMESSAGE( 'ME GUSTA EL RAP'+#13+'ME GUSTA EL REGUETON');
SHOWMESSAGE( 'JUEGO FUTSAL LOS SABADOS'+#13+'ESTUDIO 3 HORAS AL DIA');
SHOWMESSAGE( 'CREO EN DIOS'+#13+'ME GUSTA LA MUSICA CRISTIANA');
SHOWMESSAGE( 'MI CUMPLEAOS ES EL 12 DE JULIO'+#13+'VIVO EN ALQUILER');
SHOWMESSAGE( 'ME GUSTA LA PLANCHITA'+#13+'ME GUSTA EL PIQUE MACHO');
SHOWMESSAGE( 'NO ME GUSTA QUE ME MIENTAN'+#13+'NO ME GUSTA EL TOMATE');
SHOWMESSAGE( 'ME GUSTA LO PICANTE'+#13+'ME GUSTA JUGAR BASQUET');
SHOWMESSAGE( 'ACTUALMENTE VIVO SOLO'+#13+'SOY ALEGRE');
END.

PRCTICA N 2
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;
type
TForm1 = class(TForm)
Label1: TLabel;
Label2: TLabel;
Label3: TLabel;
Label4: TLabel;
Label5: TLabel;
Label6: TLabel;
Label7: TLabel;
Label8: TLabel;
Label9: TLabel;
Label10: TLabel;
Label11: TLabel;
Label12: TLabel;
Edit1: TEdit;
Edit2: TEdit;
Edit3: TEdit;
Edit4: TEdit;
Edit5: TEdit;
Edit6: TEdit;
Edit7: TEdit;
Edit8: TEdit;
Edit9: TEdit;

Edit10: TEdit;
Edit11: TEdit;
Label13: TLabel;
Edit12: TEdit;
Button1: TButton;
Button2: TButton;
procedure Button1Click(Sender: TObject);
procedure Button2Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.Button1Click(Sender: TObject);
VAR
A,B,C,D,E,F,G,H,X,Y,Z,MENOR:DOUBLE;
begin
A:=STRTOFLOAT(EDIT1.Text);
B:=STRTOFLOAT(EDIT2.Text);
C:=STRTOFLOAT(EDIT3.Text);
D:=STRTOFLOAT(EDIT4.Text);
E:=STRTOFLOAT(EDIT5.Text);
F:=STRTOFLOAT(EDIT6.Text);
G:=STRTOFLOAT(EDIT7.Text);
H:=STRTOFLOAT(EDIT8.Text);
X:=STRTOFLOAT(EDIT9.Text);
Y:=STRTOFLOAT(EDIT10.Text);
Z:=STRTOFLOAT(EDIT11.Text);
MENOR:=A;
IF (B<MENOR) THEN
BEGIN
MENOR:=B;
END;
IF (C<MENOR) THEN
BEGIN
MENOR:=C;
END;
IF (D<MENOR)THEN
BEGIN
MENOR:=D;
END;
IF (E<MENOR) THEN
BEGIN
MENOR:=E;
END;
IF (F<MENOR) THEN

BEGIN
MENOR:=F;
END;
IF (G<MENOR) THEN
BEGIN
MENOR:=G;
END;
IF (H<MENOR) THEN
BEGIN
MENOR:=H;
END;
IF (X<MENOR) THEN
BEGIN
MENOR:=X;
END;
IF (Y<MENOR) THEN
BEGIN
MENOR:=Y;
END;
IF (Z<MENOR) THEN
BEGIN
MENOR:=Z;
END;
EDIT12.Text:=FLOATTOSTR(MENOR);
end;
procedure TForm1.Button2Click(Sender: TObject);
begin
CLOSE
end;
end.

PRCTICA N 3
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, Buttons;
type
TForm1 = class(TForm)
Label1: TLabel;
GroupBox1: TGroupBox;
Label2: TLabel;
Label3: TLabel;
Edit1: TEdit;
Edit2: TEdit;
Label4: TLabel;
Edit3: TEdit;
BitBtn1: TBitBtn;
BitBtn2: TBitBtn;
procedure BitBtn1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.BitBtn1Click(Sender: TObject);
VAR
TARIFA,NHORAS,SB,SB1,SB2,DIF,SNETO,DIFSB:REAL;
begin
TARIFA:=STRTOFLOAT(EDIT1.Text);
NHORAS:=STRTOFLOAT(EDIT2.Text);
IF (NHORAS>35) THEN
BEGIN
DIF:=NHORAS-35;
SB1:=35*TARIFA;
SB2:=DIF*1.5*TARIFA;
SB:=SB1+SB2;
END
ELSE
BEGIN
SB:=TARIFA*NHORAS;
END;

IF (SB>600 ) THEN
BEGIN
DIFSB:=SB-600;
IF(DIFSB>400)THEN
BEGIN
SNETO:=400*0.87+(DIFSB-400)*0.55+600;
END
ELSE
BEGIN
SNETO:=DIFSB*0.87+600;
END;
END
ELSE
BEGIN
SNETO:=SB;
END;
EDIT3.Text:=FLOATTOSTR(SNETO);
end;
end.

PRCTICA N 4
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, Buttons, ExtCtrls;
type
TForm1 = class(TForm)
Label1: TLabel;
Label2: TLabel;
Label3: TLabel;
Label4: TLabel;
Label5: TLabel;
Label6: TLabel;
Edit1: TEdit;
Edit2: TEdit;
Edit3: TEdit;
Edit4: TEdit;
Edit5: TEdit;
BitBtn1: TBitBtn;
BitBtn2: TBitBtn;
Timer1: TTimer;
Label7: TLabel;
procedure BitBtn1Click(Sender: TObject);
procedure Timer1Timer(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.BitBtn1Click(Sender: TObject);
begin
if((LowerCase(Edit1.Text)='adalit')and(LowerCase(Edit4.Text)='12'))then
begin
if((LowerCase(Edit2.Text)='marquez')and(LowerCase(Edit5.Text)='96'))then
begin
if((LowerCase(Edit3.Text)='atanacio'))then
begin
Timer1.Enabled:=false;
MessageDlg('BIENVENIDO LOGRO ENTRAR AL SISTEMA',mtinformation,[mbOK],1);
close

end
end
end
else
if Form1.Tag<5 then
showmessage('CONTRASEA INCORRECTA INTENTE DE NUEVO');
if Form1.Tag>=5 then
begin
Timer1.Enabled:=false;
Label7.Caption:='';
MessageDlg('SE LE TERMINO LAS OPORTUNIDADES', mtwarning,[MbOK],1);
close
end
else
Form1.Tag:=Form1.Tag+1;
edit1.SelStart:=0;
edit1.SelLength:=length(edit1.text);
edit1.SetFocus;
end;
procedure TForm1.Timer1Timer(Sender: TObject);
begin
label7.Caption:='LE RESTAN: '+IntToStr (Timer1.Tag)+' SEGUNDOS';
Timer1.Tag:=Timer1.Tag-1;
if Timer1.Tag=0 then
begin
Timer1.Enabled:=false;
Label7.Caption:='';
Showmessage('SU TIEMPO ACABO INTENTE DESPUES');
close
end;
end;
end.

PRCTICA N 5
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;
type
TForm1 = class(TForm)
Label1: TLabel;
GroupBox1: TGroupBox;
Label2: TLabel;
Label3: TLabel;
Label4: TLabel;
Label5: TLabel;
Label6: TLabel;
Edit1: TEdit;
Edit2: TEdit;
Edit3: TEdit;
Edit4: TEdit;
Edit5: TEdit;
procedure Edit1KeyPress(Sender: TObject; var Key: Char);
procedure Edit2KeyPress(Sender: TObject; var Key: Char);
procedure Edit3KeyPress(Sender: TObject; var Key: Char);
procedure Edit4KeyPress(Sender: TObject; var Key: Char);
procedure Edit5KeyPress(Sender: TObject; var Key: Char);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.Edit1KeyPress(Sender: TObject; var Key: Char);
VAR
Kg_Cm2,T_m2,Kip_Pie2,Lb_Pulg2,Kip_Pulg2:DOUBLE;
begin
IF (KEY=#13) THEN
BEGIN
Kg_Cm2:=STRTOFLOAT(EDIT1.TEXT);
T_m2:=Kg_Cm2*10;
Kip_Pie2:=Kg_Cm2*2.049;
Lb_Pulg2:=Kg_Cm2*14.22;
Kip_Pulg2:=Kg_Cm2*0.0142;

EDIT2.Text:=FLOATTOSTR(T_m2);
EDIT3.Text:=FLOATTOSTR(Kip_Pie2);
EDIT4.Text:=FLOATTOSTR(Lb_Pulg2);
EDIT5.Text:=FLOATTOSTR(Kip_Pulg2);
END;
end;
procedure TForm1.Edit2KeyPress(Sender: TObject; var Key: Char);
VAR
Kg_Cm2,T_m2,Kip_Pie2,Lb_Pulg2,Kip_Pulg2:DOUBLE;
begin
IF (KEY=#13) THEN
BEGIN
T_m2:=STRTOFLOAT(EDIT2.TEXT);
Kg_Cm2:=T_m2*0.1;
Kip_Pie2:=T_m2*0.205 ;
Lb_Pulg2:=T_m2*1.42;
Kip_Pulg2:=T_m2*0.00142 ;
EDIT1.Text:=FLOATTOSTR(Kg_Cm2);
EDIT3.Text:=FLOATTOSTR(Kip_Pie2);
EDIT4.Text:=FLOATTOSTR(Lb_Pulg2);
EDIT5.Text:=FLOATTOSTR(Kip_Pulg2);
END;
end;
procedure TForm1.Edit3KeyPress(Sender: TObject; var Key: Char);
VAR
Kg_Cm2,T_m2,Kip_Pie2,Lb_Pulg2,Kip_Pulg2:DOUBLE;
begin
IF (KEY=#13) THEN
BEGIN
Kip_Pie2:=STRTOFLOAT(EDIT3.TEXT);
Kg_Cm2:=Kip_Pie2*0.488;
T_m2:=Kip_Pie2*4.88;
Lb_Pulg2:=Kip_Pie2*6.94;
Kip_Pulg2:=Kip_Pie2*0.00694;
EDIT1.Text:=FLOATTOSTR(Kg_Cm2);
EDIT2.Text:=FLOATTOSTR(T_m2);
EDIT4.Text:=FLOATTOSTR(Lb_Pulg2);
EDIT5.Text:=FLOATTOSTR(Kip_Pulg2);
END;
end;
procedure TForm1.Edit4KeyPress(Sender: TObject; var Key: Char);
VAR
Kg_Cm2,T_m2,Kip_Pie2,Lb_Pulg2,Kip_Pulg2:DOUBLE;
begin
IF (KEY=#13) THEN
BEGIN
Lb_Pulg2:=STRTOFLOAT(EDIT4.TEXT);
Kg_Cm2:=Lb_Pulg2*0.0703;

T_m2:=Lb_Pulg2*0.703;
Kip_Pie2:=Lb_Pulg2*0.144;
Kip_Pulg2:=Lb_Pulg2*0.001;
EDIT1.Text:=FLOATTOSTR(Kg_Cm2);
EDIT2.Text:=FLOATTOSTR(T_m2);
EDIT3.Text:=FLOATTOSTR(Kip_Pie2);
EDIT5.Text:=FLOATTOSTR(Kip_Pulg2);
END;
end;
procedure TForm1.Edit5KeyPress(Sender: TObject; var Key: Char);
VAR
Kg_Cm2,T_m2,Kip_Pie2,Lb_Pulg2,Kip_Pulg2:DOUBLE;
begin
IF (KEY=#13) THEN
BEGIN
Kip_Pulg2:=STRTOFLOAT(EDIT5.TEXT);
Kg_Cm2:=Kip_Pulg2*70.29;
T_m2:=Kip_Pulg2*702.95;
Kip_Pie2:=Kip_Pulg2*144.05;
Lb_Pulg2:=Kip_Pulg2*1000;
EDIT1.Text:=FLOATTOSTR(Kg_Cm2);
EDIT2.Text:=FLOATTOSTR(T_m2);
EDIT3.Text:=FLOATTOSTR(Kip_Pie2);
EDIT4.Text:=FLOATTOSTR(Lb_Pulg2);
END;
end;
end.

PRCTICA N 6
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;
type
TForm1 = class(TForm)
Label1: TLabel;
Edit1: TEdit;
GroupBox1: TGroupBox;
Label2: TLabel;
Label3: TLabel;
procedure Edit1KeyPress(Sender: TObject; var Key: Char);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.Edit1KeyPress(Sender: TObject; var Key: Char);
VAR
X,R,ANT,DIF:REAL;
begin
IF (KEY=#13) THEN
BEGIN
X:=STRTOFLOAT(EDIT1.Text);
R:=X/11;
REPEAT
ANT:=R;
R:=(ANT+X/(ANT*ANT*ANT*ANT*ANT*ANT*ANT*ANT*ANT*ANT))/11;
DIF:=ABS(X-R*R*R*R*R*R*R*R*R*R*R)
UNTIL (DIF<1E-6);
LABEL2.Caption:='R= '+FLOATTOSTR(R);
END;
end;
end.

PRCTICA N 7
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, Buttons;
type
TForm1 = class(TForm)
Label1: TLabel;
Label2: TLabel;
Label3: TLabel;
Label4: TLabel;
GroupBox1: TGroupBox;
Label5: TLabel;
Edit4: TEdit;
Edit1: TEdit;
Edit2: TEdit;
Edit3: TEdit;
BitBtn1: TBitBtn;
BitBtn2: TBitBtn;
procedure Edit1KeyPress(Sender: TObject; var Key: Char);
procedure Edit2KeyPress(Sender: TObject; var Key: Char);
procedure Edit3KeyPress(Sender: TObject; var Key: Char);
procedure BitBtn1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.Edit1KeyPress(Sender: TObject; var Key: Char);
begin
IF KEY=#13 THEN
EDIT2.SetFocus;
IF NOT ( KEY IN['0'..'9',',',#8]) THEN
KEY:=#0
end;
procedure TForm1.Edit2KeyPress(Sender: TObject; var Key: Char);
begin

IF KEY=#13 THEN
EDIT3.SetFocus;
IF NOT ( KEY IN['0'..'9',',',#8]) THEN
KEY:=#0
end;
procedure TForm1.Edit3KeyPress(Sender: TObject; var Key: Char);
begin
IF KEY=#13 THEN
EDIT4.SetFocus;
IF NOT ( KEY IN['0'..'9',',',#8]) THEN
KEY:=#0
end;
procedure TForm1.BitBtn1Click(Sender: TObject);
VAR
Vo,Ti,Yo,Yf:REAL;
begin
Vo:=STRTOFLOAT(EDIT1.TEXT);
Ti:=STRTOFLOAT(EDIT2.TEXT);
Yo:=STRTOFLOAT(EDIT3.TEXT);
YF:=Vo*Ti+Yo-(0.5*9.8)*SQR(Ti);
EDIT4.Text:=FLOATTOSTR(Yf);
end;
end.

PRCTICA N 8
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, Grids, StdCtrls;
type
TForm1 = class(TForm)
Label1: TLabel;
Edit1: TEdit;
StringGrid1: TStringGrid;
procedure FormCreate(Sender: TObject);
procedure FormActivate(Sender: TObject);
procedure FormResize(Sender: TObject);
procedure Edit1KeyPress(Sender: TObject; var Key: Char);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
TYPE MATRIX=ARRAY[1..100,1..100]OF INTEGER;
PROCEDURE LIMPIARCELDAS(REJILLA:TSTRINGGRID);
VAR
F,C:INTEGER;
BEGIN
FOR F:=1 TO REJILLA.ROWCOUNT DO
FOR C:=1 TO REJILLA.COLCOUNT DO
REJILLA.CELLS[C,F]:=''
END;
PROCEDURE GENERARCUADRADOLATINO(N:INTEGER; VAR M:MATRIX);
VAR
F,C,K,SW,TEMP:INTEGER;
BEGIN
SW:=0;
FOR F:=1 TO N DO
IF SW=0 THEN
BEGIN
FOR C:=1 TO N DO M[F,C]:=C;
SW:=1
END
ELSE
BEGIN

TEMP:=M[F-1,N];
FOR K:=N DOWNTO 2 DO M[F,K]:=M[F-1,K-1];
M[F,1]:=TEMP
END
END;
PROCEDURE MOSTRARCUADRADOLATINO(REJILLA:TSTRINGGRID; N:INTEGER;
M:MATRIX);
VAR
F,C:INTEGER;
BEGIN
FOR F:=1 TO N DO
FOR C:=1 TO N DO
REJILLA.CELLS[C+1,F+1]:=INTTOSTR(M[F,C])
END;
procedure TForm1.FormCreate(Sender: TObject);
VAR
F,C:INTEGER;
begin
//MAXIMIZA EL TAMAO DEL FORMULARIO
FORM1.WindowState:=WSMAXIMIZED;
//ENUMERA LAS FILAS
FOR F:=1 TO STRINGGRID1.ROWCOUNT DO
STRINGGRID1.CELLS[0,F]:=INTTOSTR(F);
//ASIGNA CARACTERES ALAS COLUMNAS
FOR C:=1 TO STRINGGRID1.COLCOUNT DO
STRINGGRID1.CELLS[C,0]:=CHR(64+C);
end;
procedure TForm1.FormActivate(Sender: TObject);
begin
STRINGGRID1.Col:=2;
STRINGGRID1.Row:=2;
end;
procedure TForm1.FormResize(Sender: TObject);
begin
EDIT1.Width:=FORM1.Width-11;
STRINGGRID1.Height:=FORM1.Height-53;
STRINGGRID1.WIDTH:=FORM1.WIDTH-11;
end;
procedure TForm1.Edit1KeyPress(Sender: TObject; var Key: Char);
VAR
M:MATRIX;
N:INTEGER;
begin
IF KEY=#13 THEN
BEGIN
N:=STRTOINT(EDIT1.TEXT);
IF (N>100)THEN
SHOWMESSAGE('INGRESE UN NUMERO MENOR O IGUAL QUE 100')
ELSE
BEGIN

LIMPIARCELDAS(STRINGGRID1);
GENERARCUADRADOLATINO(N,M);
MOSTRARCUADRADOLATINO(STRINGGRID1,N,M);
END
END;
IF NOT (KEY IN['0'..'9'])THEN
KEY:=#0
end;
end.

PRCTICA N 9
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs;
type
TForm1 = class(TForm)
procedure FormPaint(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.FormPaint(Sender: TObject);
begin
WITH CANVAS DO
BEGIN
PEN.Color:=CLBLACK;//COLOR DE TRAZO
PEN.Width:=8; //GROSOR DE TRAZO
//LETRA A
POLYLINE([POINT(50,250),POINT(50,50),POINT(150,50),POINT(150,150),
POINT(50,150),POINT(150,150),POINT(150,250)]);
//LETRA D
POLYLINE([POINT(250,250),POINT(200,250),POINT(200,50),POINT(250,50)]);
ARC(200,50,300,150,300,100,250,50);
POLYLINE([POINT(300,100),POINT(300,200)]);
ARC(300,150,200,250,250,250,300,200);
//LETRA A
POLYLINE([POINT(350,250),POINT(350,50),POINT(450,50),POINT(450,150),
POINT(350,150),POINT(450,150),POINT(450,250)]);
//LETRA L
POLYLINE([POINT(600,250),POINT(500,250),POINT(500,50)]);
//LETRA I
POLYLINE([POINT(750,250),POINT(650,250),POINT(700,250),POINT(700,50),
POINT(650,50),POINT(750,50)]);
//LETRA T
POLYLINE([POINT(850,250),POINT(850,50),POINT(800,50),POINT(900,50)]);
//INICIAL DE MI APELLIDO PATERNO (M)
POLYLINE([POINT(50,550),POINT(50,350),POINT(100,450),POINT(150,350),
POINT(150,550)]);
POLYLINE([POINT(200,550),POINT(200,500),POINT(250,500),POINT(250,550),

POINT(200,550)]);
//INICIAL DE MI APELLIDO MATERNO (A)
POLYLINE([POINT(350,550),POINT(350,350),POINT(450,350),POINT(450,450),
POINT(350,450),POINT(450,450),POINT(450,550)]);
POLYLINE([POINT(500,550),POINT(500,500),POINT(550,500),POINT(550,550),
POINT(500,550)]);
END;
end;
end.

PRCTICA N 10
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, ExtCtrls;
type
TForm1 = class(TForm)
Image1: TImage;
procedure FormPaint(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.FormPaint(Sender: TObject);
begin
//GRAFICA SIN IMAGE
WITH CANVAS DO
BEGIN
PEN.Color:=CLBLUE; //COLOR DE TRAZO
PEN.WIDTH:=5;
//GROSOR DE TRAZO
BRUSH.Color:=CLBLACK; //COLOR DE FONDO
BRUSH.STYLE:=BSDIAGCROSS; //ESTILO DE FONDO
RECTANGLE(50,50,150,150);
RECTANGLE(200,50,300,150);
RECTANGLE(350,50,450,150);
RECTANGLE(500,50,600,150);
RECTANGLE(650,50,750,150);
END;
//GRAFICA CON IMAGE
WITH IMAGE1 DO
BEGIN
CANVAS.PEN.Color:=CLRED;
CANVAS.Pen.Width:=5;
CANVAS.BRUSH.Color:=CLBLACK;
CANVAS.BRUSH.STYLE:=BSDIAGCROSS;
CANVAS.Ellipse(50,50,200,150);
CANVAS.Ellipse(250,50,400,150);
CANVAS.Ellipse(450,50,600,150);
END;
end;
end.