lunes, 13 de mayo de 2013

EJERCICIO DE MENÚS - HORARIO DE CLASES SEGÚN EL DÍA

HACER UN ALGORITMO QUE DESPLIEGUE UN MENÚ CON LOS DÍAS DE LA SEMANA, Y SEGÚN EL DÍA ELEGIDO POR EL USUARIO, EL PROGRAMA MOSTRARA EL HORARIO DE CLASES DE ESE DÍA.

NOTA: SI EL USUARIO ELIGE EL DÍA DOMINGO EL PROGRAMA DEBERÁ FINALIZAR O SALIR.

SOLUCIÓN:

Proceso DIAS_HORARIOS
DIA<-0;
MIENTRAS DIA<>7 HACER
Escribir "SELECCIONES UNA DE LOS SIGUIENTES DIAS";
Escribir " 1. LUNES";
Escribir " 2. MARTES";
Escribir " 3. MIERCOLES";
Escribir " 4. JUEVES";
Escribir " 5. VIERNES";
Escribir " 6. SABADO";
Escribir " 7. DOMINGO";
ESCRIBIR " INGRESE UN DIA, SEGUN SU RESPECTIVO NUMERO ";
LEER DIA;
SI DIA=1 ENTONCES
Escribir "";
Escribir "";
Escribir "LA CLASE DEL DIA ES: METODOLOGIA DEL ESTUDIO Y EL PENSAMIENTO INVESTIGATIVO";
Escribir "";
Escribir " DESDE LAS 2:00 P.M HASTA LAS 6:00 P.M, SEDE COREDUCACION LA DORADA - CALDAS ";
Escribir "";
Escribir "";
FinSi
SI DIA=2 ENTONCES
Escribir "";
Escribir "";
Escribir "LA CLASE DEL DIA ES: MATEMATICAS BASICAS";
Escribir "";
Escribir " DESDE LAS 2:00 P.M HASTA LAS 6:00 P.M, SEDE COREDUCACION LA DORADA - CALDAS ";
Escribir "";
Escribir "";
FinSi
SI DIA=3 ENTONCES
Escribir "";
Escribir "";
Escribir "LA CLASE DEL DIA ES: PROGRAMACION ";
Escribir "";
Escribir " DESDE LAS 3:00 P.M HASTA LAS 6:00 P.M, EN LA UNIVERSIDAD DE CALDAS ";
Escribir "";
Escribir "";
FinSi
SI DIA=4 ENTONCES
Escribir "";
Escribir " EN ESTE DIA NO HAY CLASES REGISTRADAS ";
Escribir "";
FinSi
SI DIA=5 ENTONCES
Escribir "";
Escribir "";
Escribir "LA CLASE DEL DIA ES: INTRODUCCION A LA TECNOLOGIA ";
Escribir "";
Escribir " DESDE LAS 2:00 P.M HASTA LAS 6:00 P.M, EN LA UNIVERSIDAD DE CALDAS ";
Escribir "";
Escribir "";
FinSi
SI DIA=6 ENTONCES
Escribir "";
Escribir "";
Escribir "LA CLASE DEL DIA ES: CATEDRA INSTITUCIONAL ";
Escribir "";
Escribir " DESDE LAS 12:30 P.M HASTA LAS 4:00 P.M, SEDE COREDUCACION LA DORADA - CALDAS ";
Escribir "";
Escribir "";
FinSi
SI DIA>7 Entonces
Escribir "";
Escribir "";
Escribir "ESTA OPCION NO ESTA EN EL MENU, POR FAVOR ELIGA UN DIA DENTRO DEL MENU";
Escribir "";
Escribir "";
FINSI
SI DIA<>7 ENTONCES
Escribir DIA;
FinSi
FinMientras
FinProceso


No hay comentarios:

Publicar un comentario