Pascal/Turbo Pascal - pascal???

 
Vista:
sin imagen de perfil

pascal???

Publicado por carlo (5 intervenciones) el 29/10/2013 14:28:59
amigo ramon aqui te abro te mando otra ves la pregunta como me dijiste para que me mande los datos gracias?

Grupo de ingeniera con tiene datos acerc
Disculpa Pero Tengo Problemas Al enviarte los datosa de:
-documento de identificación
-nombre y apellidos
-Edad
-sexo
-promedio de nota semestral
*Con lo anterior, diseñe e implemente una solución que permita
1-impr todo la tabla de informaciones
2-impr el nombre y apellidos del alumno que mejor promedio tiene.
3-impr el promedio del nota del grupo
4-impr nombre y apellidos del aluno de menor rendimiento.
5-impr la lista de alumnos que tiene nota promedio mayor a 4 y menor a 4.5puntos (considere ambas).
6-imprima cuantos alumnos están eximidos (nota promedio igual o mayor a 4.8 puntos)
7) imprima la información específica de unos alumnos solicitado por el usuario a partir del documento de identificación. En caso de no existir considere el mensaje, no hay alumno registrado con el documento solicitado
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
Imágen de perfil de xve

pascal???

Publicado por xve (25 intervenciones) el 29/10/2013 20:41:18
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
program fichaes;
  uses
    crt;
 
   const
      max = 40;
 
   type
     ficha = record
        idn : longint;
        nom : string[80];
        ed  : integer;
        sex : char;
    pro_sem : real;
     end;
 
   var
     datos : array[1..max] of ficha;
      cont : integer;
      tec : char;
 
 
   procedure entradaficha;
   var
     tec : char;
   begin
      clrscr;
      writeln('**** Entrada Ficha Estudiante
****');
      writeln;
      cont := cont + 1;
      if cont > max then
      cont := max;
      write('   Num. Identidad                  :
');
      readln(datos[cont].idn);
      write('   Nombre                          :
');
      readln(datos[cont].nom);
      write('   Edad                            :
');
      readln(datos[cont].ed);
      write('   Sexo [M]=maculino [F]=femenino  :
');
      repeat
          tec := upcase(readkey);
      until tec in['M','F'];
      writeln(tec);
      datos[cont].sex := tec;
      write('   Promedio Semestre               :
');
      readln(datos[cont].pro_sem);
   end;
 
   procedure muestrafichas(cual : byte);
   var
     codi : longint;
     t, v : integer;
     no : boolean;
   begin
      codi := 0;
      if cual > 0 then
      begin
         clrscr;
         writeln('<<<< Entre Codigo Estudiante
>>>>');
         writeln;
         write('  Num. Codigo : ');
         readln(codi);
         if codi > 0 then
         begin
            no := true;
            for v := 1 to cont do
            begin
            if datos[v].idn = codi then
            begin
               clrscr;
               writeln('### Los Datos Pedidos Son
###');
               writeln;
               writeln('  Num. Idn. =
',datos[v].idn);
               writeln('  Nombre    =
',datos[v].nom);
               writeln('  Edad      =
',datos[v].ed);
               writeln('  Sexo      =
',datos[v].sex);
               writeln('  Pro.Sem.  =
',datos[v].pro_sem:0:2);
               writeln;
               writeln('<<< Pulse Una Tecla >>>');
               readkey;
               no := false;
               break;
              end;
             end;
               if no = true then
               begin
               writeln(',,, El Num. No Existe
,,,');
               writeln('<<< Pulse Una Tecla >>>');
               readkey;
             end;
          end;
        end
     else
         begin
         clrscr;
         writeln(' Num. Idn.    Nombre
Edad    Sexo    Pro.Sem.');
         writeln;
         for v := 1 to cont do
         begin
          writeln('  ',datos[v].idn,'
',datos[v].nom,'          ',
    datos[v].ed,'         ',datos[v].sex,'
 ',datos[v].pro_sem:0:2);
          if v > 24 then
          begin
            writeln;
            writeln('   Pulse Una Tecla Para Segir
');
            readkey;
            clrscr;
            writeln(' Num. Idn.    Nombre
  Edad    Sexo    Pro.Sem.');
            writeln;
           end;
          end;
            writeln;
            writeln('<<< Pulse Una Tecla >>>');
            readkey;
         end;
       end;
 
   function mejor_promedio(mp : char) : string;
   var
     xz, v : integer;
     pro : real;
   begin
       if cont > 0 then
       begin
       if upcase(mp) = 'M' then
       begin
       xz := 0;
       pro := 0.0;
       for v := 1 to cont do
       if datos[v].pro_sem > pro then
       begin
       pro := datos[v].pro_sem;
       xz := v;
       end;
       mejor_promedio := datos[xz].nom;
     end;
    if upcase(mp) = 'P' then
    begin
       xz := 0;
       pro := 10.0;
       for v := 1 to cont do
       if datos[v].pro_sem < pro then
       begin
       pro := datos[v].pro_sem;
       xz := v;
       end;
       mejor_promedio := datos[xz].nom;
    end;
   end
  else
      mejor_promedio := ' No Hay Valoraciones
Entradas';
   end;
 
   function notamedia_grupo : real;
   var
     me : real;
     v : integer;
   begin
      me := 0.0;
      if cont > 0 then
      begin
      for v := 1 to cont do
      begin
         me := me + datos[v].pro_sem;
      end;
        notamedia_grupo := me / cont;
      end;
   end;
 
   procedure estudiantes4_4_5;
   var
     v : integer;
   begin
      for v := 1 to cont do
      if (datos[v].pro_sem > 4) and
(datos[v].pro_sem < 4.5) then
      begin
      writeln(' Nombre  ',datos[v].nom,'   Nota
Media : ',datos[v].pro_sem);
      end;
   end;
 
  function estudiantes_exentos : integer;
  var
     v, ex : integer;
    begin
       ex := 0;
       estudiantes_exentos := 0;
       if cont > 0 then
       begin
          for v := 1 to cont do
          if datos[v].pro_sem > 4.7 then
          ex := ex + 1;
          estudiantes_exentos := ex;
       end;
    end;
 
 
   procedure menu;
   var
     sal : boolean;
     tecla : char;
   begin
      sal := false;
      repeat
         clrscr;
         writeln('  ****** Menu Jeneral ******');
         writeln;
         writeln('   1 = Entrada Nuevo Estudiante
');
         writeln('   2 = Presentar Todos Los
Estudiantes ');
         writeln('   3 = Presentar Estudiante Por
Num.Idn ');
         writeln('   4 = Mejor Promedio');
         writeln('   5 = Peor Promedio');
         writeln('   6 = Nota Media Del Grupo');
         writeln('   7 = Notas Comprendidas Entre
4/4.5 ');
         writeln('   8 = Estudiantes Nota Superior
a 4,7 ');
         writeln('   9 = Salir ');
         writeln;
         writeln('  <<<<< Elija Opcion >>>>>');
         repeat
             tecla := readkey;
         until tecla
in['1','2','3','4','5','6','7','8','9'];
         clrscr;
    case tecla of
 '1' : entradaficha;
 '2' : muestrafichas(0);
 '3' : muestrafichas(1);
 '4' : begin
          if cont > 0 then
          writeln('  El Mejor Promedio Es :
',mejor_promedio('m'))
        else
          writeln(mejor_promedio('m'));
          writeln;
          writeln('   Pulse Una Tecla ');
          readkey;
       end;
 '5' : begin
          if cont > 0 then
          writeln('  El Peor Promedio Es :
',mejor_promedio('p'))
        else
          writeln(mejor_promedio('p'));
          writeln;
          writeln('   Pulse Una Tecla ');
          readkey;
       end;
 '6' :  begin
           if cont > 0 then
           writeln('   Lanota Media Del Grupo Es :
',notamedia_grupo:0:2)
         else
           writeln('  No Hay Valoraciones
Entradas');
           writeln;
           writeln('   Pulse Una Tecla');
           readkey;
        end;
 '7' : begin
           if cont > 0 then
           estudiantes4_4_5
         else
           writeln('  No Hay Valoraciones
Entradas');
           writeln;
           writeln('   Pulse Una Tecla');
           readkey;
       end;
 '8' : begin
         if cont > 0 then
         writeln(' Nota Superiores a 4.7 :
',estudiantes_exentos)
       else
         writeln('  No Hay Valoraciones
Entradas');
         writeln;
         writeln('   Pulse Una Tecla');
         readkey;
       end;
 '9' : sal := true;
   end;
    until sal = true;
   end;
 
 
   begin
      cont := 0;
      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
2
Comentar
sin imagen de perfil

pascal???

Publicado por carlo (5 intervenciones) el 30/10/2013 01:41:14
muy bn todo amigo muchas gracias ayudarme interesarse en ejercicio y por su colaboración
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