{
*****************************************************************************
* *
* Programador..........: Pedro Miguel de Andrade Tarrinho *
* Idade................: 16 anos *
* Morada...............: R. Jos Rodrigues da Silva Jnior N 401 *
* 2 ESQ. Frente - 4470 VERMOIM - MAIA *
* Telefone.............: 02 9486220 *
* Ano de escolaridade..: 10 ano na Escola Secundria da Maia *
* Data - Inicio........: 10-03-94 *
* Data - Fim ..........: 27-03-94 *
* Linguagem............: PASCAL 6 *
* *
* *
*****************************************************************************
}
Program sistema (input,output);
uses crt,dos;
type vect=array [1..10] of real;
const
enter:char=chr(13);
esc:char=chr(27);
setapcima:Char= chr(72);
setapbaixo:Char= chr(80);
var
OPCOES :ARRAY [1..10] OF STRING;
vARIAVEL:STRING;
MOUSE,metodo,pi,vezes,nequa,MATRIZ,ok,i,j,sair,C,OPCA,NOPCA:integer;
saire,mouse1,sai,ik,ink,inki,tecla:char;
TOTAL:REAL;
coefi:array [0..4, 0..4] of real;
term:array [1..5] of real;
x:vect;
vector:array [1..5] of string;
procedure cor (letra,fundo:integer);
begin
textcolor (letra);
textbackground (fundo);
end;
procedure som (altura,tempo:integer);
begin
sound (altura);
delay (tempo);
nosound
end;
procedure AUTOR;
begin
cor (9, 1);
GOTOXY (59,1);
write ('Pedro Tarrinho--1994');
end;
procedure Boxd (l1, c1, l2, c2, C:integer);
VAR LAI,LAJ:INTEGER;
begin
cor (0,0);
FOR LAi := l1 + 1 TO l2 + 1 do begin
FOR LAj := c1 + 2 TO c2 + 2 do begin
GOTOXY (LAJ,LAi);
write ('');
end;
end;
cor (C,0);
FOR LAi := l1 TO l2 do begin
FOR LAj := c1 TO c2 do begin
GOTOXY (LAJ,LAi);
write ('');
end;
end;
AUTOR;
end;
procedure box1 (l1, c1, l2, c2, corp, corf:integer);
VAR LAI,LAJ:INTEGER;
begin
cor (corp, corf);
GOTOXY (C1,l1);
write ('');
GOTOXY (C2,l1);
write ('');
GOTOXY (C1,l2);
write ('');
GOTOXY (C2,l2);
write ('');
FOR LAi := c1 + 1 TO c2 - 1 do begin
GOTOXY (LAI,l1);
write ('');
GOTOXY (LAI,l2);
write ('');
end;
FOR LAi := l1 + 1 TO l2 - 1 do begin
GOTOXY (c1,LAI);
write ('');
GOTOXY (c2,LAI);
write ('');
end;
AUTOR;
end;
PROCEDURE LIMPAR(LINHA,COLUNA,LINHA2,COLUNA2,CORE:INTEGER);
VAR LAI,JAI:INTEGER;
BEGIN
COR(CORE,0);
FOR LAI:=LINHA TO LINHA2 DO
BEGIN
FOR JAI:=COLUNA TO COLUNA2 DO
BEGIN
GOTOXY(JAI,LAI);
WRITE('');
END;
END;
END;
procedure ENTRAda ;
var
faz:integer;
begin
repeat
enter := CHR(13);
cor (3, 1); clrscr;
GOTOXY (3,6); write (' ');
GOTOXY (3,7); write (' ');
GOTOXY (3,8); write (' Este programa tem como objectivo resolver um sistema ');
GOTOXY (3,9); write (' de N equaes pelo mtodo de Seidel ');
GOTOXY (3,10); write (' ');
GOTOXY (3,11); write (' ATENO: A DIAGONAL TEM QUE SER DOMINANTE ');
GOTOXY (3,12); write (' ');
GOTOXY (3,13); write (' BY PEDRO MIGUEL DE ANDRADE TARRINHO ');
GOTOXY (3,14); write (' ');
GOTOXY (3,15); write (' ');
GOTOXY (3,16); write (' ');
cor (19, 1); GOTOXY (22,15);
write (' PRIMA