Pascal/Turbo Pascal - Ramon necesito ayuda con programas

 
Vista:

Ramon necesito ayuda con programas

Publicado por rfr2000 (12 intervenciones) el 25/01/2013 10:24:22
Generación de una retícula de referencia
- Cálculo de la altitud media
- Obtención de cortes topográficos (perfiles) según las direcciones de X e Y
- Cálculo de orientaciones
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder

Ramon necesito ayuda con programas

Publicado por ramon (2158 intervenciones) el 25/01/2013 17:52:36
Primero me estas ablando de topografía creo si o no.
Segundo me puedes dar mas información de lo que necesitas por ejemplo:

retícula de referencia medidas 10 X 10 o cuanto la retícula y de 1 X 1 o cuanto.
De lo demás un poco mas de información de como lo quieres.
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar

Ramon necesito ayuda con programas

Publicado por rfr2000 (12 intervenciones) el 26/01/2013 01:00:20
El programa de representación de puntos en isometría se ha modificado para que admita ficheros de tipo modelo digital de elevación (o modelo digital del terreno). Estos ficheros (DEM) representan en el eje Z la altura asociada a dos coordenadas X, Y, de forma que z = f(X, Y) es decir, representan una superficie.Se pretende añadir al programa una serie de utilidades para trabajar con ficheros DEM, en particular se marcan como tareas:
Generación de una retícula de referencia (3) 1x1
- Cálculo de la altitud media (1)
- Obtención de cortes topográficos (perfiles) según las direcciones de X e Y (4)
- Cálculo de orientaciones (7)
Programa inicial de partida: representación isométrica
Si, es topografía.
Gracias.
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar

Ramon necesito ayuda con programas

Publicado por Daniel martinez (2 intervenciones) el 27/01/2013 16:47:36
Hola ramon! Necesito tu ayuda urgente.. Es hacer un programa dado el nombre,cedula,nota del alumno. SE muestren:
a)mostrar la mayor nota
b)mostrar la menor nota
c)resultado de las dos notas
d)los resultados del 4to alumno
e)resultado del 8vo alumno y las notas
f)hacer la busqueda de una cedula...

si me puedes ayudar te lo agradesco....es urgente xfa!!
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar

Ramon necesito ayuda con programas

Publicado por ramon (2158 intervenciones) el 28/01/2013 21:11:51
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
{A ver si es esto esta en modo gráfico}
 
program topografia;
 uses
    crt, dos;
  type
    string12 = string[12];
 
  var
      x, y : integer;
    screenx, screeny : word;
    page, bpp : byte;
    posxx, posyy, posx, posy : integer;
 
  function realstring(n : real) : string12;
  var
    nus : string12;
   begin
      realstring := '';
      str(n:8:4,nus);
      realstring := copy(nus,1,length(nus));
   end;
 
  function integerstring(n : integer) : string12;
  var
    s : string12;
    begin
       str(n,s);
       integerstring := copy(s,1,length(s));
    end;
 
  procedure iniciografico;
  var
     i : integer;
     entorno : string;
  begin
     asm
       mov ax,4f02h
       mov bx,$101
       int 10h
     end;
      bpp := 16;
      screenx := 640;
      screeny := 480;
  end;
 
  procedure closegraficos;
  begin
    asm
      mov ah,00h
      mov al,03h
      int 10h
    end;
    bpp := 0;
    screenx := 80;
    screeny := 24;
  end;
 
  procedure putpixel(x, y : word; c : byte);
  var
      banco : word;
      despla : longint;
   begin
    despla := longint(y) * 640 + x;
    banco := despla shr 16;
    despla := despla - (banco shl 16);
    if banco <> page then
    begin
    page := banco;
    asm
      mov ax,4F05h
      mov dx,banco
      int 10h
    end;
  end;
  asm
    mov ax,0A000h
    mov es,ax
    mov di,word(despla)
    mov al,c
    mov es:[di],al
   end;
 end;
 
  Procedure Clearscreen;
  var
    t, l : integer;
  begin
    for l := 1 to 480 do
    begin
        for t := 1 to 640 do
        putpixel(t,l,0);
    end;
 end;
 
 procedure outtextxy(x, y : word; texto : string);
 var
   lx, ly : word;
   col, bit, posf, font, posi : byte;
   i, t : integer;
  begin
     ly := y;
   for posi := 1 to Length(texto) do
   begin
      lx := x;
      y := ly;
   for posf := 0 to 7 do
   begin
     font := mem[$ffa6:$e + (ord(texto[posi]) shl 3) + posf];
      for bit := 7 downto 0 do
      begin
       if (font and (1 shl bit)) <> 0 then
        putpixel(x, y, 15);
        x := x + 1;
       end;
          y := y + 1;
          x := lx;
     end;
          x := x + 8;
     end;
   end;
 
   procedure linea(x1, y1, x2, y2 : Integer; color : byte);
   var
     dd, dx, dy, ai, bi, xi, yi : Integer;
  begin
    if (x1 < x2) then
    begin
      xi := 1;
      dx := x2 - x1;
    end
 else
   begin
     xi := - 1;
     dx := x1 - x2;
   end;
   if (y1 < y2) then
   begin
      yi := 1;
      dy := y2 - y1;
   end
 else
    begin
        yi := - 1;
        dy := y1 - y2;
    end;
     putPixel(x1, y1, color);
    if (dx > dy) then
    begin
       ai := (dy - dx) * 2;
       bi := dy * 2;
       dd := bi - dx;
    repeat
      if (dd >= 0) then
      begin
        y1 := y1 +  yi;
        dd := dd +  ai;
      end
  else
       dd := dd +  bi;
       x1 := x1 + xi;
      putPixel(x1, y1, color);
    until (x1 = x2);
    end
  else
   begin
    ai := (dx - dy) * 2;
    bi := dx * 2;
    dd := bi - dy;
    repeat
      if (dd >= 0) then
      begin
        x1 := x1 +  xi;
        dd := dd + ai;
      end
   else
      dd := dd + bi;
      y1 := y1 +  yi;
      putPixel(x1, y1, color);
    until (y1 = y2);
    end;
  end;
 
   procedure cuadricula(xl, yl, cu : integer);
   var
      t, yy, xx : integer;
   begin
    yy := round(cu * 0.15);
    xx := yy * cu;
       for t := 0 to cu do
       begin
       linea(xl,yl + (t * yy),xl + xx,yl + (t * yy),15);
       linea(xl + (t * yy),yl,xl + (t * yy),yl + xx, 15);
       end;
       posxx := xl;
       posyy := yl;
       posx := trunc((xl + xx) / 2);
       posy := trunc((yl + xx) / 2);
   end;
 
   procedure borrado(xb, yb : integer);
   var
     t, i : integer;
    begin
       for t := 0 to 7 do
        for i := 0 to 7 do
        putpixel(xb + t,yb + i,0);
    end;
 
   function entradato(xd, yd : integer) : real;
   var
     error, d, xi, yi : integer;
     tec : char;
     dato : string12;
     ton : real;
   begin
      d := 1;
    repeat
      tec := readkey;
      if tec in[#48..#57,#46] then
      begin
         dato[d] := tec;
         dato[0] := chr(d);
         outtextxy(xd + (d * 8),yd,dato[d]);
         d := d + 1;
         if d > 12 then
         d := 12;
      end;
      if tec = #8 then
      begin
         d := d - 1;
         if d < 1 then
         d := 1;
         borrado(xd + (d * 8),yd);
         dato[d] := ' ';
         dato[0] := chr(d);
         outtextxy(xd + (d * 8),yd,' ');
      end;
    until tec = #13;
    val(dato,ton,error);
    if error <> 0 then
    begin
       delete(dato,error,1);
       val(dato,ton,error);
    end;
      entradato := ton;
   end;
 
  procedure calculo_orientacion;
  var
    orient, ejx, ejy, ejxx, ejyy : real;
    i, d : integer;
  begin
     outtextxy(100,269,'Entre Posicion x : ');
     ejx := entradato(244,269);
     outtextxy(100,279,'Entre Posicion xx : ');
     ejxx := entradato(244,279);
     outtextxy(100,289,'Entre Posicion y : ');
     ejy := entradato(244,289);
     outtextxy(100,299,'Entre Posicion yy : ');
     ejyy := entradato(244,299);
     orient := (ejx - ejxx) / (ejy - ejyy);
     outtextxy(100,309,'La Orientacion Es = ' + realstring(orient));
     for i := 0 to 5 do
       for d := 0 to 5 do
       putpixel(posx + trunc(ejx) + i,posy + trunc(ejy) + d,10);
     linea(posx + trunc(ejx),posy + trunc(ejy),
                          posx + trunc(ejxx),posy + trunc(ejyy),10);
     for i := 0 to 5 do
       for d := 0 to 5 do
       putpixel(posx + trunc(ejxx) + i,posy + trunc(ejyy) + d,10);
  end;
 
  procedure altitud_media;
  var
     yc : array[1..8] of real;
     t, marca, i : integer;
     gf, ent, altu, almed : real;
  begin
     marca := 6;
     outtextxy(100,271,'Entre Mediciones Alturas [Y]');
     i := 1;
      while i < (marca + 1) do
      begin
         outtextxy(100,291 + (i * 8),'Entre Altura Num.[' +
         integerstring(i) + '] y : ');
         ent := entradato(308,291 + (i * 8));
         yc[i] := ent;
         ent := 1;
         i := i + 1;
      end;
       altu := 0;
       gf := 0;
       for t := 1 to i - 1 do
       begin
       altu := altu + yc[t];
       if gf < yc[t] then
       gf := yc[t];
       end;
       almed := (altu / (i - 1));
       linea(posx,(posy * 2),posx,(posy * 2) - trunc(gf),13);
       linea(posx - 5,(posy * 2),posx - 5,(posy * 2) - trunc(almed),10);
       outtextxy(100,291 + ((i + 1) * 8),'La Altura Media Es : ' +
                              realstring(almed));
  end;
 
  procedure cortes_topograficos(marca : integer);
  var
    ent, xc, xxc, yyc : real;
    yc : array[1..8] of real;
    p, desp, t, i : integer;
  begin
      if marca > 6 then
      marca := 6;
      if marca < 1 then
      marca := 1;
      xc := 4;
      xxc := 220;
      i := 1;
      ent := 1;
      outtextxy(100,271,'Entre Mediciones Alturas [Y]');
      while i < (marca + 1) do
      begin
         outtextxy(100,291 + (i * 8),'Entre Altura Num.[' +
         integerstring(i) + '] y : ');
         ent := entradato(308,291 + (i * 8));
         yc[i] := ent;
         ent := 1;
         i := i + 1;
      end;
      if trunc(xxc) > 240 then
      xxc := 240;
      if trunc(xc) < 1 then
      xc := 1;
      linea(posxx + trunc(xc), posyy + (posy + posy div 2) - 4,
            posxx + trunc(xxc), posyy + (posy + posy div 2) - 4,10);
      desp := trunc((xxc - xc) / i);
      t := 1;
      p := 1;
    repeat
      linea((posxx + trunc(xc)) + p, posyy + (posy + posy div 2) - 4,
      (posxx + trunc(xc)) + p, (posyy + (posy + posy div 2) - 4) -
      trunc(yc[t]),10);
      t := t + 1;
      p := p + round(marca * 7);
    until t > i - 1;
    p := 0;
    for t := 1 to i - 2 do
    begin
    linea((posxx + trunc(xc)) + p,(posyy + (posy + posy div 2) - 4) -
    trunc(yc[t]),(posxx + trunc(xc)) + round(marca * 7) + p,
    (posyy + (posy + posy div 2) - 4) - trunc(yc[t + 1]),10);
    p := p + round(marca * 7);
   end;
  end;
 
   procedure menu;
   var
     tex : char;
     sal : boolean;
   begin
       sal := false;
       repeat
         Clearscreen;
         outtextxy(4,30,'**** Menu General ****');
         outtextxy(4,50,'1 = Generacion De Una Reticula');
         outtextxy(4,60,'2 = Calculo De La Altitud Media');
         outtextxy(4,70,'3 = Obtencion De Cortes Topograficos');
         outtextxy(4,80,'4 = Calculo De Orientaciones');
         outtextxy(4,90,'5 = Salir');
         repeat
         tex := readkey;
         until tex in[#49..#53];
         Clearscreen;
   case tex of
  #49 : begin
          outtextxy(100,2,'Reticu');
          cuadricula(100,20,40);
          readln;
        end;
  #50 : begin
          outtextxy(100,2,'Reticu');
          cuadricula(100,20,40);
          altitud_media;
          readln;
        end;
  #51 : begin
          outtextxy(100,2,'Reticu');
          cuadricula(100,20,40);
          cortes_topograficos(6);
          readln;
        end;
  #52 : begin
          outtextxy(100,2,'Reticu');
          cuadricula(100,20,40);
          calculo_orientacion;
          readln;
        end;
  #53 : sal := true;
   end;
       until sal = true;
   end;
 
 
  begin
     iniciografico;
     menu;
     closegraficos;
  end.
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar

Ramon necesito ayuda con programas

Publicado por Daniel martinez (2 intervenciones) el 04/02/2013 21:58:36
Hola ramon! Necesito tu ayuda urgente.. Es hacer un programa dado el nombre,cedula,nota del alumno. SE muestren:
a)mostrar la mayor nota
b)mostrar la menor nota
c)resultado de las dos notas
d)los resultados del 4to alumno
e)resultado del 8vo alumno y las notas
f)hacer la busqueda de una cedula...

si me puedes ayudar te lo agradesco....es urgente xfa!!
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar

Ramon necesito ayuda con programas

Publicado por ramon (2158 intervenciones) el 05/02/2013 19:13:50
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
{No entendí muy bien lo que quieres a ver si acerté}
 
program notas;
 uses
   crt;
 type
    regdatos = record
          nombre : string[80];
          cedula : word;
     nota, nota2 : real;
        end;
 
  var
    dato : array[1..50] of regdatos;
    nu, i, cont : integer;
 
  procedure entrada_datos;
  begin
     clrscr;
     writeln('**** Entrada Datos Alumno ****');
     writeln;
     write('  Nombre  : ');
     readln(dato[cont].nombre);
     write('  Cedula  : ');
     readln(dato[cont].cedula);
     write('  Nota 1  : ');
     readln(dato[cont].nota);
     write('  Nota 2  : ');
     readln(dato[cont].nota2);
     writeln;
     writeln('<<<< Desea Entrar Mas Alumnos [S/N] >>>>');
  end;
 
  procedure presenta_mayor_nota(cual : integer);
  var
     nomax : real;
     h : integer;
  begin
     if dato[cual].nota > dato[cual].nota2 then
     nomax := dato[cual].nota
   else
     nomax := dato[cual].nota2;
     writeln('**** Mayor Nota ****');
     writeln;
     writeln('  La Nota Mas Alta Es : ',nomax:8:2);
     writeln;
     writeln('  Pulse [Enter]');
     readln;
  end;
 
  procedure presenta_menor_nota(cual : integer);
  var
     menor : real;
     h : integer;
  begin
     if dato[cual].nota <  dato[cual].nota2 then
     menor := dato[cual].nota
   else
     menor := dato[cual].nota2;
     writeln('**** Menor Nota ****');
     writeln;
     writeln('  La Nota Menos Alta Es : ',menor:8:2);
     writeln;
     writeln('  Pulse [Enter]');
     readln;
  end;
 
  procedure las_dos_notas(cual : integer);
  begin
     writeln('**** Las Dos Nota ****');
     writeln;
     writeln('  La Nota N.1 Es : ',dato[cual].nota);
     writeln('  La Nota N.2 Es : ',dato[cual].nota2);
     writeln;
     writeln('  Pulse [Enter]');
     readln;
  end;
 
  procedure las_dos_notas_4_alumno;
  begin
     writeln('**** Las Nota N.4 Alumno ****');
     writeln;
     writeln('  La Nota N.1 Es : ',dato[4].nota);
     writeln('  La Nota N.2 Es : ',dato[4].nota2);
     writeln;
     writeln('  Pulse [Enter]');
     readln;
  end;
 
  procedure las_dos_notas_8_alumno;
  begin
     writeln('**** Las Nota N.8 Alumno ****');
     writeln;
     writeln('  La Nota N.1 Es : ',dato[8].nota);
     writeln('  La Nota N.2 Es : ',dato[8].nota2);
     writeln;
     writeln('  Pulse [Enter]');
     readln;
  end;
 
   procedure busqueda_cedula;
   var
      cedu : word;
      h : integer;
   begin
      clrscr;
      writeln('**** Bucqueda Por Cedula ****');
      writeln;
      write('  Entre Cedula : ');
      readln(cedu);
      for h := 1 to cont - 1 do
      if dato[h].cedula = cedu then
      begin
         clrscr;
         writeln('***** Los Datos De La Cedula N. [',cedu,'] Son *****');
         writeln;
            writeln('  Nombre   : ',dato[h].nombre);
            writeln('  Cedula   : ',dato[h].cedula);
            writeln('  1§ Nota  : ',dato[h].nota:8:2);
            writeln('  2§ Nota  : ',dato[h].nota2:8:2);
            writeln;
            writeln('<<<<< Pulse [Enter] >>>>>');
            readln;
            break;
        end;
   end;
 
   procedure menu;
   var
      sal : boolean;
      tr, tec : char;
   begin
       sal := false;
       repeat
       clrscr;
       writeln('***** Menu General *****');
       writeln;
       writeln('  1 = Entrada Datos');
       writeln('  2 = Mostrar Nota max');
       writeln('  3 = Mostrar Nota min');
       writeln('  4 = Las 2 Notas');
       writeln('  5 = Resultados Del 4 to Alumno');
       writeln('  6 = Resultados Del 8 to Alumno');
       writeln('  7 = busqueda de una cedula');
       writeln('  8 = Salir');
       writeln;
       writeln('<<<<< Elija Opcion >>>>>');
       repeat
            tec := readkey;
       until tec in[#49..#56];
   case tec of
 #49 : begin
          repeat
          clrscr;
          entrada_datos;
          tr := readkey;
          if tr in['S','s'] then
          cont := cont + 1;
          until tr in['N','n'];
       end;
 #50 : begin
          clrscr;
          write('  Entre Num. Del 1 Al ',cont,' : ');
          readln(nu);
          presenta_mayor_nota(nu);
       end;
 #51 : begin
          clrscr;
          write('  Entre Num. Del 1 Al ',cont,' : ');
          readln(nu);
          presenta_menor_nota(nu);
       end;
 #52 : begin
           clrscr;
           write('  Entre Num. Del 1 Al ',cont,' : ');
           readln(nu);
           las_dos_notas(nu);
       end;
 #53 : begin
           clrscr;
           las_dos_notas_4_alumno;
       end;
 #54 : begin
           clrscr;
           las_dos_notas_8_alumno;
       end;
 #55 : begin
           clrscr;
           busqueda_cedula;
       end;
 #56 : sal := true;
     end;
       until sal = true;
   end;
 
 
 
  begin
     clrscr;
     cont := 1;
     menu;
  end.
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar
Imágen de perfil de Elias

Ramon necesito ayuda con programas

Publicado por Elias (1 intervención) el 23/03/2015 03:29:24
Hola amigo Ramon. Necesito tu ayuda para crear un programa en el cual se lea el sueldo de 3 empleados aplicándole un aumento del 10%, 12,% 15%. Define los valores como tu quieras. Muchas gracias.
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar

Ramon necesito ayuda con programas

Publicado por ramon (2158 intervenciones) el 23/03/2015 22:39:27
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
{Algo así serviría}
 
program los_sueldo;
 uses
    crt;
  const
     porciento : array[1..3] of integer = (10,12,15);
  type
    sueldo = record
           salario : real;
           tantopor : integer;
           aumento : real;
           total   : real;
         end;
 
  var
    empleado : array[1..3] of sueldo;
    tecla : char;
    entra, cont : integer;
 
  procedure entradas;
  var
    t : integer;
  begin
   cont := 1;
   while cont < 4 do
   begin
     clrscr;
     with empleado[cont] do
     begin
     write('   Entre Salario Empleado N.',cont,' : ');
     readln(salario);
     write('   Entre  Incremento [1=10], [2=12], [3=15] : ');
     readln(t);
     if t in [1,2,3] then
     begin
        tantopor := porciento[t];
        aumento := (salario * tantopor) / 100;
        total := salario + aumento;
     end
   else
       begin
          writeln;
          writeln('  Error De Entrada Entre De Nuevo Pulse Una Tecla');
          readkey;
          entradas;
       end;
       cont := cont + 1;
    end;
   end;
     entra := cont - 1;
  end;
 
  procedure presenta_resultados;
  begin
     clrscr;
     if entra > 0 then
     begin
     gotoxy(30,1);write('Resultados');
     gotoxy(3,2);write('  Salario         Incremento           Total',
                                                    '          El % ');
     for cont := 1 to 3 do
     begin
        gotoxy(3,2 + cont);write('  ',empleado[cont].salario:0:2,'           ',
                               empleado[cont].aumento:0:2,'                  ',
                               empleado[cont].total:0:2,'          ',
                               empleado[cont].tantopor);
     end;
     writeln;
     writeln('   Pulse Una Tecla');
     readkey;
   end
 else
     begin
        writeln;
        writeln('  Entradas Vacias Pulse Una Tecla');
        readkey;
     end;
  end;
 
 
  begin
     entradas;
     presenta_resultados;
  end.
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar