Professional Documents
Culture Documents
procedure MEDIDAS;
begin
clrscr; textcolor(10);
line; center('Cadastramento de Registro'); line;
gotoxy (1,23);
write ('=======================================================================
=========');
gotoxy (1,24);
write ('=\_____________________________________________________________________
_______/=');
gotoxy (1,25);
write ('=======================================================================
=========');
textcolor(15);
append(blocka);
writexy(10,5, 'MEDIDA DO BRACO DIREITO ........: '); readln(bracoD);
writexy(10,6, 'MEDIDA DO BRACO ESQUERDO .......: '); readln(bracoE);
writexy(10,7, 'MEDIDA DO ANTE-BRACO DIREITO ...: '); readln(antebD);
writexy(10,8, 'MEDIDA DO ANTE-BRACO ESQUERDO ..: '); readln(antebE);
writexy(10,9, 'MEDIDA DO TORAX ................: '); readln(torax);
writexy(10,10,'MEDIDA DA CINTURA ..............: '); readln(cintura);
writexy(10,11,'MEDIDA DA COXA DIREITA .........: '); readln(coxaD);
writexy(10,12,'MEDIDA DA COXA ESQUERDA ........: '); readln(coxaE);
writexy(10,13,'MEDIDA DA PERNA DIREITA ........: '); readln(pernaD);
writexy(10,14,'MEDIDA DA PERNA ESQUERDA .......: '); readln(pernaE);
writexy(10,15,'MEDIDA DO PESCOCO ..............: '); readln(pescoco);
writexy(10,16,'MEDIDA DO ABDOME ...............: '); readln(abdome);
writexy(10,17,'MEDIDA DO QUADRIL ..............: '); readln(quadril);
writeln(blocka, bracoD); writeln(blocka, bracoE); writeln(blocka, antebD);
writeln(blocka, antebE); writeln(blocka, torax); writeln(blocka, cintura);
writeln(blocka, coxaD); writeln(blocka, coxaE); writeln(blocka, pernaD);
writeln(blocka, pernaE); writeln(blocka, pescoco); writeln(blocka, abdome);
writeln(blocka, quadril);
writexy(25,24,'Tecle algo para voltar ao menu');
TECLA := readkey;
close(blocka);
end;
procedure Imc;
var
peso : byte;
altura : single;
x : real;
begin
clrscr; textcolor(10);
line; center('Calcule seu IMC'); line;
gotoxy (1,23);
write ('=======================================================================
=========');
gotoxy (1,24);
write ('=\_____________________________________________________________________
_______/=');
gotoxy (1,25);
write ('=======================================================================
=========');
textcolor(15);
gotoxy(10,6); writeln ('SEU PESO (EM Kg) .......: ');gotoxy(35,6); readln(peso);
gotoxy(10,8); writeln ('SUA ALTURA (EM METROS)..: ');gotoxy(35,8); readln(altura
);
gotoxy(10,12);
x := (peso / (altura * altura));
write('Seu IMC e : ',x:2:1);
readln;
end;
procedure mostrea;
var
LINHA : byte;
begin
clrscr; textcolor(10);
line; center('Apresentacao de Registros'); line;
gotoxy (1,23);
write ('=======================================================================
=========');
gotoxy (1,24);
write ('=\_____________________________________________________________________
_______/=');
gotoxy (1,25);
write ('=======================================================================
=========');
textcolor(15);
LINHA := 5;
reset(blocka);
while not eof(blocka) do
begin
readln(blocka, bracoD); readln(blocka, bracoE); readln(blocka, antebD);
readln(blocka, antebE); readln(blocka, torax); readln(blocka, cintura);
readln(blocka, coxaD); readln(blocka, coxaE); readln(blocka, pernaD);
readln(blocka, pernaE); readln(blocka, pescoco); readln(blocka, abdome);
readln(blocka, quadril);
gotoxy(5,LINHA);write ('BRACO D: ',bracoD, ' CM');
gotoxy(40,LINHA);write ('BRACO E: ',bracoE, ' CM');
gotoxy(5,LINHA+2);write ('ANTEB D: ',antebD, ' CM');
gotoxy(40,LINHA+2);write ('ANTEB E: ',antebE, ' CM');
gotoxy(5,LINHA+4);write ('TORAX : ',torax, ' CM');
gotoxy(40,LINHA+4);write ('CINTURA: ',cintura,' CM');
gotoxy(5,LINHA+6);write ('COXA D: ',coxaD, ' CM');
gotoxy(40,LINHA+6);write ('COXA E: ',coxaE, ' CM');
gotoxy(5,LINHA+8);write ('PERNA D: ',pernaD, ' CM');
gotoxy(40,LINHA+8);write ('PERNA E: ',pernaE, ' CM');
gotoxy(5,LINHA+10);write ('PESCOCO: ',pescoco,' CM');
gotoxy(40,LINHA+10);write('ABDOME : ',abdome, ' CM');
gotoxy(5,LINHA+12);write ('QUADRIL: ',quadril,' CM');
else
gotoxy(27,24); writeln('Opcao invalida - Tecle algo');
OPC := readkey;
end;
end;
I := 1;
while (I <= 10) do
begin
clrscr;
if I = 2 then textcolor(9);if I = 3 then textcolor(13);if I = 4 then textcolor(1
0);
if I = 5 then textcolor(5);if I = 6 then textcolor(11);if I = 7 then textcolor(6
);
if I = 8 then textcolor(12);if I = 9 then textcolor(14);if I = 10 then textcolor
(15);
for r := 1 to 80 do
begin
gotoxy (r,1); write ('*');gotoxy (r,12); write ('*'); gotoxy(r,18); writeln('
_');
end;
for s := 1 to 11 do
begin
gotoxy (1,s); write ('*'); gotoxy (80,s); write ('*');
end;
for t := 13 to 18 do
begin
gotoxy(1,t); writeln('º'); gotoxy(80,t); writeln('º');
end;
gotoxy(30,14); writeln('GUILHERME AUGUSTO RODRIGUES');
gotoxy(30,16); writeln('<Analise de Sistema-FACOMP>');
gotoxy(30,17); writeln(' Versao 1.0');
gotoxy(15,2); writeln (' ABOMAI_Project ');
gotoxy(15,4); writeln(' * * * * * * * * * * * * * *');
gotoxy(15,5); writeln('* * * * * * * * * * * * ');
gotoxy(15,6); writeln('* * * * * * * * * * * * * * * * *');
gotoxy(15,7); writeln('* * * * * * * * * * *');
gotoxy(15,8); writeln('* * * * * * * * * * * *');
gotoxy(15,9); writeln('* * * * * * * * *');
gotoxy(55,18); writeln('PLEASE WAY. CARGANDO...');
gotoxy (1,23);
write ('==================================================================
===============');
gotoxy (1,24);
write ('°°°°°°°°');
gotoxy (1,25);
write ('====================================================================
============');
if I = 2 then
begin
gotoxy (9,24);
write ('°°°°°°°°');
end;
if I = 3 then
begin
gotoxy (1,24);
write ('°°°°°°°°°°°°°°°°°°°°°°°°');
end;
if I = 4 then
begin
gotoxy (1,24);
write ('°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°');
end;
if I = 5 then
begin
gotoxy (1,24);
write ('°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°');
end;
if I = 6 then
begin
gotoxy (1,24);
write ('°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°');
end;
if I = 7 then
begin
gotoxy (1,24);
write ('°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°');
end;
if I = 8 then
begin
gotoxy (1,24);
write ('°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°');
end;
if I = 9 then
begin
gotoxy (1,24);
write ('°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°');
end;
if I = 10 then
begin
gotoxy (1,24);
write ('°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°
gotoxy(45,18); writeln('TANKS FOR WAY...DOWNLOAD COMPLETE ');
end;
delay(200);
I := I + 1;
if I = 10 then
delay(2000);
end;
begin
clrscr;
for r := 1 to 80 do
begin
gotoxy (r,1);textcolor(10); write ('°'); gotoxy (r,25); write ('°'); gotoxy(r,15)
; writeln('_');
textcolor(15);
end;
begin
gotoxy(6,5); write ('Entre com o seu peso (Em KG): '); readln (peso);
gotoxy(6,7); write ('Entre com a sua altura (Em CM): '); readln (altura);
gotoxy(6,9); write ('Entre com sua idade (Em anos): '); readln (anos);
writeln;
end;
begin
a := 13.7 * peso;
b := 5 * altura;
c := 6.8 * anos;
d :=66;
x := ((d + (a + b)) - c);
gotoxy(6,13); write ('O SEU TMB: ',x:7:0);
gotoxy(1,17);
write (')O TMB E UMA TAXA DE METABOLISMO BASAL. EQUACAO DE HARRIS BENEDICT PARA
HOMENS.');
gotoxy(1,19);
write (')SENDO UMA FORMULA MUITO PRECISA PARA SABER A NECESSIDADE CALORICA DIARI
A.');
gotoxy(1,21);
write (')A INGESTAO INSUFICIENTE DE CALORIAS TORNA IMPOSSIVEL O GANHO DE MASSA M
USCULAR.');
readln;
end;
begin
clrscr;
end;
for s := 1 to 25 do
begin
gotoxy (1,s);textcolor(10); write ('°'); gotoxy (80,s); write ('°');
end;
for r := 2 to 79 do
begin
gotoxy (r,1);textcolor(10); write ('°'); gotoxy (r,25); write ('°'); gotoxy(r,20);
writeln('_');
textcolor(15);
end;
tbma := 1.2;
tbmb := 1.357;
tbmc := 1.55;
tbmd := 1.725;
tbme := 1.9;
gotoxy(6,3); write ('[1] - Pouco ou nenhum exercicio diario');
gotoxy(6,6); write ('[2] - Exercicio Leve - 1/3 dias por semana');
gotoxy(6,9); write ('[3] - Exercicio Moderado - 3/5 dias por semana');
gotoxy(6,12); write ('[4] - Exercicio Pesado - 6/7 dias por semana');
gotoxy(6,15); write ('[5] Exercicio Pesado todos os dias ou 2 treinos ao dia');
gotoxy(6,22); write ('Escolha uma opcao: ');readln(opcao);
if opcao = 1 then
begin
o := peso * 2;
tbm := x * tbma;
gotoxy(6,22);
write ('A sua necessidade calorica e: ',tbm:6:0,' Calorias Diarias');
gotoxy(6,24);
write ('A sua necessidade proteica e: ',o:4:0,' Proteinas Diarias');
end;
if opcao = 2 then
begin
o := peso * 2;
tbm := x * tbmb;
gotoxy(6,22);
write ('A sua necessidade calorica e: ',tbm:6:0,' Calorias Diarias');
gotoxy(6,24);
write ('A sua necessidade proteica e: ',o:4:0,' Proteinas Diarias');
end;
if opcao = 3 then
begin
o := peso * 2;
tbm := x * tbmc;
gotoxy(6,22);
write ('A sua necessidade calorica e: ',tbm:6:0,' Calorias Diarias');
gotoxy(6,24);
write ('A sua necessidade proteica e: ',o:4:0,' Proteinas Diarias');
end;
if opcao = 4 then
begin
o := peso * 2;
tbm := x * tbmd;
gotoxy(6,22);
write ('A sua necessidade calorica e: ',tbm:6:0,' Calorias Diarias');
gotoxy(6,24);
write ('A sua necessidade proteica e: ',o:4:0,' Proteinas Diarias');
end;
if opcao = 5 then
begin
o := peso * 2;
tbm := x * tbme;
gotoxy(6,22);
write ('A sua necessidade calorica e: ',tbm:6:0,' Calorias Diarias');
gotoxy(6,24);
write ('A sua necessidade proteica e: ',o:4:0,' Proteinas Diarias');
end;
readln;
begin
clrscr;
textcolor(15);
for r := 1 to 80 do
begin
gotoxy (r,1);textcolor(10); write ('°'); gotoxy (r,25); write ('°'); textcolor(15
);
end;
begin
gotoxy(1,4);
write (')PARA GARANTIR O GANHO DE MASSA MUSCULAR O ESSENCIAL E MANTER UMA INGES
TAO');
gotoxy(1,8);
write (' DE 2 A 3 GRAMAS DE PROTEINA POR Kg DO CORPO.');
gotoxy(1,12);
write (')EXEMPLO: UMA PESSOA COM 70Kg DEVE INGERIR 140 GRAMAS DE PROTEINA POR DI
A.');
gotoxy(1,16);
write(')SE VOCE DESEJA GANHAR MASSA MUSCULAR (HIPERTROFIA) DEVE CONSUMIR UM POUC
O MAIS.');
gotoxy(1,20);
write(')PARA GARANTIR QUE ESTA INGERIDO MAIS, ADICIONE 500 CALORIAS NO RESULTADO
TOTAL DA EQUACAO.');
readln;
end;
end;
end;
end;
{=========================sub-programa do menu interno para dieta=========FIM==}
{=========================sub-programa do menu interno para utilidades=========}
procedure ferramentas;
var
op : char;
c, a, b : real;
opcao, t : byte;
I : integer;
velocidade,tempo,consumo,distancia,litros,dinheiro,valor:real;
ta, tb : byte;
begin
clrscr;
line;gotoxy(1,2);center('MENU DE FERRAMENTAS');line;line;
gotoxy (2,5);
write('[1] - CALCULO DE CUSTO DE VIAGEM DE CARRO');
gotoxy (2,7);
write('[3] - CALCULADORA');
gotoxy (2,21);
write('[0] - Sair');
gotoxy (68,20);
write ('[][][][][][]');
gotoxy (68,21);
write ('[]');
gotoxy (78,21);
write ('[]');
gotoxy (68,22);
write ('[][][][][][]');
gotoxy(70,21);
write('Opcao:');
readln(opcao);
if opcao = 3 then
begin
I := 1;
while (I <= 100) do
begin
clrscr;
for ta := 1 to 80 do
begin
gotoxy(ta,1);write ('=');gotoxy(ta,2);write('°');gotoxy(ta,3);write('=');
gotoxy (ta,23);write ('=');gotoxy (ta,24);write ('°');gotoxy (ta,25);write ('=');
end;
for tb := 2 to 24 do
begin
gotoxy(1,tb);
write ('°');
gotoxy(80,tb);
write ('°');
end;
gotoxy(5,6);
write('Valor 1 => ');
readln(a);
gotoxy(5,7);
write('valor 2 => ');
readln(b);
gotoxy (31,14);
write ('[][][][][][][][][]');
gotoxy (31,15);
write ('[]');
gotoxy (47,15);
write ('[]');
gotoxy (31,16);
write ('[][][][][][][][][]');
gotoxy(33,15);
writeln('opcao:[+-/*]');
gotoxy(46,15);
op := readkey;
case op of
'+':c:=a+b;
'-':c:=a-b;
'/':c:=a/b;
'*':c:=a*b;
end;
gotoxy(2,18);
writeln(' \__________',c:10:0,' ___________________________________
_________/');
gotoxy(2,22);
write('Deseja sai? Se sim digite "0" : ');
gotoxy(35,22); read(t);
if t = 0 then
exit;
I := I + 1;
end;
end;
if opcao = 1 then
begin
Clrscr;
for ta := 1 to 80 do
begin
gotoxy(ta,1);write('º');gotoxy(ta,11);write('_');gotoxy(ta,13);write('_');
gotoxy(ta,2);write('_');gotoxy(ta,25);write('º');
end;
for tb := 2 to 24 do
begin
gotoxy(1,tb);write('º');gotoxy(80,tb);write('º');
end;
gotoxy(3,4);
write('DIGITE A VELOCIDADE (EM KM/H): ');readln(VELOCIDADE);
gotoxy(3,6);
write('DIGITE O TEMPO DO PERCURSO (EM MIN): ');readln(TEMPO);
gotoxy(3,8);
write('DIGITE O CONSUMO DO CARRO (EM LITROS): ');readln(CONSUMO);
gotoxy(3,10);
write('DIGITE O VALOR DO COMBUSTIVEL: ');readln(VALOR);
distancia := (velocidade / 60) * tempo;
litros := distancia / consumo;
dinheiro := litros * valor;
begin
textcolor (15);
gotoxy(4,12);
write('\__________________________________Resultado: _________________________
____/');
gotoxy(3,15);
writeln('Velocidade: ',velocidade:6:0,' KM/H');
gotoxy(3,17);
writeln('Vempo: ',tempo:6:0,' MIN');
gotoxy(3,19);
writeln('Distancia: ',distancia:6:0,' KM');
gotoxy(3,21);
writeln('Litros: ',litros:6:2,' CONSUMO EM LITROS');
gotoxy(3,23);
write('Desembolsar R$: ',dinheiro:4:2);
readln;
end;
end;
end;
{=========================sub-programa do menu interno para utilidades====FIM==}
{=========================sub-programa do menu interno pinta moldura===========}
procedure Cores;
var
tinta: integer;
begin
clrscr;
line;gotoxy(1,2);center('PINTE A TELA');line;line;
gotoxy (20,19);write ('[][][][][][]');gotoxy (20,20);write ('[]');gotoxy (30,20)
;
write ('[]');gotoxy (20,21);write ('[][][][][][]');gotoxy (15,12);
begin
write('Nota: para mudar a cor basta refazer o processo');
gotoxy(22,20);
write('Opcao:');
readln (tinta);
if tinta = 1 then
begin
textcolor (1);
gotoxy (15,15);
write('NOVA COR DE TEMA PRONTO!');delay(800);
end
else
if tinta = 2 then
begin
textcolor (2);
gotoxy (15,15);
write('NOVA COR DE TEMA PRONTO!');delay(800);
end
else
if tinta = 3 then
begin
textcolor (3);
gotoxy (15,15);
write('NOVA COR DE TEMA PRONTO!');delay(800);
end
else
if tinta = 4 then
begin
textcolor (4);
gotoxy (15,15);
write('NOVA COR DE TEMA PRONTO!');delay(800);
end
else
if tinta = 5 then
begin
textcolor (5);
gotoxy (15,15);
write('NOVA COR DE TEMA PRONTO!');delay(800);
end
else
if tinta = 6 then
begin
textcolor (6);
gotoxy (15,15);
write('NOVA COR DE TEMA PRONTO!');delay(800);
end
else
if tinta = 7 then
begin
textcolor (7);
gotoxy (15,15);
write('NOVA COR DE TEMA PRONTO!');delay(800);
end
else
if tinta = 8 then
begin
textcolor (8);
gotoxy (15,15);
write('NOVA COR DE TEMA PRONTO!');delay(800);
end
else
if tinta = 9 then
begin
textcolor (9);
gotoxy (15,15);
write('NOVA COR DE TEMA PRONTO!');delay(800);
end
else
if tinta = 10 then
begin
textcolor (10);
gotoxy (15,15);
write('NOVA COR DE TEMA PRONTO!');delay(800);
end
else
if tinta = 11 then
begin
textcolor (11);
gotoxy (15,15);
write('NOVA COR DE TEMA PRONTO!');delay(800);
end
else
if tinta = 12 then
begin
textcolor (12);
gotoxy (15,15);
write('NOVA COR DE TEMA PRONTO!');delay(800);
end
else
if tinta = 13 then
begin
textcolor (13);
gotoxy (15,15);
write('NOVA COR DE TEMA PRONTO!');delay(800);
end
else
if tinta = 14 then
begin
textcolor (14);
gotoxy (15,15);
write('NOVA COR DE TEMA PRONTO!');delay(800);
end
else
if tinta = 15 then
begin
textcolor (15);
gotoxy (15,15);
write('NOVA COR DE TEMA PRONTO!');delay(800);
end
end;
clrscr;
end;
{=========================sub-programa do menu interno pinta moldura======FIM==}
{=========================sub-programa do menu interno inicia jogo=============}
procedure game;
var
opcao : byte;
begin
clrscr; textcolor(10);
line;gotoxy(1,2);center('ENTRETERIMENTO');line;line;textcolor(15);
gotoxy (2,5);
write('[1] - JOGO MINAS DE BOCAIUVA');
gotoxy (2,9);
write('[0] - Sair');
gotoxy (68,20);
write ('[][][][][][]');
gotoxy (68,21);
write ('[]');
gotoxy (78,21);
write ('[]');
gotoxy (68,22);
write ('[][][][][][]');
gotoxy(70,21);
write('Opcao:');
readln(opcao);
if opcao = 1 then
begin
jogominas;
end;
end;
{=========================sub-programa do menu interno inicia jogo========FIM==}
{=========================sub-programa moldura dos arquivos existentes=========}
procedure moldarquivo;
begin
I := 1;
repeat
textcolor(12);gotoxy(20,20);
write('APAGANDO ARQUIVOS.');delay(20);
gotoxy(20,20);
write('APAGANDO ARQUIVOS .');delay(20);
gotoxy(20,20);
write('APAGANDO ARQUIVOS .');delay(20);
gotoxy(20,20);
write('APAGANDO ARQUIVOS ');delay(20);
if I = 6 then begin
gotoxy(20,20);write('SEU ARQUIVO FOI DELETADO COM SUCESSO!');delay(500);
end;
I := I + 1;
until I = 7;
end;
{=========================sub-programa moldura dos arquivos existentes====FIM==}
{=========================sub-programa que apaga os arquivos existentes========}
procedure ARQUIVOX;
var {para apagar o arquivo}
cadcpf : text;
begin
assign(cadcpf, 'cadcpf.dat');
rewrite(cadcpf);
clrscr;
close(cadcpf);
moldarquivo;
textcolor(15);
end;
procedure antropometria; {para apagar o arquivo}
var
blocka : text;
begin
assign(blocka, 'blocka.dat');
rewrite(blocka);
clrscr;
close(blocka);
moldarquivo;
textcolor(15);
end;
procedure arquivo_usuario; {para apagar o arquivo}
var
ARQTXT : text;
begin
assign(ARQTXT,'ARQTXT.DAT');
rewrite(ARQTXT);
clrscr;
close(ARQTXT);
moldarquivo;
textcolor(15);
end;
procedure arquivo_recado; {para apagar o arquivo}
var
agenda : text;
begin
assign(agenda, 'agenda.dat');
rewrite(agenda);
clrscr;
close(agenda);
moldarquivo;
textcolor(15);
end;
procedure dados_treino; {para apagar o arquivo}
var
block : text;
begin
assign(block, 'block.dat');
rewrite(block);
clrscr;
close(block);
moldarquivo;
textcolor(15);
end;
procedure reserva_apartamentos; {para apagar o arquivo}
var
hospede : text;
begin
assign(hospede,'hospede.DAT');
rewrite(hospede);
clrscr;
close(hospede);
moldarquivo;
textcolor(15);
end;
procedure cadhospedemenuinicial; {para apagar o arquivo}
var
cadhotel : text;
begin
assign(cadhotel,'cadhotel.DAT');
rewrite(cadhotel);
clrscr;
moldarquivo;
close(cadhotel);
exit;
end;
procedure seguranca;
var
senha : string;
op, opcao : byte;
begin
clrscr; textcolor(10);
line;gotoxy(1,2);
center('BEM VINDO A CENTRO DE SEGURANCA E CONFIGURACAO!');line;line; textcolor(1
5);
begin
gotoxy (36,12);
write ('[][][][][][][]');
gotoxy (36,13);
write ('[]');
gotoxy (48,13);
write ('[]');
gotoxy (36,14);
write ('[][][][][][][]');
gotoxy (38,13);
end;
readln (senha);
if senha<>'facomp 2.0'then {senha apagar o arquivo}
begin
textcolor(12);
gotoxy (35,18);
write('ACESSO NAO PERMITIDO');delay(800);
exit;
end;
if senha='facomp 2.0'then
begin
textcolor (10);
gotoxy (35,18);
write('ACESSO CONCEDIDO');delay(800);
clrscr;
line;line;line; textcolor(15);
gotoxy (2,5);
write('[2] - APAGAR TODOS OS ARQUIVOS');
gotoxy (2,21);
write('[0] - Sair');
gotoxy (68,20);
write ('[][][][][][]');
gotoxy (68,21);
write ('[]');
gotoxy (78,21);
write ('[]');
gotoxy (68,22);
write ('[][][][][][]');
gotoxy(70,21);
write('Opcao:');
readln(opcao);
if opcao = 2 then
begin
clrscr; textcolor(10);
line;line;line; textcolor(15); {relacao dos arquivos que podem ser apagados}
gotoxy (2,5);
write('[1] - APAGAR ARQUIVO DE RECADOS');
gotoxy (2,7);
write('[2] - APAGAR ARQUIVO DE CADASTRO DE COLABORADORES');
gotoxy (2,9);
write('[3] - APAGAR ARQUIVO DE DADOS DE TREINO');
gotoxy (2,11);
write('[4] - APAGAR ARQUIVO DE ANTROPOMETRIA');
gotoxy (2,13);
write('[5] - APAGAR ARQUIVO DE RESERVA DE APARTAMENTOS');
gotoxy( 2,15);
write('[6] - APAGAR ARQUIVO CADATRO DE HOSPEDES');
gotoxy( 2,17);
write('[7] - APAGAR ARQUIVO CADATRO DE CPF');
gotoxy (2,21);
write('[0] - Sair');
gotoxy (68,20);
write ('[][][][][][]');
gotoxy (68,21);
write ('[]');
gotoxy (78,21);
write ('[]');
gotoxy (68,22);
write ('[][][][][][]');
gotoxy(70,21);
write('Opcao:'); readln(op);
if op = 0 then
begin
exit;
end;
if op = 1 then
begin
arquivo_recado;
exit;
end;
end;
if op = 2 then
begin
arquivo_usuario;
exit;
end;
end;
if op = 3 then
begin
dados_treino;
exit;
end;
if op = 4 then
begin
antropometria;
exit;
end;
if op = 5 then
begin
reserva_apartamentos;
exit;
end;
if op = 6 then
begin
cadhospedemenuinicial;
exit;
end;
if op = 7 then
begin
ARQUIVOX;
exit;
end;
end;
{=========================sub-programa que apaga os arquivos existentes===FIM==}
{=========================MENU INTERNO=========================================}
procedure menu;
var
opcao: byte;
k, z: integer;
hh,mm,ss,cs:word;
begin
textcolor(15);
repeat
clrscr;
for k := 1 to 80 do begin
gotoxy(k,1);write(#205);gotoxy(k,3);write('_');gotoxy(k,25);write ('=');
gotoxy(k,24);write ('º');
end;
for z := 2 to 24 do begin
gotoxy(1,z);write('º');gotoxy(80,z);write('º');
end;
gotoxy (2,2);
textcolor(10);write (' ____MENU INTERNO____
');
textcolor(15);
gotoxy (2,5);
write('[1] - LER RECADO');
gotoxy (2,7);
write('[2] - INCLUIR RECADOS');
gotoxy (2,9);
write('[3] - JOGOS');
gotoxy (2,11);
write('[4] - DIETA PARA HOSPEDES');
gotoxy (2,13);
write('[5] - LISTA DE RECADOS');
gotoxy (2,15);
write('[6] - ORDENAR RECADO');
gotoxy (2,17);
write('[7] - CORES E TEMAS');
gotoxy (2,19);
write('[8] - FERRAMENTAS');
gotoxy (40,5);
write('[9] - COLABORADORES CADASTRADOS');
gotoxy (40,7);
write('[10] - PROTECAO DE TELA');
gotoxy (40,11);
write('[11] - CENTRAL DE SEGURANCA');
gotoxy (2,21);
write('[0] - Sair');
Begin
gotoxy(56,2);Write ('Hora atual:'); {relogio em tempo real}
Repeat
gettime(hh,mm,ss,cs);
gotoxy(68,2); Write (hh,':',mm,':',ss);
until keypressed;
end;
gotoxy (68,20);
write ('[][][][][][]');
gotoxy (68,21);
write ('[]');
gotoxy (78,21);
write ('[]');
gotoxy (68,22);
write ('[][][][][][]');
gotoxy(70,21);
write('Opcao:');readln(opcao);
case opcao of
1: senha;
2: incluir;
3: game;
4: dieta;
5: listar;
6: ordenar;
7: Cores;
8: ferramentas;
9: cadastro;
10: Protecao_de_tela;
11: seguranca;
end;
until (opcao = 0);
end;
procedure abrir;
begin
assign(agenda, 'agenda.dat');
{$I-}
reset(agenda);
{$I+}
if(IOResult <> 0) then
rewrite(agenda);
menu;
end;
begin{start}
abrir;
close(agenda);
end;
{=========================MENU INTERNO====================================FIM==}
{=========================MENU PRINCIPAL=======================================}
procedure menu;
var
opcao: byte;
hh,mm,ss,cs:word;
begin
Begin
textcolor(10);
gotoxy(1,25);write(#200);gotoxy(1,1);write(#201);
gotoxy(80,25);write(#188);gotoxy(80,1);write(#187);
for I:= 2 to 79 do begin
gotoxy(I,1);write(#205);
end;
for I:= 2 to 24 do begin
gotoxy(80,I);write(#186);
end;
for I:= 2 to 24 do begin
gotoxy(1,I);write(#186);
end;
for I:= 2 to 79 do begin
gotoxy(I,25);write(#205);
gotoxy(2,22);write('____________________________________________________________
__________________');
end;
textcolor(12);gotoxy(37,19);write('|Wi-Max'#169'|');
textcolor(15);
gotoxy(14,5);write ('[][]');
textcolor(14);gotoxy(16,6);write('[][]');gotoxy(20,8);write('[]');gotoxy(20,12);
write('[]');
gotoxy(20,16);write('[]');gotoxy(20,17);write('[]');gotoxy(12,19);write('[][][][
][]');
gotoxy(14,9);write('[][]');gotoxy(14,10);write('[][][]');gotoxy(14,14);write('[]
[][][]');
gotoxy(10,7);write('[][]');gotoxy(20,7);write('[]');
textcolor(3);gotoxy(10,15);write('°');
textcolor(15);gotoxy(11,15);write('][][][][][]');gotoxy(14,7);write('[][][]');
gotoxy(18,9);write('[][]');gotoxy(20,10);write('[]');
gotoxy(12,6);write ('[][]');
gotoxy(9,7);write ('');
gotoxy(9,8);write ('[°][][][][]');
gotoxy(9,9);write ('[°][]');
gotoxy(9,10);write('[°][]');
gotoxy(9,11);write('[°][][][][][]');
gotoxy(9,12);write('[°][][][][]');
gotoxy(9,13);write('[°][][][][][]');
textcolor(13);gotoxy(40,13);write('BOCAIUVA');gotoxy(45,14);write('PALACE');
gotoxy(50,15);write('HOTEL');textcolor(15);
gotoxy(9,14);write('[°][]');
gotoxy(9,15);write('[');
gotoxy(9,16);write('[°][][][][]');
gotoxy(9,17);write('[°][][][][]');
gotoxy(9,18);write('[°][][][][][]');
gotoxy(37,18);write('+_______+');
gotoxy(9,19);write('[°]');
textcolor(14);gotoxy(33,19);write('*');
textcolor(14);gotoxy(60,19);write('*'); textcolor(15);
textcolor(14);gotoxy(30,23);textcolor(11);write('GUILHERME AUGUSTO RODRIGUES');
gotoxy(30,24);write('<Analise de Sistema-FACOMP> <Versao 1.0>');textcolo
r(15);
textcolor(14); gotoxy(16,4);write('Y');textcolor(15);
gotoxy(3,20);write(' __ [°][][][][][] | |_______|ª | __
_____________');
gotoxy(2,21);write('\[°°]_[][][][__][][][]__(--)___|____|____|________________|__/|_
___/\____/\___');
repeat
textcolor(6);gotoxy(3,3);write ('< ( ( ((( ))) ) ) ) ) )
) )');
delay(10);
textcolor(15);gotoxy(3,3);write (' ( ( ((( ))) ) ) ) )
) )');
textcolor(15);
until keypressed;
readln;
end;
repeat
clrscr; line;gotoxy(2,2);center ('BOCAIUVA PALACE HOTEL ');textcolor(15);
gotoxy(5,5);
write('[1] - CADASTRAR HOSPEDE');
gotoxy(5,7);
write('[2] - DADOS DO CLIENTE');
gotoxy(5,9);
write('[3] - LISTA DE CLIENTES');
gotoxy(5,11);
write('[4] - ORDENAR A LISTA');
gotoxy(5,13);
write('[5] - RESERVA');
gotoxy(5,15);
write('[6] - ASSOCIE AO CLUBE');
gotoxy(40,5);
write('[7] - FUNCIONAMENTO E SEGURANCA');
gotoxy(40,7);
write('[8] - CPF CADASTRADO');
gotoxy(40,9);
write('[9] - LER CPF');
gotoxy(4,2);
write('AJUDA -> 11 <-');
gotoxy(5,21);
write('[0] - FECHAR O PRAGRAMA');
begin
gotoxy(56,2);Write ('Hora atual:'); {relogio em tempo real}
Repeat
gettime(hh,mm,ss,cs);
gotoxy(68,2); Write (hh,':',mm,':',ss);
until keypressed;
end;
gotoxy(45,22);write('Opcao: ');
readln(opcao);
case opcao of
1: incluir;
2: pesquisar('', 1);
3: listar;
4: ordenar;
5: reserva;
6: associados;
7: segurancainterno;
8: arquivocpf;
9: leitura;
10 : criaarquivo;
11 : ajuda;
end;
until (opcao = 0);
end;
procedure abrir;
begin
assign(cadhotel, 'cadhotel.dat');
{$I-}
reset(cadhotel);
{$I+}
if(IOResult <> 0) then
rewrite(cadhotel);
menu;
end;
{=========================MENU PRINCIPAL==================================FIM==}
begin {start}
abrir;
close(cadhotel);
I := 1;
repeat
textcolor(12);
gotoxy(45,25);write('SALVANDO SUAS CONFIGURACOES .');
delay(200);
gotoxy(45,25);write('SALVANDO SUAS CONFIGURACOES .');
delay(200);
gotoxy(45,25);write('SALVANDO SUAS CONFIGURACOES .');
gotoxy(45,25);write('SALVANDO SUAS CONFIGURACOES ');
delay(200);
I := I + 1;
until I = 7;
end. {fim do programa}