diff --git a/Equipo NetCode/ADA 2_De_Victor Cauich/Ejercicio 13.cpp b/Equipo NetCode/ADA 2_De_Victor Cauich/Ejercicio 13.cpp new file mode 100644 index 0000000..0205825 --- /dev/null +++ b/Equipo NetCode/ADA 2_De_Victor Cauich/Ejercicio 13.cpp @@ -0,0 +1,15 @@ +//HECHO POR VICTOR ENRIQUE CAUICH DAVALOS +#include +#include //Esta librería es para poner acentos y Ñ +int main() +{ + setlocale(LC_ALL,"");//método de la librería locale.h, para poner acentos y Ñ + printf("EJERCICIO 13. IMPRIMIR DOS LINEAS DISTINTAS CON LAS FRASES: \n"); + printf("1) 'Bienvenido a la programación en C' y 2) 'Comenzamos a programar'\n\n"); + printf("Bienvenido a la programación en C \n"); + printf("Comenzamos a programar\n"); + printf("Teclee ENTER..."); + fflush(stdin); + getchar(); + return 0; +} diff --git a/Equipo NetCode/ADA 2_De_Victor Cauich/Ejercicio 14.cpp b/Equipo NetCode/ADA 2_De_Victor Cauich/Ejercicio 14.cpp new file mode 100644 index 0000000..5909db7 --- /dev/null +++ b/Equipo NetCode/ADA 2_De_Victor Cauich/Ejercicio 14.cpp @@ -0,0 +1,14 @@ +//HECHO POR VICTOR ENRIQUE CAUICH DAVALOS +#include +#include +int main() +{ + setlocale(LC_ALL,""); + printf("EJERCICIO 14. IMPRIMIR MI NOMBRE COMPLETO Y MI DIRECCIÓN DE DOMICILIO\n"); + printf("Mi nombre completo es: Victor Enrique Cauich Davalos \n"); + printf("Mi dirección es: Calle 17A x 20A y 22 #104 Chablekal\n"); + printf("Teclee ENTER..."); + fflush(stdin); + getchar(); + return 0; +} diff --git a/Equipo NetCode/ADA 2_De_Victor Cauich/Ejercicio 15.cpp b/Equipo NetCode/ADA 2_De_Victor Cauich/Ejercicio 15.cpp new file mode 100644 index 0000000..712cf8f --- /dev/null +++ b/Equipo NetCode/ADA 2_De_Victor Cauich/Ejercicio 15.cpp @@ -0,0 +1,46 @@ +//HECHO POR VICTOR ENRIQUE CAUICH DAVALOS +#include +#include //Biblioteca para poder usar acentuaciones y más... +#include //Biblioteca lo uso para redondear enteros... +int main() +{ + double i, i2, i3, i4, i5; + double R1, R2, R3; + setlocale(LC_ALL,""); + printf("EJERCICIO 15. lEER E IMPRIMIR 5 NÚMEROS ENTEROS Y 3 REALES\n"); + printf("Ingrese 5 valores entero por favor(si ingresa un numero que no sea entero se redonderá): \n"); + printf("Primer número: "); + scanf("%lf", &i); + i = round(i); + printf("\nSegundo número: "); + scanf("%lf", &i2); + i2 = round(i2); + printf("\nTercero número: "); + scanf("%lf", &i3); + i3 = round(i3); + printf("\nCuarto número: "); + scanf("%lf", &i4); + i4 = round(i4); + printf("\nQuinto número: "); + scanf("%lf", &i5); + i5 = round(i5); + + printf("\nIngrese 3 valores reales por favor: \n"); + printf("Primer número: "); + scanf("%lf", &R1); + printf("\nSegundo número: "); + scanf("%lf", &R2); + printf("\nTercero número: "); + scanf("%lf", &R3); + + printf("\nNúmeros enteros: \n"); + printf("Primero : %.0f, Segundo: %.0f, Tercero: %.0f, Cuarto: %.0f, Quinto: %.0f \n", i, i2, i3, i4, i5); + printf("Números reales: \n"); + printf("Primero : %.2f, Segundo: %.2f, Tercero: %.2f \n", R1, R2, R3); + printf("Teclee ENTER..."); + fflush(stdin); + getchar(); + return 0; +} + + diff --git a/Equipo NetCode/ADA 2_De_Victor Cauich/Ejercicio 16.cpp b/Equipo NetCode/ADA 2_De_Victor Cauich/Ejercicio 16.cpp new file mode 100644 index 0000000..5614bce --- /dev/null +++ b/Equipo NetCode/ADA 2_De_Victor Cauich/Ejercicio 16.cpp @@ -0,0 +1,42 @@ +//HECHO POR VICTOR ENRIQUE CAUICH DAVALOS +#include +#include //Biblioteca para poder usar acentuaciones y más... + +double validar(double num); + +int main() +{ + setlocale(LC_ALL,""); + double B = 0.0; + double H = 0.0; + printf("EJERCICIO 16. CALCULAR EL ÁREA DE UN TRIANGULO\n"); + printf("Ingrese por favor la base del triangulo: "); + scanf("%lf", &B); + B = validar(B); + printf("Ingrese por favor la altura del triangulo: "); + scanf("%lf", &H); + H = validar(H); + printf("\nEl área del triangulo es: %.2f", B*H); + printf("\nPresione Enter para salir del programa :)\n"); + fflush(stdin); + getchar(); + return 0; +} + +double validar(double num){ + int a=0; + while(a==0){ + if(num > 0) + { + a=a+1; + return num; + break; + } else + { + fflush(stdin); + num = 0; + printf("Ingrese un número valido, por favor: "); + scanf("%lf", &num); + } + } +} diff --git a/Equipo NetCode/ADA 2_De_Victor Cauich/Ejercicio 17.cpp b/Equipo NetCode/ADA 2_De_Victor Cauich/Ejercicio 17.cpp new file mode 100644 index 0000000..a54eaf8 --- /dev/null +++ b/Equipo NetCode/ADA 2_De_Victor Cauich/Ejercicio 17.cpp @@ -0,0 +1,40 @@ +//HECHO POR VICTOR ENRIQUE CAUICH DAVALOS +#include +#include //Biblioteca para poder usar acentuaciones y más... + +int main() +{ + setlocale(LC_ALL,""); + printf("EJERCICIO 17. LEER 3 NÚMEROS REALES, DETERMINAR \n"); + printf("E IMPRIMIR LA SUMA, RESTA, MULTIPLICACIÓN Y DIVISIÓN DE LOS MISMOS\n"); + double Num1 = 0.0, Num2 = 0.0, Num3 = 0.0; + double div = 0.; + printf("Ingresa por favor el primer número real: "); + scanf("%lf", &Num1); + printf("Ingresa por favor el segundo número real: "); + scanf("%lf", &Num2); + printf("Ingresa por favor el tercer número real: "); + scanf("%lf", &Num3); + printf("La suma de los números es: %.2f \n", Num1 + Num2 + Num3); + printf("La resta de los números es: %.2f \n", (Num1 - Num2) - Num3); + printf("La multiplicación de los números es: %.2f \n", Num1 * Num2 * Num3); + if(Num2 != 0) + { + div = Num1 / Num2; + }else{ + printf("Como el segundo número real es 0, no se puede dividir un número entre éste...\n"); + div = Num1; + } + if(Num3 != 0) + { + div = div / Num3; + }else{ + printf("Como el tercer número real es 0, no se puede dividir un número entre éste...\n"); + } + printf("La división de los números es: %.2f\n", div); + printf("\nPresione Enter para salir del programa :)\n"); + fflush(stdin); + getchar(); + return 0; +} + diff --git a/Equipo NetCode/ADA 2_De_Victor Cauich/Ejercicio 18.cpp b/Equipo NetCode/ADA 2_De_Victor Cauich/Ejercicio 18.cpp new file mode 100644 index 0000000..1b01b6c --- /dev/null +++ b/Equipo NetCode/ADA 2_De_Victor Cauich/Ejercicio 18.cpp @@ -0,0 +1,18 @@ +//HECHO POR VICTOR ENRIQUE CAUICH DAVALOS +#include +#include //Biblioteca para poder usar acentuaciones y más... + +int main() +{ + setlocale(LC_ALL,""); + printf("EJERCICIO 18. LEER UN VALOR C QUE REPRESENTE UN VALOR\n"); + printf("EN GRADOS CENTIGRADOS Y QUE LO CONVIERTA A GRADOS FAHRENHEIT (F)\n\n"); + double C = 0; + printf("Ingresa por favor el valor Celsius, por favor:"); + scanf("%lf", &C); + printf("Lo convertimos en Fahrenheit y quedaría: %.2f\n", C * 1.8 + 32); + printf("\nTeclea ENTER para salir por favor..."); + fflush(stdin); + getchar(); + return 0; +} diff --git a/Equipo NetCode/ADA 2_De_Victor Cauich/Ejercicio 19.cpp b/Equipo NetCode/ADA 2_De_Victor Cauich/Ejercicio 19.cpp new file mode 100644 index 0000000..8beb248 --- /dev/null +++ b/Equipo NetCode/ADA 2_De_Victor Cauich/Ejercicio 19.cpp @@ -0,0 +1,47 @@ +//HECHO POR VICTOR ENRIQUE CAUICH DAVALOS +#include +#include //Biblioteca para poder usar acentuaciones y más... +#include + +int main() +{ + setlocale(LC_ALL,""); + printf("EJERCICIO 19. CALCULAR CUÁNTO LE PAGAN A UN TRABAJADOR\n"); + printf("POR METRIO CUADRADO\n\n"); + char Nombre[20], Apellido[20]; + int Seleccion; + double MetroCuadrado; + bool Val = false; + while(Val == false) + { + printf("MENÚ:\n"); + printf("1. Calcular cuánto gana un trabajador.\n"); + printf("2. Salir.\n"); + printf("Selecciona la opción que quieras realizar: "); + scanf("%d", &Seleccion); + switch(Seleccion) + { + case 1: + printf("Ingresa por favor el PRIMER NOMBRE del trabajador: "); + scanf("%s", Nombre); + printf("Ingresa por favor el PRIMER APELLIDO del trabajador: "); + scanf("%s", Apellido); + printf("Ingresa la superficie que ha realizado (por metro cuadrado): "); + scanf("%lf", &MetroCuadrado); + printf("\nA %s %s se le deberá pagar de salario $%.2f pesos.\n\n", Nombre, Apellido, MetroCuadrado * 300); + MetroCuadrado = 0; + break; + case 2: + Val = true; + break; + default : + printf("\n\nERROR, SELECCIÓN INVALIDA\n\n"); + break; + } + } + printf("\nAdiós, que tenga un buen día..."); + printf("\nTeclea ENTER para salir por favor..."); + fflush(stdin); + getchar(); + return 0; +} diff --git a/Equipo NetCode/ADA 2_De_Victor Cauich/Ejercicio 20.cpp b/Equipo NetCode/ADA 2_De_Victor Cauich/Ejercicio 20.cpp new file mode 100644 index 0000000..4147b27 --- /dev/null +++ b/Equipo NetCode/ADA 2_De_Victor Cauich/Ejercicio 20.cpp @@ -0,0 +1,18 @@ +//HECHO POR VICTOR ENRIQUE CAUICH DAVALOS +#include +#include //Biblioteca para poder usar acentuaciones y más... +#include + +int main() +{ + setlocale(LC_ALL,""); + printf("EJERCICIO 20. SABER CUÁNTOS AÑOS TIENES...\n"); + int Edad; + printf("Ingresa cuántos años tienes, por favor: "); + scanf("%d", &Edad); + printf("Ahora sé que tienes %d años, gracias.", Edad); + printf("\nTeclea ENTER para salir por favor..."); + fflush(stdin); + getchar(); + return 0; +} diff --git a/Equipo NetCode/ADA 2_De_Victor Cauich/Ejercicio 21.cpp b/Equipo NetCode/ADA 2_De_Victor Cauich/Ejercicio 21.cpp new file mode 100644 index 0000000..7113eb1 --- /dev/null +++ b/Equipo NetCode/ADA 2_De_Victor Cauich/Ejercicio 21.cpp @@ -0,0 +1,40 @@ +//HECHO POR VICTOR ENRIQUE CAUICH DAVALOS +#include +#include //Biblioteca para poder usar acentuaciones y más... + +int main() +{ + setlocale(LC_ALL,""); + printf("EJERCICIO 21. LEE 3 NÚMEROS ENTEROS Y SI EL PRIMERO ES POSITIVO\n"); + printf("DETERMINAR E IMPRIMIR EL PRODUCTO DE LOS OTROS DOS VALORES,\n"); + printf("SINO, CALCULAR LA SUMA E IMPRIMIRLO\n"); + int Valor1, Valor2, Valor3; + printf("\nIngresa el primer número, por favor: "); + scanf("%d", &Valor1); + printf("\nIngresa el segundo número, por favor: "); + scanf("%d", &Valor2); + printf("\nIngresa el tercer número, por favor: "); + scanf("%d", &Valor3); + if(Valor1 > 0) + { + printf("Por ser el primer número positivo, se calculará el producto\n"); + printf("de los otros dos números.\n"); + printf("El producto es: %d\n", Valor2 * Valor3); + }else + { + if (Valor1<0) + { + printf("Por ser el primer número negativo, se calculará la suma\n"); + printf("de los otros dos números.\n"); + printf("La suma es: %d\n", Valor2 + Valor3); + }else + { + printf("Por ser el primer número 0, y como 0 no es negativo ni positivo\n"); + printf("entonces, no se hace nada...\n"); + } + } + printf("\nTeclea ENTER para salir por favor..."); + fflush(stdin); + getchar(); + return 0; +} diff --git a/Equipo NetCode/ADA 2_De_Victor Cauich/Ejercicio 22.cpp b/Equipo NetCode/ADA 2_De_Victor Cauich/Ejercicio 22.cpp new file mode 100644 index 0000000..5b997f2 --- /dev/null +++ b/Equipo NetCode/ADA 2_De_Victor Cauich/Ejercicio 22.cpp @@ -0,0 +1,42 @@ +//HECHO POR VICTOR ENRIQUE CAUICH DAVALOS +#include +#include //Biblioteca para poder usar acentuaciones y más... + +void verMayor(double Mayor, double Num3); + +int main() +{ + setlocale(LC_ALL,""); + printf("EJERCICIO 22. LEER 3 NÚMEROS DIFERENTES Y QUE DETERMINE E INPRIMA EL MAYOR\n\n"); + double Num1, Num2, Num3, Mayor; + printf("Ingresa el primer número: "); + scanf("%lf", &Num1); + printf("Ingresa el segundo número: "); + scanf("%lf", &Num2); + printf("Ingresa el tercer número: "); + scanf("%lf", &Num3); + if(Num1 > Num2){ + Mayor = Num1; + verMayor(Mayor, Num3); + } else + { + Mayor = Num2; + verMayor(Mayor, Num3); + } + printf("\nTeclea ENTER para salir por favor..."); + fflush(stdin); + getchar(); + return 0; +} +//-------------------------Cálcular el mayor---------------------------------- +void verMayor(double Mayor, double Num3) +{ + if(Mayor > Num3) + { + printf("\nEl número mayor es: %.2f", Mayor); + }else + { + Mayor = Num3; + printf("\nEl número mayor es: %.2f", Mayor); + } +} diff --git a/Equipo NetCode/ADA 2_De_Victor Cauich/Ejercicio 23.cpp b/Equipo NetCode/ADA 2_De_Victor Cauich/Ejercicio 23.cpp new file mode 100644 index 0000000..a1ee6de --- /dev/null +++ b/Equipo NetCode/ADA 2_De_Victor Cauich/Ejercicio 23.cpp @@ -0,0 +1,19 @@ +/*HECHO POR VICTOR ENRIQUE CAUICH DAVALOS +23. Una papelería vende libros a $100, cuadernos a $15.50 y plumas a $2.35. E.P. +que determine e imprima el monto total de una venta, según el número de artículos vendidos. +*/ +#include +#include //Biblioteca para poder usar acentuaciones y más... + +void verMayor(double Mayor, double Num3); + +int main() +{ + setlocale(LC_ALL,"");//LLamo al metodo de la biblioteca locale.h, para que todas las actuaciones, puedan verse... + printf("EJERCICIO 23. \n\n"); + + printf("\nTeclea ENTER para salir por favor..."); + fflush(stdin); + getchar(); + return 0; +} diff --git a/Equipo NetCode/ADA3_NetCode/Ejercicio 23.cpp b/Equipo NetCode/ADA3_NetCode/Ejercicio 23.cpp new file mode 100644 index 0000000..0f4ee0c --- /dev/null +++ b/Equipo NetCode/ADA3_NetCode/Ejercicio 23.cpp @@ -0,0 +1,50 @@ +#include +#include //Para las acentuaciones +#include + +/* +Nombre: Papeleria +Descripción: Calcula el total de articulos comprados y después proporciona la cantidad total a pagar +Autor: Alan Josue Barón Pat +Version: 1.0 +Fecha: 02/02/2020 +*/ + +int main () { + + int Seleccion; + int libros,cuadernos,plumas ; + Seleccion= 0; + libros= 0; + cuadernos= 0; + plumas= 0; + + + printf ("Bienvenido a la papeleria\n"); + printf ("Libros: $100\n"); + printf ("Cuadernos: $15.50\n"); + printf ("Plumas: $2.35\n"); + + printf ("\nDesea comprar?, 1.- Si / 2.- No\n"); + scanf ("%d",&Seleccion); + + if (Seleccion == 1) { + printf ("Cuantos libros va a llevar?\n"); + scanf ("%d",&libros); + printf ("Cuantos cuadernos va a llevar?\n"); + scanf ("%d",&cuadernos); + printf ("Cuantas plumas va a llevar?\n"); + scanf ("%d",&plumas); + + printf ("%.2lf", (double)((libros*100)+(cuadernos*15.50)+(plumas*2.35))); + } + else { + printf ("Hasta luego"); + } + printf("\n\nTeclea ENTER para salir por favor..."); + fflush(stdin); + getchar(); + return 0; +} + + diff --git a/Equipo NetCode/ADA3_NetCode/Ejercicio 24.cpp b/Equipo NetCode/ADA3_NetCode/Ejercicio 24.cpp new file mode 100644 index 0000000..1f7e36f --- /dev/null +++ b/Equipo NetCode/ADA3_NetCode/Ejercicio 24.cpp @@ -0,0 +1,62 @@ +#include +#include //Para las acentuaciones + +/* +Nombre: Chicharreada +Descripción: Ingresa las claves en el orden correcto para ingresar a la chicharreada +Autor: Alan Josue Barón Pat +Version: 1.0 +Fecha: 02/02/2020 +*/ +int main (){ + int A,B,C,D; + + printf ("Bienvenido a la chicharreada\n"); + printf ("Proporciona la clave en el orden correcto para que te dejen entrar\n"); + printf ("1.Tienes\n"); + printf ("2.Que\n"); + printf ("3.Estar\n"); + printf ("4.Invitado\n"); + + //Comienza la lectura (4) + printf ("\nClave 1\n"); + scanf ("%d", &A); + if (A==1){ + printf ("Clave 2\n"); + scanf ("%d", &B); + + if (B==2) + { + printf ("Clave 3\n"); + scanf ("%d", &C); + if (C==3){ + printf ("Clave 4\n"); + scanf ("%d", &D); + if (D==4) + { + printf ("\nBuen provecho"); //Sólo aparece el msj si las claves son en el orden correcto + } + else { + printf ("Tu no estas invitado"); + } + + }else { + printf ("Tu no estas invitado"); + } + + } + else { + printf ("Tu no estas invitado"); + } + } + + else { + printf ("Tu no estas invitado"); //En cualquier caso de no ingresar la clave/orden correcto + } + printf("\n\nTeclea ENTER para salir por favor..."); + fflush(stdin); + getchar(); + return 0; + } + + diff --git a/Equipo NetCode/ADA3_NetCode/Ejercicio 25.cpp b/Equipo NetCode/ADA3_NetCode/Ejercicio 25.cpp new file mode 100644 index 0000000..22d1d8d --- /dev/null +++ b/Equipo NetCode/ADA3_NetCode/Ejercicio 25.cpp @@ -0,0 +1,81 @@ +/*HECHO POR VICTOR ENRIQUE CAUICH DAVALOS y ALAN JOSUE BARÓN PAT +25. Un vendedor tiene un sueldo base por día de 200 pesos y recibe una comisión por venta, +que se determina considerando lo siguiente: +a) Para sus ventas de lunes a viernes, la comisión de venta es el 2.5% del monto total de sus ventas. +b) Para sus ventas de sábado, la comisión es del 4%. +c) Para sus ventas de domingo, la comisión es del 5%. +Además, si el monto de sus ventas en un día es mayor a $10,000.00 tiene un bono adicional de 200 pesos. +E.P. que lea las ventas de un día, calcule e imprima el ingreso total del vendedor. +*/ +#include +#include //Biblioteca que me sirve para usar la función o método exit, quen me sirve en este programa para un error... +#include //Biblioteca para poder usar acentuaciones y más... + +#define SUELDOBASE 200 //Definimos el sueldo pase al día + +void calcularPaga(double Venta, double ComisionPorDia); + +int main() +{ + setlocale(LC_ALL,"");//LLamo al metodo de la biblioteca locale.h, para que todas las actuaciones, puedan verse... + double Venta = 0.0; //Se inicializa la variable para las ventas + double ComisionPorDia = 0.0; //Se inicializa la variable para la comision por día + printf("EJERCICIO 25. CALCULAR PAGA AL DÍA DE UN EMPLEADO.\n\n");//Imprimo los días con numeraciones + printf("Días:\n"); + printf("1. Lunes.\n"); + printf("2. Martes.\n"); + printf("3. Miercoles.\n"); + printf("4. Jueves.\n"); + printf("5. Viernes.\n"); + printf("6. Sabado.\n"); + printf("7. Domingo.\n"); + printf("Ingrese el número (1 - 7) del día de trabajo del empleado, por favor: ");//Se le pide al usuario ingresar el día que trabajó + int Seleccion; // Se inicializa la variable para la selección del día + scanf("%d", &Seleccion); //Se lee el número de día que trabajó el trabajador + printf("\nIngresa el total de venta que realizaste este día, por favor: "); + scanf("%lf", &Venta); // Se lee la venta que realizó en el día el trabajador + if(Seleccion == 7) + { + ComisionPorDia = (double)Venta * 0.05; + calcularPaga(Venta, ComisionPorDia); + }else + { + if(Seleccion == 6) + { + ComisionPorDia = Venta * 0.04; + calcularPaga(Venta, ComisionPorDia); + }else + { + if(Seleccion == 1 || Seleccion == 2 || Seleccion == 3 || Seleccion == 4 || Seleccion == 5) + { + ComisionPorDia = Venta * 0.025; + calcularPaga(Venta, ComisionPorDia); + }else + { + printf("\nNo se puede cálcular el salario, ya que no se seleccionó correctamente el día.\n"); + exit (-1); + } + } + } + printf("\nTeclea ENTER para salir por favor..."); + fflush(stdin); + getchar(); + return 0; +} +//-----------------------------Función para cálcular el pago-------------------------------------- +void calcularPaga(double Venta, double ComisionPorDia) +{ + if(Venta > 10000) + { + printf("\nEl salario del empleado es de: $%.3lf pesos. \n Debido a que ganó al día en venta mas de $10000, tuvo una comisión de $200, de más.\n", 200 + ComisionPorDia + SUELDOBASE); + }else + { + if(Venta < 0) + { + printf("\nEl salario del empleado es de: $0 pesos.\n"); + }else + { + printf("\nEl salario del empleado es de: $%.3lf pesos.\n", ComisionPorDia + SUELDOBASE); + } + } +} diff --git a/Equipo NetCode/ADA3_NetCode/Ejercicio 26.cpp b/Equipo NetCode/ADA3_NetCode/Ejercicio 26.cpp new file mode 100644 index 0000000..fd051b7 --- /dev/null +++ b/Equipo NetCode/ADA3_NetCode/Ejercicio 26.cpp @@ -0,0 +1,36 @@ +/*HECHO POR VICTOR ENRIQUE CAUICH DAVALOS y ALAN JOSUE BARÓN PAT +26. E.P. que determine e imprima la calificación final de un alumno del curso “Programación Estructurada”. +El desglose de dicha evaluación está en escala 100 y tiene los siguientes porcentajes: +40% dos exámenes parciales, +30% tareas y trabajos, +20% proyecto final y +10% participación en clase. + +*/ +#include +#include //Biblioteca para poder usar acentuaciones y más... + +int main() +{ + setlocale(LC_ALL,"");//LLamo al metodo de la biblioteca locale.h, para que todas las actuaciones, puedan verse... + printf("EJERCICIO 26. CÁLCULAR CALIFICACIÓN FINAL DE ALUMNO.\n\n"); + printf("Ingrese por favor el porcenje entre los dos parciales (Vale máximo 40%): "); + float Examenes; + scanf("%f", &Examenes); + printf("Ingrese por favor el porcenje entre las tareas y trabajos (Vale máximo 30%): "); + float TareasYTrabajos; + scanf("%f", &TareasYTrabajos); + printf("Ingrese por favor el porcenje del proyecto final (Vale máximo 20%): "); + float ProyectoFinal; + scanf("%f", &ProyectoFinal); + printf("Ingrese por favor el porcenje de participaciones (Vale máximo 10%): "); + float Participaciones; + scanf("%f", &Participaciones); + + printf("\nLa calificación es: %.2f.\n", Examenes + TareasYTrabajos + ProyectoFinal + Participaciones); + + printf("\nTeclea ENTER para salir por favor..."); + fflush(stdin); + getchar(); + return 0; +} diff --git a/Equipo NetCode/ADA3_NetCode/Ejercicio 27.cpp b/Equipo NetCode/ADA3_NetCode/Ejercicio 27.cpp new file mode 100644 index 0000000..eeba007 --- /dev/null +++ b/Equipo NetCode/ADA3_NetCode/Ejercicio 27.cpp @@ -0,0 +1,37 @@ +/*HECHO POR VICTOR ENRIQUE CAUICH DAVALOS y ALAN JOSUE BARÓN PAT +27 E.P. que lea el peso en gramos (máximo 5,000) +y determine e imprima el menor número de pesas que hay que poner en una balanza +(con pesos: 1 gr, 2 gr, 5 gr, 50 gr, 100 gr, 200 gr, 500 gr y 1000 gr), +para equilibrar un determinado peso en gramos, introducido por teclado. +*/ +#include +#include //Biblioteca para poder usar acentuaciones y más... + +int main() +{ + setlocale(LC_ALL,"");//LLamo al metodo de la biblioteca locale.h, para que todas las actuaciones, puedan verse... + int Gramos; + printf("EJERCICIO 27. DETERMINAR E IMPRIMIR EL MENOR NÚMERO DE PESAS QUE HAY QUE PONER EN UNA BALANZA.\n\n"); + printf("\nIngresa el peso en gramos, por favor: "); + scanf("%d", &Gramos); + printf("\nSe deben poner %d pesas de 1000gr.\n", Gramos / 1000);//Voy dividiendo entre las pesas, de mayor a menor + Gramos = Gramos % 1000; + printf("Se deben poner %d pesas de 500gr.\n", Gramos / 500); + Gramos = Gramos % 500; + printf("Se deben poner %d pesas de 200gr.\n", Gramos / 200); + Gramos = Gramos % 200; + printf("Se deben poner %d pesas de 100gr.\n", Gramos / 100); + Gramos = Gramos % 100; + printf("Se deben poner %d pesas de 50gr.\n", Gramos / 50); + Gramos = Gramos % 50; + printf("Se deben poner %d pesas de 5gr.\n", Gramos / 5); + Gramos = Gramos % 5; + printf("Se deben poner %d pesas de 2gr.\n", Gramos / 2); + Gramos = Gramos % 2; + printf("Se deben poner %d pesas de 1gr.\n", Gramos / 1); + Gramos = Gramos % 1; + printf("\nTeclea ENTER para salir por favor..."); + fflush(stdin); + getchar(); + return 0; +} diff --git a/Equipo NetCode/ADA3_NetCode/Ejercicio 28.cpp b/Equipo NetCode/ADA3_NetCode/Ejercicio 28.cpp new file mode 100644 index 0000000..e8de42f --- /dev/null +++ b/Equipo NetCode/ADA3_NetCode/Ejercicio 28.cpp @@ -0,0 +1,44 @@ +/*HECHO POR VICTOR ENRIQUE CAUICH DAVALOS y ALAN JOSUE BARÓN PAT +28 E.P. que determine e imprima si el carácter código asociado a un código introducido por teclado, +corresponde a un carácter alfabético, dígito, de puntuación, especial o no imprimible. +*/ +#include +#include //Biblioteca para poder usar acentuaciones y más... + +int main() +{ + setlocale(LC_ALL,"");//LLamo al metodo de la biblioteca locale.h, para que todas las actuaciones, puedan verse... + char c; + printf("EJERCICIO 28. DETERMINAR E IMPRIMIR SI EL CARÁCTER ES ALFABÉTICO, \nDÍGITO, DE PUNTUACIÓN, ESPECIAL O NO IMPRIMIBLE\n\n"); + printf("Ingresa un carácter, por favor: "); + scanf("%c", &c); + if(c=='q'||c=='w'||c=='e'||c=='r'||c=='t'||c=='y'||c=='u'||c=='i'||c=='o'||c=='p'||//Pongo todas las las letras del abecedario + c=='a'||c=='s'||c=='d'||c=='f'||c=='g'||c=='h'||c=='j'||c=='k'||c=='l'||c=='ñ'|| + c=='z'||c=='x'||c=='c'||c=='v'||c=='b'||c=='n'||c=='m'|| + c=='Q'||c=='W'||c=='E'||c=='R'||c=='T'||c=='Y'||c=='U'||c=='I'||c=='O'||c=='P'|| + c=='A'||c=='S'||c=='D'||c=='F'||c=='G'||c=='H'||c=='J'||c=='K'||c=='L'||c=='Ñ'|| + c=='Z'||c=='X'||c=='C'||c=='V'||c=='B'||c=='N'||c=='M') + { + printf("\nEl caracter es alfabético."); + }else + { + if(c=='0'||c=='1'||c=='2'||c=='3'||c=='4'||c=='5'||c=='6'||c=='7'||c=='8'||c=='9')//pongo todos los digitos + { + printf("\nEl caracter es un dígito."); + }else + { + if(c=='.'||c==','||c==';'||c==':')//pomgo los signos de puntuacion + { + printf("\nEl caracter es de puntuación."); + }else + { + printf("\nEl caracter especial o no imprimible.");//Aquí es por si no es ninguna de las anteriores selecciones + } + } + } + printf("\n\nEl caracter es: %c", c); + printf("\nTeclea ENTER para salir por favor..."); + fflush(stdin); + getchar(); + return 0; +} diff --git a/Equipo NetCode/ADA3_NetCode/Ejercicio 29.cpp b/Equipo NetCode/ADA3_NetCode/Ejercicio 29.cpp new file mode 100644 index 0000000..1a9b47e --- /dev/null +++ b/Equipo NetCode/ADA3_NetCode/Ejercicio 29.cpp @@ -0,0 +1,68 @@ +#include +#include //Para las acentuaciones + +/* +Nombre: Meses del año +Descripción: Ingresa un número de algún mes (1-12) e imprime el total de dias que contiene ese mes +Autor: Alan Josue Barón Pat +Version: 1.0 +Fecha: 02/02/2020 +*/ + +int main () { + int mes; + + printf ("Consulta el número de dias que tiene algun mes en el año\n"); + printf ("Ingrese un número del 1-12\n"); + scanf ("%d", &mes); //Se introduce el "mes" a consutar (Entrada) + + if (mes >12 | mes <1){ + printf ("\nIngrese un valor válido"); //Validamos + } + else + { + switch (mes) //Se muestra el "mes" consultado (Salida) + { + case 1: + printf ("\nEnero tiene: 31 dias"); + break; + case 2: + printf ("\nFebrero tiene: 28 dias y en bisiesto 29 dias"); + break; + case 3: + printf ("\nMarzo tiene: 31 dias"); + break; + case 4: + printf ("\nAbril tiene: 30 dias"); + break; + case 5: + printf ("\nMayo tiene: 31 dias"); + break; + case 6: + printf ("\nJunio tiene: 30 dias"); + break; + case 7: + printf ("\nJulio tiene: 31 dias"); + break; + case 8: + printf ("\nAgosto tiene: 31 dias"); + break; + case 9: + printf ("\nSeptiembre tiene: 30 dias"); + break; + case 10: + printf ("\nOctubre tiene: 31 dias"); + break; + case 11: + printf ("\nNoviembre tiene: 30 dias"); + break; + case 12: + printf ("\nDiciembre tiene: 31 dias"); + break; + } + } + printf("\n\nTeclea ENTER para salir por favor..."); + fflush(stdin); + getchar(); + return 0; +} diff --git a/Equipo NetCode/ADA3_NetCode/Ejercicio 30.cpp b/Equipo NetCode/ADA3_NetCode/Ejercicio 30.cpp new file mode 100644 index 0000000..41cf7c8 --- /dev/null +++ b/Equipo NetCode/ADA3_NetCode/Ejercicio 30.cpp @@ -0,0 +1,56 @@ +#include +#include //Para las acentuaciones + +/* +Nombre: El dado +Descripción: Ingresa un número de alguna cara de un DADO e imprime el valor que hay en el lado opuesto de la cara +Autor: Alan Josue Barón Pat +Version: 1.0 +Fecha: 02/02/2020 +*/ + +int main (){ + int Dado; //Declaramos las variables a usar + Dado = 0; + + printf ("Consulta el lado opuesto de un DADO\n"); + scanf ("%d", &Dado); //Ingresamos la "cara" del dado (Entrada) + + if (Dado >6 | Dado<1){ + printf ("Un DADO no tiene ese lado"); //Validamos + } + else + { + switch (Dado) //Comprobamos e imprimimos (Salida) + { + case 1: + printf ("\nLa cara del DADO es: 1"); + printf ("\nSu lado opuesto es el SEIS (6)"); + break; + case 2: + printf ("\nLa cara del DADO es: 2"); + printf ("\nSu lado opuesto es el CINCO (5)"); + break; + case 3: + printf ("\nLa cara del DADO es: 3"); + printf ("\nSu lado opuesto es el CUATRO (4)"); + break; + case 4: + printf ("\nLa cara del DADO es: 4"); + printf ("\nSu lado opuesto es el TRES (3)"); + break; + case 5: + printf ("\nLa cara del DADO es: 5"); + printf ("\nSu lado opuesto es el DOS (2)"); + break; + case 6: + printf ("\nLa cara del DADO es: 6"); + printf ("\nSu lado opuesto es el UNO (1)"); + break; + } + } + printf("\n\nTeclea ENTER para salir por favor..."); + fflush(stdin); + getchar(); + return 0; +} diff --git a/Equipo NetCode/ADA3_NetCode/Ejercicio 31.cpp b/Equipo NetCode/ADA3_NetCode/Ejercicio 31.cpp new file mode 100644 index 0000000..3dd8571 --- /dev/null +++ b/Equipo NetCode/ADA3_NetCode/Ejercicio 31.cpp @@ -0,0 +1,186 @@ +/*HECHO POR VICTOR ENRIQUE CAUICH DAVALOS y ALAN JOSUE BARÓN PAT +31. E.P. que lea una letra minúscula o mayúscula, +determine e imprima la posición respectiva; +por ejemplo: a=1 y la Z=27. (utilizar switch). +*/ +#include +#include //Biblioteca para poder usar acentuaciones y más... + +int main() +{ + setlocale(LC_ALL,"");//LLamo al metodo de la biblioteca locale.h, para que todas las actuaciones, puedan verse... + char c; + printf("EJERCICIO 31. DETERMINAR E IMPRIMIR EN QUÉ POSICIÓN ESTÁ LA LETRA\nEN EL ABECEDARIO.\n\n"); + printf("Ingresa un carácter, por favor: "); + c = getchar(); + switch(c) + { + case 'a': + printf("\n%c = 1.", c); + break; + case 'A': + printf("\n%c = 1.", c); + break; + case 'b': + printf("\n%c = 2.", c); + break; + /*case 'B': + printf("\n%c = 2.", c); + break;*/ + case 'c': + printf("\n%c = 3.", c); + break; + case 'C': + printf("\n%c = 3.", c); + break; + case 'd': + printf("\n%c = 4.", c); + break; + case 'D': + printf("\n%c = 4.", c); + break; + case 'e': + printf("\n%c = 5.", c); + break; + case 'E': + printf("\n%c = 5.", c); + break; + case 'f': + printf("\n%c = 6.", c); + break; + case 'F': + printf("\n%c = 6.", c); + break; + case 'g': + printf("\n%c = 7.", c); + break; + case 'G': + printf("\n%c = 7.", c); + break; + case 'h': + printf("\n%c = 8.", c); + break; + case 'H': + printf("\n%c = 8.", c); + break; + case 'i': + printf("\n%c = 9.", c); + break; + case 'I': + printf("\n%c = 9.", c); + break; + case 'j': + printf("\n%c = 10.", c); + break; + case 'J': + printf("\n%c = 10.", c); + break; + case 'k': + printf("\n%c = 11.", c); + break; + case 'K': + printf("\n%c = 11.", c); + break; + case 'l': + printf("\n%c = 12.", c); + break; + case 'L': + printf("\n%c = 12.", c); + break; + case 'm': + printf("\n%c = 13.", c); + break; + case 'M': + printf("\n%c = 13.", c); + break; + case 'n': + printf("\n%c = 14.", c); + break; + case 'N': + printf("\n%c = 14.", c); + break; + case 'ñ': + printf("\n%c = 15.", c); + break; + case 'Ñ': + printf("\n%c = 15.", c); + break; + case 'o': + printf("\n%c = 16.", c); + break; + case 'O': + printf("\n%c = 16.", c); + break; + case 'p': + printf("\n%c = 17.", c); + break; + case 'P': + printf("\n%c = 17.", c); + break; + case 'q': + printf("\n%c = 18.", c); + break; + case 'Q': + printf("\n%c = 18.", c); + break; + case 'r': + printf("\n%c = 19.", c); + break; + case 'R': + printf("\n%c = 19.", c); + break; + case 's': + printf("\n%c = 20.", c); + break; + case 'S': + printf("\n%c = 20.", c); + break; + case 't': + printf("\n%c = 21.", c); + break; + case 'T': + printf("\n%c = 21.", c); + break; + case 'u': + printf("\n%c = 22.", c); + break; + case 'U': + printf("\n%c = 22.", c); + break; + case 'v': + printf("\n%c = 23.", c); + break; + case 'V': + printf("\n%c = 23.", c); + break; + case 'w': + printf("\n%c = 24.", c); + break; + case 'W': + printf("\n%c = 24.", c); + break; + case 'x': + printf("\n%c = 25.", c); + break; + case 'X': + printf("\n%c = 25.", c); + break; + case 'y': + printf("\n%c = 26.", c); + break; + case 'Y': + printf("\n%c = 26.", c); + break; + case 'z': + printf("\n%c = 27.", c); + break; + case 'Z': + printf("\n%c = 27.", c); + break; + + } + printf("\n\nTeclea ENTER para salir por favor..."); + fflush(stdin); + getchar(); + return 0; +} diff --git a/Equipo NetCode/ADA3_NetCode/Ejercicio 32.cpp b/Equipo NetCode/ADA3_NetCode/Ejercicio 32.cpp new file mode 100644 index 0000000..fda14d9 --- /dev/null +++ b/Equipo NetCode/ADA3_NetCode/Ejercicio 32.cpp @@ -0,0 +1,194 @@ +#include +#include //Para las acentuaciones +/* +Nombre: Seguro de autos +Descripción: El usuario selecciona un modelo de coche y rellena un formulario para calcular el importe del costo del seguro +Autor: Alan Josue Barón Pat +Version: 1.0 +Fecha: 03/02/2020 +*/ + +int main () { + setlocale(LC_ALL,"");//LLamo al metodo de la biblioteca locale.h, para que todas las actuaciones, puedan verse... + int Modelo,Color,Edad,Tiempo; +double Seguro; +Modelo = 0; +Color = 0; +Edad = 0; +Tiempo = 0; +Seguro = 0.0; + +printf ("\nBienvenido a la agencia de coches"); +printf ("\nSeleccione el número correspondiente al modelo \nde coche para calcular el costo del seguro\n"); +printf ("\n1.- Modelo A\n"); +printf ("2.- Modelo B\n"); +printf ("3.- Modelo C\n"); +scanf ("%d", &Modelo); + +if (Modelo <1 | Modelo>3) //Validamos +{ + printf ("\nIngrese una opcion válida"); +} + +switch (Modelo){ //Se inicia el calculo según el caso + case 1: + printf ("\nSeleccione el color\n"); + printf ("1.-Claro: $3,800 \n"); + printf ("2.-Oscuro: $4,340\n"); + scanf ("%d", &Color); //Segun el color es el precio del coche + if (Color<1 | Color>2){ + printf ("\nSeleccione una opcion valida");//Validamos + } + + if (Color == 1){ + Seguro = 3800; + } else{ + Seguro = 4340; + } + + printf ("\n¿Que edad tiene?\n"); + scanf ("%d", &Edad); //Con la edad se determina si tiene interés extra + if (Edad<0){ + printf ("Ingrese un valor válido"); + }else{ + if (Edad>0 & Edad<20){ + Seguro = Seguro*1.25; + }else { + if (Edad>=20 & Edad<=30){ + Seguro = Seguro*1.10; + }else { + if (Edad>30 & Edad<=65){ + Seguro = Seguro*1; + }else { + Seguro = Seguro*1.15; + } + } + } + } + + + printf ("\n¿Cuanto tiempo lleva conduciendo (En años)?\n"); + scanf ("%d", &Tiempo); //Con el tiempo que lleva conduciendo se determina si tiene más interés o no + if (Tiempo<0){ + printf ("Ingrese un valor válido"); + }else { + if (Tiempo<2){ + Seguro = Seguro*1.25; + }else { + Seguro = Seguro*1; + } + } + + printf ("\nEl costo del seguro es de: "); + printf ("%.4lf", Seguro); //Se imprime el precio total de seguro con todo e intereses. + + break; + case 2: + printf ("\nSeleccione el color\n"); + printf ("1.-Claro: $4,930 \n"); + printf ("2.-Oscuro: $5,600\n"); + scanf ("%d", &Color); + if (Color<1 | Color>2){ + printf ("\nSeleccione una opcion valida");//Validamos + } + + if (Color == 1){ + Seguro = 4930; + } else{ + Seguro = 5600; + } + + printf ("\n¿Que edad tiene?\n"); + scanf ("%d", &Edad); + if (Edad<0){ + printf ("Ingrese un valor válido"); + }else{ + if (Edad>0 & Edad<20){ + Seguro = Seguro*1.25; + }else { + if (Edad>=20 & Edad<=30){ + Seguro = Seguro*1.10; + }else { + if (Edad>30 & Edad<=65){ + Seguro = Seguro*1; + }else { + Seguro = Seguro*1.15; + } + } + } + } + + printf ("\n¿Cuanto tiempo lleva conduciendo (En años)?\n"); + scanf ("%d", &Tiempo); + if (Tiempo<0){ + printf ("Ingrese un valor válido"); + }else { + if (Tiempo<2){ + Seguro = Seguro*1.25; + }else { + Seguro = Seguro*1; + } + } + + printf ("\nEl costo del seguro es de: "); + printf ("%.4lf", Seguro); + + break; + + case 3: + printf ("\nSeleccione el color\n"); + printf ("1.-Claro: $7,570 \n"); + printf ("2.-Oscuro: $8,250\n"); + scanf ("%d", &Color); + if (Color<1 | Color>2){ + printf ("\nSeleccione una opcion valida");//Validamos + } + + if (Color == 1){ + Seguro = 7570; + } else{ + Seguro = 8250; + } + + printf ("\n¿Que edad tiene?\n"); + scanf ("%d", &Edad); + if (Edad<0){ + printf ("Ingrese un valor válido"); + }else{ + if (Edad>0 & Edad<20){ + Seguro = Seguro*1.25; + }else { + if (Edad>=20 & Edad<=30){ + Seguro = Seguro*1.10; + }else { + if (Edad>30 & Edad<=65){ + Seguro = Seguro*1; + }else { + Seguro = Seguro*1.15; + } + } + } + } + + + printf ("\n¿Cuanto tiempo lleva conduciendo (En años)?\n"); + scanf ("%d", &Tiempo); + if (Tiempo<0){ + printf ("Ingrese un valor válido"); + }else { + if (Tiempo<2){ + Seguro = Seguro*1.25; + }else { + Seguro = Seguro*1; + } + } + + printf ("\nEl costo del seguro es de: "); + printf ("%.4lf", Seguro); + + break; + +} + +return 0; +} diff --git a/Equipo NetCode/ADA4_NetCode/Ejercicio 33.cpp b/Equipo NetCode/ADA4_NetCode/Ejercicio 33.cpp new file mode 100644 index 0000000..1a0b8e9 --- /dev/null +++ b/Equipo NetCode/ADA4_NetCode/Ejercicio 33.cpp @@ -0,0 +1,33 @@ +#include +#include //Para las acentuaciones +/* +Nombre: Contador de 10 números +Descripción: Lee 10 números y determina los mayores a 100 +Autores: Alan Josue Barón Pat & Victor Enrique Cauich Davalos +Version: 1.0 +Fecha: 04/02/2020 +*/ + +int main (){ + setlocale(LC_ALL,"");//Se aplica la función de la biblioteca locale para que se puedan imprimir acentuaciones... + int num,A; //Declaramos e inicializamos la variable + num = 0; + A = 0; + + printf ("\nPrograma que lee 10 números y determina los mayores a 100\n"); + do{ + printf ("\nProporciona el número %d: ", num + 1); //Iniciamos a determinar + scanf ("%d", &A); + + if (A>100){ + printf ("El número es mayor a 100\n"); //Imprime si es mayor a 100 + } + + num++; + } while (num < 10); + printf("\nTeclea ENTER para salir por favor..."); + fflush(stdin); + getchar(); + return 0; +} + diff --git a/Equipo NetCode/ADA4_NetCode/Ejercicio 34.cpp b/Equipo NetCode/ADA4_NetCode/Ejercicio 34.cpp new file mode 100644 index 0000000..8f6dd45 --- /dev/null +++ b/Equipo NetCode/ADA4_NetCode/Ejercicio 34.cpp @@ -0,0 +1,26 @@ +#include +#include //Para las acentuaciones +/* +Nombre: Lectura e impresión de 100 números +Descripción: Leer 100 números e imprimirlos +Autores: Alan Josue Barón Pat & Victor Enrique Cauich Davalos +Version: 1.0 +Fecha: 05/02/2020 +*/ +int main (){ + setlocale(LC_ALL,"");//Se aplica la función de la biblioteca locale para que se puedan imprimir acentuaciones... + int num = 0.0; //Declaramos e inicializamos la variable + double A = 0; + + printf ("\nPrograma que lee 10 números y determina los mayores a 100\n"); + do{ + printf ("\nProporciona el número %d: ", num + 1); //Iniciamos a determinar + scanf ("%lf", &A); + printf ("\n\nEl número %d es: %.2f\n", num + 1, A); //Se imprime el número ingresado + num++; + } while (num < 100); + printf("\nTeclea ENTER para salir por favor..."); + fflush(stdin); + getchar(); + return 0; +} diff --git a/Equipo NetCode/ADA4_NetCode/Ejercicio 35.cpp b/Equipo NetCode/ADA4_NetCode/Ejercicio 35.cpp new file mode 100644 index 0000000..f2931ee --- /dev/null +++ b/Equipo NetCode/ADA4_NetCode/Ejercicio 35.cpp @@ -0,0 +1,34 @@ +#include +#include //Para las acentuaciones +/* +Nombre: Cuenta ceros +Descripción: Lee 25 números e imprime los iguales a 0 +Autores: Alan Josue Barón Pat & Victor Enrique Cauich Davalos +Version: 1.0 +Fecha: 04/02/2020 +*/ + +int main (){ + setlocale(LC_ALL,"");//Se aplica la función de la biblioteca locale para que se puedan imprimir acentuaciones... + int num,A; //Declaración e inicialización de las variables + num = 0; + A = 0; + printf ("\nPrograma que determina los que son igual a 0\n"); + do + { + printf ("\nIngrese el número %d: ", num + 1); //Determinamos los valores + scanf ("%d", &A); + + if (A == 0){ + printf ("Es igual a CERO\n"); //Imprime si es igual a Cero el valor introducido + } + + num++; + }while (num <25); + + printf("\nTeclea ENTER para salir por favor..."); + fflush(stdin); + getchar(); + return 0; +} + diff --git a/Equipo NetCode/ADA4_NetCode/Ejercicio 36.cpp b/Equipo NetCode/ADA4_NetCode/Ejercicio 36.cpp new file mode 100644 index 0000000..026e2c9 --- /dev/null +++ b/Equipo NetCode/ADA4_NetCode/Ejercicio 36.cpp @@ -0,0 +1,33 @@ +#include +#include //Para las acentuaciones +/* +Nombre: Cuenta positivos y negativos +Descripción: Lee 50 números y determina cuantos son negativos +Autores: Alan Josue Barón Pat & Victor Enrique Cauich Davalos +Version: 1.0 +Fecha: 05/02/2020 +*/ +int main (){ + setlocale(LC_ALL,"");//Se aplica la función de la biblioteca locale para que se puedan imprimir acentuaciones... + int num, Negativos; //Declaramos e inicializamos + double numero; + num = 0; + Negativos = 0; + numero = 0.0; + printf ("Programa que lee 50 números y determine e imprima cuantos son negativos.\n\n"); + do { + printf ("\nIngresa el número %d: ", num + 1); + scanf ("%lf", &numero); + if(numero < 0){ //Se determina si el número es negativo, entonces aumenta el contador... + Negativos++; + } + num++; + }while (num < 50); + //Imprimimos los resultados + printf ("\nEl total de NEGATIVOS es de: "); + printf ("%d", Negativos); + printf("\nTeclea ENTER para salir por favor..."); + fflush(stdin); + getchar(); + return 0; +} diff --git a/Equipo NetCode/ADA4_NetCode/Ejercicio 37.cpp b/Equipo NetCode/ADA4_NetCode/Ejercicio 37.cpp new file mode 100644 index 0000000..e0ae122 --- /dev/null +++ b/Equipo NetCode/ADA4_NetCode/Ejercicio 37.cpp @@ -0,0 +1,36 @@ +#include +#include //Para las acentuaciones +/* +Nombre: Cuenta positivos +Descripción: Lee 100 números y determina si es positivo y lo imprime +Autores: Alan Josue Barón Pat & Victor Enrique Cauich Davalos +Version: 1.0 +Fecha: 04/02/2020 +*/ + +int main (){ + setlocale(LC_ALL,"");//Se aplica la función de la biblioteca locale para que se puedan imprimir acentuaciones... + int num,contador; //Declaramos e inicializamos las variables + double A; + num = 0; + contador = 0; + A = 0.0; + printf ("\nPrograma que determina si es positivo\n"); + do{ + printf ("\nIngrese el número %d: ", num + 1); + scanf ("%lf", &A); //se escanea el número enésimo + + if (A > 0){ + printf ("El número es POSITIVO\n"); //Imprime si es positivo + contador = contador + 1; //Contabilizamos los positivos introducidos + } + num++; + }while (num < 100); + + printf ("\nEl número de positivos fue de: "); //Imprime cuantos fueron positivos + printf ("%d", contador); + printf("\nTeclea ENTER para salir por favor..."); + fflush(stdin); + getchar(); + return 0; +} diff --git a/Equipo NetCode/ADA4_NetCode/Ejercicio 38.cpp b/Equipo NetCode/ADA4_NetCode/Ejercicio 38.cpp new file mode 100644 index 0000000..561ba41 --- /dev/null +++ b/Equipo NetCode/ADA4_NetCode/Ejercicio 38.cpp @@ -0,0 +1,40 @@ +#include +#include //Para las acentuaciones +/* +Nombre: Empleados de “El Sapo Verde” +Descripción: Que lea el nombre, sueldo y número de hijos y determinar quién gana un salario mayor a 1000 y que +tengan entre 3 y 7 hijos +Autores: Alan Josue Barón Pat & Victor Enrique Cauich Davalos +Version: 1.0 +Fecha: 04/02/2020 +*/ + +int main (){ + setlocale(LC_ALL,"");//Se aplica la función de la biblioteca locale para que se puedan imprimir acentuaciones... + char Nombre[30]; //Declaramos e inicializamos las variables + double Sueldo = 0.0; + int Hijos = 0, contador = 20; + printf("Empleados de “El Sapo Verde” con sueldo mayor a $1000 e hijos entre 3 - 7.\n\n"); + do + { + printf("\nIngrese el primer nombre del empleado #%d, por favor: ", 20 - (contador - 1)); + scanf("%s", &Nombre);//Se lee el nombre el empleado + fflush(stdin);//Se limpia el buffer del escaner + printf("Ingrese el salario del empleado, por favor: "); + scanf("%lf", &Sueldo);//Se lee el salario dek empleado + fflush(stdin); + printf("Ingrese cuántos hijos tiene el empleado, por favor: "); + scanf("%d", &Hijos);//Se lee cuántos hijos tiene + fflush(stdin); + if(Sueldo > 1000 && (3 <= Hijos <= 7))//Se calcula si cumple con el salario mayor a 1000 y entre 3 y 7 hijos, si es así se imprime + { + printf("\n%s gana mas de $1000 con $%.2lf y tiene %d hijos.\n", Nombre, Sueldo, Hijos); + } + Nombre[30] = '\0'; + contador--; + }while(contador!=0); + printf("\nTeclea ENTER para salir por favor..."); + fflush(stdin); + getchar(); + return 0; +} diff --git a/Equipo NetCode/ADA4_NetCode/Ejercicio 39.cpp b/Equipo NetCode/ADA4_NetCode/Ejercicio 39.cpp new file mode 100644 index 0000000..5689999 --- /dev/null +++ b/Equipo NetCode/ADA4_NetCode/Ejercicio 39.cpp @@ -0,0 +1,36 @@ +#include +#include //Para las acentuaciones +/* +Nombre: Utilidades +Descripción: Lee las utilidades de 5 tiendas y determina cuales tuvieron utilidades mayores a $2,000,000 +Autores: Alan Josue Barón Pat & Victor Enrique Cauich Davalos +Version: 1.0 +Fecha: 04/02/2020 +*/ +int main (){ + setlocale(LC_ALL,"");//Se aplica la función de la biblioteca locale para que se puedan imprimir acentuaciones... + int Tienda, Contador; + double Utilidades; + Tienda = 0; + Contador = 0; + Utilidades = 0.0; + printf ("Programa que determina si las utilidades son mayores a $2,000,000\n."); + while (Tienda < 5){ + printf ("\nUtilidades mensuales de la tienda %d", Tienda + 1); + printf ("\n\nIngrese las utilidades de la tienda: "); + scanf ("%lf", &Utilidades); + + if (Utilidades >2000000){ + printf ("Las utilidades son mayores a $2,000,000\n"); + Contador++; + } + + Tienda++; + } + printf ("\nEl número de tiendas con utilidades mayores a $2,000,000 fue de: %d", Contador); + + printf("\nTeclea ENTER para salir por favor..."); + fflush(stdin); + getchar(); + return 0; +} diff --git a/Equipo NetCode/ADA4_NetCode/Ejercicio 40.cpp b/Equipo NetCode/ADA4_NetCode/Ejercicio 40.cpp new file mode 100644 index 0000000..bf63379 --- /dev/null +++ b/Equipo NetCode/ADA4_NetCode/Ejercicio 40.cpp @@ -0,0 +1,40 @@ +#include +#include //Para las acentuaciones +/* +Nombre: Utilidades anuales +Descripción: Lee las utilidades de 5 tiendas en los 12 meses y determina cuales tuvieron utilidades mayores a $2,000,000 al año +Autores: Alan Josue Barón Pat & Victor Enrique Cauich Davalos +Version: 1.0 +Fecha: 05/02/2020 +*/ +int main (){ + setlocale(LC_ALL,"");//Se aplica la función de la biblioteca locale para que se puedan imprimir acentuaciones... + int Tienda = 0, Contador; + double UtilidadesI = 0, Utilidades = 0; + Tienda = 0; + int i = 0; + Contador = 0; + printf ("Programa que determina si las utilidades son mayores a $2,000,000\n."); + while (Tienda < 5){ // ciclo que se ejecuta para las 5 tiendas + printf ("\nUtilidades mensuales de la tienda #%d", Tienda + 1); + while(i < 12)//ciclo que se realiza para los 12 meses del año + { + printf ("\n\nIngrese las utilidades de la tienda del mes #%d: ", i + 1); + scanf ("%lf", &UtilidadesI);//Se le pide al usuario ingresar las utilidades mensuales + Utilidades = Utilidades + UtilidadesI;//Se van sumando las utilidades + i++;//Aumentan los meses recorridos + } + if (Utilidades >2000000){//Se calcula si al final del año ganó en utilidades la tienda en mas de 2000000 + Contador++;//Aumentan las tiendas que cumplieron los requisitos + } + Utilidades = 0;//Se inicializan las utilidades anuales + i = 0;//Se inicializan los meses + Tienda++;//Aumenta el números de tiendas a recorrer + } + printf ("\nEl número de tiendas con utilidades mayores a $2,000,000 fue de: %d", Contador);//Se imprimen cuántas tiendas cumplieron los requisitos + + printf("\nTeclea ENTER para salir por favor..."); + fflush(stdin); + getchar(); + return 0; +} diff --git a/Equipo NetCode/ADA4_NetCode/Ejercicio 41.cpp b/Equipo NetCode/ADA4_NetCode/Ejercicio 41.cpp new file mode 100644 index 0000000..a82c002 --- /dev/null +++ b/Equipo NetCode/ADA4_NetCode/Ejercicio 41.cpp @@ -0,0 +1,45 @@ +#include +#include //Para las acentuaciones +/* +Nombre: Calificaciones del 1er Parcial +Descripción: Lee las calificaciones del primer parcial de los estudiantes de P.E y calcule e imprima el promedio de todo el grupo +Autores: Alan Josue Barón Pat & Victor Enrique Cauich Davalos +Version: 1.0 +Fecha: 04/02/2020 +*/ +int main (){ + setlocale(LC_ALL,"");//Se aplica la función de la biblioteca locale para que se puedan imprimir acentuaciones... + int num,alumnos; //Declaramos e inicializamos las variables + double Promedio,Puntaje; + num = 0; + alumnos = 0; + Promedio = 0.0; + Puntaje = 0.0; + printf ("Programa que calcula el promedio de un grupo\n"); + printf ("Ingrese el total de alumnos: "); //Ingresamos el número de alumnos con el cual se determina el promedio; + scanf ("%d", &alumnos); + + if (alumnos<=0){ + printf ("Tiene que existir alumnos");//Validamos el dato + } else + { + while (num < alumnos){ + printf ("\nIngrese su puntaje alumno %d (entre 0-100): ", num + 1); + scanf ("%lf", &Puntaje); + if (Puntaje <0 || Puntaje>100){ + printf ("\nPuntaje no válido\n");//Validamos + }else{ + Promedio = Promedio+Puntaje;//Añadimos para posteriormente obtener el promedio + num++; + } + } + Promedio = Promedio/alumnos; + printf ("\nEl promedio del grupo es de: "); + printf ("%.2lf", Promedio); + } + + printf("\nTeclea ENTER para salir por favor..."); + fflush(stdin); + getchar(); + return 0; +} diff --git a/Equipo NetCode/ADA4_NetCode/Ejercicio 42.cpp b/Equipo NetCode/ADA4_NetCode/Ejercicio 42.cpp new file mode 100644 index 0000000..17371c5 --- /dev/null +++ b/Equipo NetCode/ADA4_NetCode/Ejercicio 42.cpp @@ -0,0 +1,45 @@ +#include +#include //Para las acentuaciones +/* +Nombre: Calificaciones del 1er parcial 2.0 +Descripción: Lee las calificaciones del primer parcial de los estudiantes de P.E y calcule e imprima cuántos alumnos sacaron mayor a 80 pts +Autores: Alan Josue Barón Pat & Victor Enrique Cauich Davalos +Version: 1.0 +Fecha: 06/02/2020 +*/ +int main (){ + setlocale(LC_ALL,"");//Se aplica la función de la biblioteca locale para que se puedan imprimir acentuaciones... + int num,alumnos, AlumnosAceptados = 0; //Declaramos e inicializamos las variables + double Puntaje; + num = 0; + alumnos = 0; + Puntaje = 0.0; + printf ("Programa que calcula cuántos alumnos sacaron \nmayor a 80 pts en su primer parcial.\n"); + printf ("Ingrese el total de alumnos: "); //Ingresamos el número de alumnos con el cual se determina el promedio; + scanf ("%d", &alumnos); + + if (alumnos<=0){//Si no existe ningún alumno entonces no hace nada el programa + printf ("\nTiene que existir alumnos");//Validamos el dato + } else + { + while (num < alumnos){//Se repite el bucle hasta que ingresen todos los alumnos sus puntajes + printf ("\nIngrese su puntaje alumno %d (entre 0-100): ", num + 1); + scanf ("%lf", &Puntaje);//Se ingresa el puntaje de cada alumno + if (Puntaje <0 || Puntaje>100){//Se valida si el puntaje ingresado no sea erroneo + printf ("\nPuntaje no válido\n");//Validamos + }else{ + num++;//Se pasa al siguiente alumno si es que hay + if(Puntaje > 80)//Si es mayor a 80 el puntaje entonces cuenta como que un alumno mas cumplió los requisitos + { + AlumnosAceptados++; + } + } + } + } + //Se imprimen cuántos alumnos cumplieron el requisito de tener mayor que 80 puntos + printf("\n\nHay %d alumno(s) que sacaron en el primer parcial \nde programación estructurada mas de 80pts.", AlumnosAceptados); + printf("\nTeclea ENTER para salir por favor..."); + fflush(stdin); + getchar(); + return 0; +} diff --git a/Equipo NetCode/ADA4_NetCode/Ejercicio 43.cpp b/Equipo NetCode/ADA4_NetCode/Ejercicio 43.cpp new file mode 100644 index 0000000..221fb54 --- /dev/null +++ b/Equipo NetCode/ADA4_NetCode/Ejercicio 43.cpp @@ -0,0 +1,43 @@ +#include +#include //Para las acentuaciones +/* +Nombre: Cuenta positivos y negativos +Descripción: Lee 250 números y determina cuantos son positivos y negativos +Autores: Alan Josue Barón Pat & Victor Enrique Cauich Davalos +Version: 1.0 +Fecha: 04/02/2020 +*/ +int main (){ + setlocale(LC_ALL,"");//Se aplica la función de la biblioteca locale para que se puedan imprimir acentuaciones... + int num,Positivos,Negativos; //Declaramos e inicializamos + double numero; + num = 0; + Positivos = 0; + Negativos = 0; + numero = 0.0; + printf ("Programa que lee 250 números y determina cuantos son positivos y negativos"); + while (num < 250){ + printf ("\nIngresa el número %d: ", num + 1); + scanf ("%lf", &numero); + if (numero > 0){ //Determina su tipo + Positivos++; + }else { + if(numero < 0){ + Negativos++; + }else + { + printf("El 0 no se cuenta como positivo ni negativo, por lo tanto no se cuenta..."); + } + } + num++; + } + //Imprimimos los resultados + printf ("\nEl total de POSITIVOS es de: "); + printf ("%d", Positivos); + printf ("\nEl total de NEGATIVOS es de: "); + printf ("%d", Negativos); + printf("\nTeclea ENTER para salir por favor..."); + fflush(stdin); + getchar(); + return 0; +} diff --git a/Equipo NetCode/ADA4_NetCode/Ejercicio 44.cpp b/Equipo NetCode/ADA4_NetCode/Ejercicio 44.cpp new file mode 100644 index 0000000..61d73c1 --- /dev/null +++ b/Equipo NetCode/ADA4_NetCode/Ejercicio 44.cpp @@ -0,0 +1,72 @@ +#include +#include //Para las acentuaciones +/* +Nombre: Calificación de alumnos de 100 preguntas +Descripción: Leer cuántas preguntas de 100 contestaron bien los alumnos e imprimir cuál es su calificación +Autores: Alan Josue Barón Pat & Victor Enrique Cauich Davalos +Version: 1.0 +Fecha: 07/02/2020 +*/ + +int main (){ + setlocale(LC_ALL,"");//Se aplica la función de la biblioteca locale para que se puedan imprimir acentuaciones... + int Alumnos = 50, Preguntas = 100, i = 0, t = 0; //Declaramos e inicializamos las variables + int PreguntasContestadas; + char Nombre[30]; + printf ("Programa que calcula cuál es el puntaje de los alumnos.\n"); + while(i < Alumnos){ + printf("\nIngrese el primer nombre del alumno #%d, por favor: ", i + 1); + scanf("%s", &Nombre);//Se pide ingresar el nombre del alumno + fflush(stdin);//Se limpia el buffer del escaneer + printf("Ingrese cuántas preguntas contestó bien el alumno #%d, por favor: ", i + 1); + scanf("%d", &PreguntasContestadas);//Se leen cuántas preguntas contestó el alumno + fflush(stdin); + if(PreguntasContestadas < 0 || PreguntasContestadas > 100)//Se valida si las preguntas que ingresó son entre 0 y 100, sino se pide insertar todo de nuevo + { + printf("\nLas preguntas contestadas son invalidad, ingrese un valor entre 0 y 100...\n"); + }else + { + i++;//Ya que se haya validado las preguntas, entonces ya se podría aumentar el contador hacia el siguiente alumno + if(PreguntasContestadas <= 30)//Se calcula si las preguntas ingresadas son menor o igual a 30, si es entonces se imprime lo siguiente... + { + printf("\nEl alumno tiene 0 de calificación o no tiene calificación...\n"); + }else + { + if(PreguntasContestadas <= 50)//Se calcula si las preguntas ingresadas son menor o igual a 50, si es entonces se imprime lo siguiente... + { + printf("\nEl alumno %s sacó 50 puntos con %d preguntas contestadas.\n", Nombre, PreguntasContestadas); + }else + { + if(PreguntasContestadas <= 60)//Se calcula si las preguntas ingresadas son menor o igual a 60, si es entonces se imprime lo siguiente... + { + printf("\nEl alumno %s sacó 60 puntos con %d preguntas contestadas.\n", Nombre, PreguntasContestadas); + }else + { + if(PreguntasContestadas <= 65){//Se calcula si las preguntas ingresadas son menor o igual a 65, si es entonces se imprime lo siguiente... + printf("\nEl alumno %s sacó 70 puntos con %d preguntas contestadas.\n", Nombre, PreguntasContestadas); + }else + { + if(PreguntasContestadas <= 75)//Se calcula si las preguntas ingresadas son menor o igual a 75, si es entonces se imprime lo siguiente... + { + printf("\nEl alumno %s sacó 80 puntos con %d preguntas contestadas.\n", Nombre, PreguntasContestadas); + }else + { + if(PreguntasContestadas <= 90)//Se calcula si las preguntas ingresadas son menor o igual a 90, si es entonces se imprime lo siguiente... + { + printf("\nEl alumno %s sacó 90 puntos con %d preguntas contestadas.\n", Nombre, PreguntasContestadas); + }else//Si las preguntas son entre 91 y 100, entonces se imprime lo siguiente... + { + printf("\nEl alumno %s sacó 100 puntos con %d preguntas contestadas.\n", Nombre, PreguntasContestadas); + } + } + } + } + } + } + } + } + printf("\nTeclea ENTER para salir por favor..."); + fflush(stdin); + getchar(); + return 0; +} diff --git a/Equipo NetCode/ADA5_NetCode/Ejercicio 44.cpp b/Equipo NetCode/ADA5_NetCode/Ejercicio 44.cpp new file mode 100644 index 0000000..4a455dd --- /dev/null +++ b/Equipo NetCode/ADA5_NetCode/Ejercicio 44.cpp @@ -0,0 +1,79 @@ +#include +#include //Para las acentuaciones +/* +Nombre: Calificación de alumnos de 100 preguntas +Descripción: Leer cuántas preguntas de 100 contestaron bien los alumnos e imprimir cuál es su calificación +Autores: Alan Josue Barón Pat & Victor Enrique Cauich Davalos +Version: 2.0 +Fecha: 12/02/2020 +*/ + +void calcularCalificacion(int PreguntasContestadas, char Nombre[]); + +int main (){ + setlocale(LC_ALL,"");//Se aplica la función de la biblioteca locale para que se puedan imprimir acentuaciones... + int Alumnos = 50, Preguntas = 100, i = 0, t = 0; //Declaramos e inicializamos las variables + int PreguntasContestadas; + char Nombre[30]; + printf ("Programa que calcula cuál es el puntaje de los alumnos.\n"); + for(int i = 0; i < Alumnos; i) + { + printf("\nIngrese el primer nombre del alumno #%d, por favor: ", i + 1); + scanf("%s", &Nombre);//Se pide ingresar el nombre del alumno + fflush(stdin);//Se limpia el buffer del escaneer + printf("Ingrese cuántas preguntas contestó bien el alumno #%d, por favor: ", i + 1); + scanf("%d", &PreguntasContestadas);//Se leen cuántas preguntas contestó el alumno + fflush(stdin); + if(PreguntasContestadas < 0 || PreguntasContestadas > 100)//Se valida si las preguntas que ingresó son entre 0 y 100, sino se pide insertar todo de nuevo + { + printf("\nLas preguntas contestadas son invalidad, ingrese un valor entre 0 y 100...\n"); + }else + { + i++;//Ya |que se haya validado las preguntas, entonces ya se podría aumentar el contador hacia el siguiente alumno + calcularCalificacion(PreguntasContestadas, Nombre); + } + } + printf("\nTeclea ENTER para salir por favor..."); + fflush(stdin); + getchar(); + return 0; +} +void calcularCalificacion(int PreguntasContestadas, char Nombre[]) +{ + if(PreguntasContestadas <= 30)//Se calcula si las preguntas ingresadas son menor o igual a 30, si es entonces se imprime lo siguiente... + { + printf("\nEl alumno %s tiene 0 de calificación o no tiene calificación...\n", Nombre); + }else + { + if(PreguntasContestadas <= 50)//Se calcula si las preguntas ingresadas son menor o igual a 50, si es entonces se imprime lo siguiente... + { + printf("\nEl alumno %s sacó 50 puntos con %d preguntas contestadas.\n", Nombre, PreguntasContestadas); + }else + { + if(PreguntasContestadas <= 60)//Se calcula si las preguntas ingresadas son menor o igual a 60, si es entonces se imprime lo siguiente... + { + printf("\nEl alumno %s sacó 60 puntos con %d preguntas contestadas.\n", Nombre, PreguntasContestadas); + }else + { + if(PreguntasContestadas <= 65){//Se calcula si las preguntas ingresadas son menor o igual a 65, si es entonces se imprime lo siguiente... + printf("\nEl alumno %s sacó 70 puntos con %d preguntas contestadas.\n", Nombre, PreguntasContestadas); + }else + { + if(PreguntasContestadas <= 75)//Se calcula si las preguntas ingresadas son menor o igual a 75, si es entonces se imprime lo siguiente... + { + printf("\nEl alumno %s sacó 80 puntos con %d preguntas contestadas.\n", Nombre, PreguntasContestadas); + }else + { + if(PreguntasContestadas <= 90)//Se calcula si las preguntas ingresadas son menor o igual a 90, si es entonces se imprime lo siguiente... + { + printf("\nEl alumno %s sacó 90 puntos con %d preguntas contestadas.\n", Nombre, PreguntasContestadas); + }else//Si las preguntas son entre 91 y 100, entonces se imprime lo siguiente... + { + printf("\nEl alumno %s sacó 100 puntos con %d preguntas contestadas.\n", Nombre, PreguntasContestadas); + } + } + } + } + } + } +} diff --git a/Equipo NetCode/ADA5_NetCode/Ejercicio 45.cpp b/Equipo NetCode/ADA5_NetCode/Ejercicio 45.cpp new file mode 100644 index 0000000..4ed7099 --- /dev/null +++ b/Equipo NetCode/ADA5_NetCode/Ejercicio 45.cpp @@ -0,0 +1,65 @@ +#include +#include //Cadena de caracteres +#include //Para las acentuaciones +/* +Nombre: Reporte anual de utilidades +Descripción: Captura la antigüedad y el sueldo de 100 empleados y calcula la cantidad que le corresponde a cada uno +Autor: Alan Josue Barón Pat & Victor Enrique Cauich Davalos +Version: 1.0 +Fecha: 06/02/2020 +*/ + +double Incentivo (int Tiempo, double Sueldo){ //Declaramos una función + double Pago; + if (Tiempo>= 1 & Tiempo<=3){ + Pago = Sueldo*1.01; + }else { + if (Tiempo>3 & Tiempo<=6){ + Pago = Sueldo*1.03; + }else { + if (Tiempo>6 & Tiempo<=9){ + Pago = Sueldo*1.05; + }else { + if (Tiempo>9 & Tiempo<=15){ + Pago = Sueldo*1.07; + }else { + printf ("Opción no válida"); + } + } + } + } + + return Pago; +} + +int main (){ + setlocale (LC_ALL, ""); //Aplicamos la libreria + int i,Tiempo; //Declaración e Inicialización de las variables + double Sueldo,Pago; + char Name[20]; + Tiempo = 0; + Sueldo = 0; + Pago = 0; + printf ("Programa que determina el sueldo correspondiente según el salario y antigüedad\n"); + + for (i=0;i<100;i++){ //Lectura de los 100 empleados + Sueldo = 0; + Pago = 0; + //Datos de entrada + printf ("\nEmpleado: %d", i+1); + printf ("\nIngrese su nombre: "); + scanf ("%s", &Name); + printf ("Ingrese su sueldo mensual: "); + scanf ("%lf", &Sueldo); + printf ("Ingrese su antigüedad en la empresa: "); + scanf ("%d", &Tiempo); + Pago = Incentivo (Tiempo, Sueldo); //Función para el Proceso + //Salida + printf ("\nPara: "); + printf ("%s", Name); + printf ("\nLe corresponde el pago de: %.4lf\n", Pago); + + } + + return 0; +} diff --git a/Equipo NetCode/ADA5_NetCode/Ejercicio 46.cpp b/Equipo NetCode/ADA5_NetCode/Ejercicio 46.cpp new file mode 100644 index 0000000..1362772 --- /dev/null +++ b/Equipo NetCode/ADA5_NetCode/Ejercicio 46.cpp @@ -0,0 +1,64 @@ +#include +#include //Para las acentuaciones +/* +Nombre: Determina Tipos +Descripción: Captura 200 números y calcula cuantos fueron positivos, negativos e iguales a cero +Autor: Alan Josue Barón Pat & Victor Enrique Cauich Davalos +Version: 1.0 +Fecha: 06/02/2020 +*/ + +//Definimos funciones +int ClasificadorP (double number){ + int Positivos; + Positivos = 0; + if (number>0){ + Positivos++; + } + return Positivos; +} + +int ClasificadorN (double number){ + int Negativos; + Negativos = 0; + if (number<0){ + Negativos++; + } + return Negativos; +} + +int ClasificadorC (double number){ + int Ceros; + Ceros = 0; + if (number == 0){ + Ceros++; + } + return Ceros; +} + +int main (){ + setlocale (LC_ALL, ""); //Aplicamos la libreria + int i,Positivos,Negativos,Ceros, Lim = 200; //Declaración e inicialización de las variables + double number; + Positivos = 0; + Negativos = 0; + Ceros = 0; + number = 0.0; + printf ("Programa que clasifica los positivos, negativos e iguales a cero de 200 números\n"); + for (i=0;i +#include //Para las acentuaciones +#include +/* +Nombre: Alumnos arriba del promedio +Descripción: Leer las calificaciones de 50 alumnos y que determine e imprima cuantos tienen calificación mayor al promedio de grupo +Autores: Victor Enrique Cauich Davalos & Alan Josue Barón Pat +Version: 1.0 +Fecha: 14/02/2020 +*/ + +//Declaramos la función para calcular si la calificación de los alumnos es mayor al promedio +int calcularMayorAPromedio(char Nom[], double Cal, double Promedio); +#define NoAlumnos 50 //Definimos constante del número de estudiantes + +int main (){ + setlocale(LC_ALL,"");//Se aplica la función de la biblioteca locale para que se puedan imprimir acentuaciones... + //Declaramos todas las variables de cada alumno para guardar sus calificaciones + double Cal1, Cal2, Cal3, Cal4, Cal5, Cal6, Cal7, Cal8, Cal9, Cal10, Cal11, Cal12, Cal13, Cal14, Cal15, Cal16, Cal17, Cal18, Cal19, Cal20; + double Cal21, Cal22, Cal23, Cal24, Cal25, Cal26, Cal27, Cal28, Cal29, Cal30, Cal31, Cal32, Cal33, Cal34, Cal35, Cal36, Cal37, Cal38, Cal39, Cal40; + double Cal41, Cal42, Cal43, Cal44, Cal45, Cal46, Cal47, Cal48, Cal49, Cal50; + //Declaramos la variable donde vamos leyendo la calificación de cada alumno + double CalPrueba; + //Declaramos los arrays de char para guardar los nombres de cada alumno + char Nom1[30], Nom2[30], Nom3[30], Nom4[30], Nom5[30], Nom6[30], Nom7[30], Nom8[30], Nom9[30], Nom10[30]; + char Nom11[30], Nom12[30], Nom13[30], Nom14[30], Nom15[30], Nom16[30], Nom17[30], Nom18[30], Nom19[30], Nom20[30]; + char Nom21[30], Nom22[30], Nom23[30], Nom24[30], Nom25[30], Nom26[30], Nom27[30], Nom28[30], Nom29[30], Nom30[30]; + char Nom31[30], Nom32[30], Nom33[30], Nom34[30], Nom35[30], Nom36[30], Nom37[30], Nom38[30], Nom39[30], Nom40[30]; + char Nom41[30], Nom42[30], Nom43[30], Nom44[30], Nom45[30], Nom46[30], Nom47[30], Nom48[30], Nom49[30], Nom50[30]; + //Declaramos el array donde vamos leyendo el nombre de cad alumno + char NomPrueba[30]; + //Declaramos donde vamos a ir guardando cuántos alumnos tiene calificación arriba del promedio + int CantAlumnosMayorAPromedio = 0; + //Declaramos la variable donde vamos a ir calculando el promedio entre la calificación de todos los alumnos + double Promedio; //Declaramos la variable para guardar el promedio + int i; + printf("PROGRAMA PARA CÁLCULAR CUALES ALUMNOS TIENEN \nCALIFICACIÓN MAYOR AL PROMEDIO DE TODOS LOS ALUMNOS.\n\n"); + //For para leer la calificación de todos los alumnos y guardarlos en sus respectivas variables + //Al igual que vamos sumando todas las calificaciones de los alumnos para luego calcular el promedio + for(i = 0; i < NoAlumnos; i) + { + + printf("\nIngrese el primer nombre del alumno #%d, por favor: ", i + 1); + scanf("%s", &NomPrueba); + fflush(stdin); + printf("Ingrese su calificación (0 - 100), por favor: "); + scanf("%lf", &CalPrueba); + //Validación de que la calificación este entre el número 0 y 100 + if(0 <= CalPrueba && CalPrueba <= 100) + { + switch(i) + { + case 0: + memcpy(Nom1, NomPrueba, sizeof(NomPrueba)); + Cal1 = CalPrueba; + break; + case 1: + memcpy(Nom2, NomPrueba, sizeof(NomPrueba)); + Cal2 = CalPrueba; + break; + case 2: + memcpy(Nom3, NomPrueba, sizeof(NomPrueba)); + Cal3 = CalPrueba; + break; + case 3: + memcpy(Nom4, NomPrueba, sizeof(NomPrueba)); + Cal4 = CalPrueba; + break; + case 4: + memcpy(Nom5, NomPrueba, sizeof(NomPrueba)); + Cal5 = CalPrueba; + break; + case 5: + memcpy(Nom6, NomPrueba, sizeof(NomPrueba)); + Cal6 = CalPrueba; + break; + case 6: + memcpy(Nom7, NomPrueba, sizeof(NomPrueba)); + Cal7 = CalPrueba; + break; + case 7: + memcpy(Nom8, NomPrueba, sizeof(NomPrueba)); + Cal8 = CalPrueba; + break; + case 8: + memcpy(Nom9, NomPrueba, sizeof(NomPrueba)); + Cal9 = CalPrueba; + break; + case 9: + memcpy(Nom10, NomPrueba, sizeof(NomPrueba)); + Cal10 = CalPrueba; + break; + case 10: + memcpy(Nom11, NomPrueba, sizeof(NomPrueba)); + Cal11 = CalPrueba; + break; + case 11: + memcpy(Nom12, NomPrueba, sizeof(NomPrueba)); + Cal12 = CalPrueba; + break; + case 12: + memcpy(Nom13, NomPrueba, sizeof(NomPrueba)); + Cal13 = CalPrueba; + break; + case 13: + memcpy(Nom14, NomPrueba, sizeof(NomPrueba)); + Cal14 = CalPrueba; + break; + case 14: + memcpy(Nom15, NomPrueba, sizeof(NomPrueba)); + Cal15 = CalPrueba; + break; + case 15: + memcpy(Nom16, NomPrueba, sizeof(NomPrueba)); + Cal16 = CalPrueba; + break; + case 16: + memcpy(Nom17, NomPrueba, sizeof(NomPrueba)); + Cal17 = CalPrueba; + break; + case 17: + memcpy(Nom18, NomPrueba, sizeof(NomPrueba)); + Cal18 = CalPrueba; + break; + case 18: + memcpy(Nom19, NomPrueba, sizeof(NomPrueba)); + Cal19 = CalPrueba; + break; + case 19: + memcpy(Nom20, NomPrueba, sizeof(NomPrueba)); + Cal20 = CalPrueba; + break; + case 20: + memcpy(Nom21, NomPrueba, sizeof(NomPrueba)); + Cal21 = CalPrueba; + break; + case 21: + memcpy(Nom22, NomPrueba, sizeof(NomPrueba)); + Cal22 = CalPrueba; + break; + case 22: + memcpy(Nom23, NomPrueba, sizeof(NomPrueba)); + Cal23 = CalPrueba; + break; + case 23: + memcpy(Nom24, NomPrueba, sizeof(NomPrueba)); + Cal24 = CalPrueba; + break; + case 24: + memcpy(Nom25, NomPrueba, sizeof(NomPrueba)); + Cal25 = CalPrueba; + break; + case 25: + memcpy(Nom26, NomPrueba, sizeof(NomPrueba)); + Cal26 = CalPrueba; + break; + case 26: + memcpy(Nom27, NomPrueba, sizeof(NomPrueba)); + Cal27 = CalPrueba; + break; + case 27: + memcpy(Nom28, NomPrueba, sizeof(NomPrueba)); + Cal28 = CalPrueba; + break; + case 28: + memcpy(Nom29, NomPrueba, sizeof(NomPrueba)); + Cal29 = CalPrueba; + break; + case 29: + memcpy(Nom30, NomPrueba, sizeof(NomPrueba)); + Cal30 = CalPrueba; + break; + case 30: + memcpy(Nom31, NomPrueba, sizeof(NomPrueba)); + Cal31 = CalPrueba; + break; + case 31: + memcpy(Nom32, NomPrueba, sizeof(NomPrueba)); + Cal32 = CalPrueba; + break; + case 32: + memcpy(Nom33, NomPrueba, sizeof(NomPrueba)); + Cal33 = CalPrueba; + break; + case 33: + memcpy(Nom34, NomPrueba, sizeof(NomPrueba)); + Cal34 = CalPrueba; + break; + case 34: + memcpy(Nom35, NomPrueba, sizeof(NomPrueba)); + Cal35 = CalPrueba; + break; + case 35: + memcpy(Nom36, NomPrueba, sizeof(NomPrueba)); + Cal36 = CalPrueba; + break; + case 36: + memcpy(Nom37, NomPrueba, sizeof(NomPrueba)); + Cal37 = CalPrueba; + break; + case 37: + memcpy(Nom38, NomPrueba, sizeof(NomPrueba)); + Cal38 = CalPrueba; + break; + case 38: + memcpy(Nom39, NomPrueba, sizeof(NomPrueba)); + Cal39 = CalPrueba; + break; + case 39: + memcpy(Nom40, NomPrueba, sizeof(NomPrueba)); + Cal40 = CalPrueba; + break; + case 40: + memcpy(Nom41, NomPrueba, sizeof(NomPrueba)); + Cal41 = CalPrueba; + break; + case 41: + memcpy(Nom42, NomPrueba, sizeof(NomPrueba)); + Cal42 = CalPrueba; + break; + case 42: + memcpy(Nom43, NomPrueba, sizeof(NomPrueba)); + Cal43 = CalPrueba; + break; + case 43: + memcpy(Nom44, NomPrueba, sizeof(NomPrueba)); + Cal44 = CalPrueba; + break; + case 44: + memcpy(Nom45, NomPrueba, sizeof(NomPrueba)); + Cal45 = CalPrueba; + break; + case 45: + memcpy(Nom46, NomPrueba, sizeof(NomPrueba)); + Cal46 = CalPrueba; + break; + case 46: + memcpy(Nom47, NomPrueba, sizeof(NomPrueba)); + Cal47 = CalPrueba; + break; + case 47: + memcpy(Nom48, NomPrueba, sizeof(NomPrueba)); + Cal48 = CalPrueba; + break; + case 48: + memcpy(Nom49, NomPrueba, sizeof(NomPrueba)); + Cal49 = CalPrueba; + break; + case 49: + memcpy(Nom50, NomPrueba, sizeof(NomPrueba)); + Cal50 = CalPrueba; + break; + default: + printf("\nERROR FOR...\n"); + break; + + } + i++; + Promedio = Promedio + CalPrueba; + }else + { + printf("\nERROR, CALIFICACIÓN INVALIDA..."); + printf("\nIngrese de nuevo los datos del alumno #%d, por favor.\n", i + 1); + } + } + + //Calculamos el promedio + Promedio = Promedio / NoAlumnos; + + //Recorremos todos los alumnos de nuevo y en cada case pasamos a una función pasando + //Los datos de cada alumno (nombre, calificación y promedio) + //En la función vamos a ver si la calificación del alumno es mayor al promedio + printf("\n\nAlumnos que sacaron calificación mayor al promedio.\n"); + for(i = 0; i < NoAlumnos; i++) + { + switch(i) + { + case 0: + CantAlumnosMayorAPromedio += calcularMayorAPromedio(Nom1, Cal1, Promedio); + break; + case 1: + CantAlumnosMayorAPromedio += calcularMayorAPromedio(Nom2, Cal2, Promedio); + break; + case 2: + CantAlumnosMayorAPromedio += calcularMayorAPromedio(Nom3, Cal3, Promedio); + break; + case 3: + CantAlumnosMayorAPromedio += calcularMayorAPromedio(Nom4, Cal4, Promedio); + break; + case 4: + CantAlumnosMayorAPromedio += calcularMayorAPromedio(Nom5, Cal5, Promedio); + break; + case 5: + CantAlumnosMayorAPromedio += calcularMayorAPromedio(Nom6, Cal6, Promedio); + break; + case 6: + CantAlumnosMayorAPromedio += calcularMayorAPromedio(Nom7, Cal7, Promedio); + break; + case 7: + CantAlumnosMayorAPromedio += calcularMayorAPromedio(Nom8, Cal8, Promedio); + break; + case 8: + CantAlumnosMayorAPromedio += calcularMayorAPromedio(Nom9, Cal9, Promedio); + break; + case 9: + CantAlumnosMayorAPromedio += calcularMayorAPromedio(Nom10, Cal10, Promedio); + break; + case 10: + CantAlumnosMayorAPromedio += calcularMayorAPromedio(Nom11, Cal11, Promedio); + break; + case 11: + CantAlumnosMayorAPromedio += calcularMayorAPromedio(Nom12, Cal12, Promedio); + break; + case 12: + CantAlumnosMayorAPromedio += calcularMayorAPromedio(Nom13, Cal13, Promedio); + break; + case 13: + CantAlumnosMayorAPromedio += calcularMayorAPromedio(Nom14, Cal14, Promedio); + break; + case 14: + CantAlumnosMayorAPromedio += calcularMayorAPromedio(Nom15, Cal15, Promedio); + break; + case 15: + CantAlumnosMayorAPromedio += calcularMayorAPromedio(Nom16, Cal16, Promedio); + break; + case 16: + CantAlumnosMayorAPromedio += calcularMayorAPromedio(Nom17, Cal17, Promedio); + break; + case 17: + CantAlumnosMayorAPromedio += calcularMayorAPromedio(Nom18, Cal18, Promedio); + break; + case 18: + CantAlumnosMayorAPromedio += calcularMayorAPromedio(Nom19, Cal19, Promedio); + break; + case 19: + CantAlumnosMayorAPromedio += calcularMayorAPromedio(Nom20, Cal20, Promedio); + break; + case 20: + CantAlumnosMayorAPromedio += calcularMayorAPromedio(Nom21, Cal21, Promedio); + break; + case 21: + CantAlumnosMayorAPromedio += calcularMayorAPromedio(Nom22, Cal22, Promedio); + break; + case 22: + CantAlumnosMayorAPromedio += calcularMayorAPromedio(Nom23, Cal23, Promedio); + break; + case 23: + CantAlumnosMayorAPromedio += calcularMayorAPromedio(Nom24, Cal24, Promedio); + break; + case 24: + CantAlumnosMayorAPromedio += calcularMayorAPromedio(Nom25, Cal25, Promedio); + break; + case 25: + CantAlumnosMayorAPromedio += calcularMayorAPromedio(Nom26, Cal26, Promedio); + break; + case 26: + CantAlumnosMayorAPromedio += calcularMayorAPromedio(Nom27, Cal27, Promedio); + break; + case 27: + CantAlumnosMayorAPromedio += calcularMayorAPromedio(Nom28, Cal28, Promedio); + break; + case 28: + CantAlumnosMayorAPromedio += calcularMayorAPromedio(Nom29, Cal29, Promedio); + break; + case 29: + CantAlumnosMayorAPromedio += calcularMayorAPromedio(Nom30, Cal30, Promedio); + break; + case 30: + CantAlumnosMayorAPromedio += calcularMayorAPromedio(Nom31, Cal31, Promedio); + break; + case 31: + CantAlumnosMayorAPromedio += calcularMayorAPromedio(Nom32, Cal32, Promedio); + break; + case 32: + CantAlumnosMayorAPromedio += calcularMayorAPromedio(Nom33, Cal33, Promedio); + break; + case 33: + CantAlumnosMayorAPromedio += calcularMayorAPromedio(Nom34, Cal34, Promedio); + break; + case 34: + CantAlumnosMayorAPromedio += calcularMayorAPromedio(Nom35, Cal35, Promedio); + break; + case 35: + CantAlumnosMayorAPromedio += calcularMayorAPromedio(Nom36, Cal36, Promedio); + break; + case 36: + CantAlumnosMayorAPromedio += calcularMayorAPromedio(Nom37, Cal37, Promedio); + break; + case 37: + CantAlumnosMayorAPromedio += calcularMayorAPromedio(Nom38, Cal38, Promedio); + break; + case 38: + CantAlumnosMayorAPromedio += calcularMayorAPromedio(Nom39, Cal39, Promedio); + break; + case 39: + CantAlumnosMayorAPromedio += calcularMayorAPromedio(Nom40, Cal40, Promedio); + break; + case 40: + CantAlumnosMayorAPromedio += calcularMayorAPromedio(Nom41, Cal41, Promedio); + break; + case 41: + CantAlumnosMayorAPromedio += calcularMayorAPromedio(Nom42, Cal42, Promedio); + break; + case 42: + CantAlumnosMayorAPromedio += calcularMayorAPromedio(Nom43, Cal43, Promedio); + break; + case 43: + CantAlumnosMayorAPromedio += calcularMayorAPromedio(Nom44, Cal44, Promedio); + break; + case 44: + CantAlumnosMayorAPromedio += calcularMayorAPromedio(Nom45, Cal45, Promedio); + break; + case 45: + CantAlumnosMayorAPromedio += calcularMayorAPromedio(Nom46, Cal46, Promedio); + break; + case 46: + CantAlumnosMayorAPromedio += calcularMayorAPromedio(Nom47, Cal47, Promedio); + break; + case 47: + CantAlumnosMayorAPromedio += calcularMayorAPromedio(Nom48, Cal48, Promedio); + break; + case 48: + CantAlumnosMayorAPromedio += calcularMayorAPromedio(Nom49, Cal49, Promedio); + break; + case 49: + CantAlumnosMayorAPromedio += calcularMayorAPromedio(Nom50, Cal50, Promedio); + break; + default: + printf("\nERROR FOR...\n"); + break; + } + } + + printf("\n\n%d Alumnos tuvieron una calificación mayor al promedio.\n", CantAlumnosMayorAPromedio); + + printf("\nTeclea ENTER para salir por favor..."); + fflush(stdin); + getchar(); + return 0; +} +//-----------------------------------------Validad si la calificación del alumno es mayor al promedio------------------------------------------- +int calcularMayorAPromedio(char Nom[], double Cal, double Promedio) +{ + if(Cal > Promedio) + { + printf("\nEl alumno llamado %s tiene calificación mayor al promedio (%.2lf).", Nom, Promedio); + printf("\nTeniendo de calificación %.2lf.\n", Cal); + return 1; + }else + { + return 0; + } +} diff --git a/Equipo NetCode/ADA5_NetCode/Ejercicio 48.cpp b/Equipo NetCode/ADA5_NetCode/Ejercicio 48.cpp new file mode 100644 index 0000000..ccc1fd6 --- /dev/null +++ b/Equipo NetCode/ADA5_NetCode/Ejercicio 48.cpp @@ -0,0 +1,80 @@ +#include +#include //Para las acentuaciones +#include //Se usa esta librería para usar la función de limpiar la pantalla... +/* +Nombre: Concurso Srita. Simpatía. +Descripción: Leer votos de 500 alumnos e imprimir quién es la ganadora. +Autores: Victor Enrique Cauich Davalos & Alan Josue Barón Pat +Version: 2.0 +Fecha: 12/02/2020 +*/ + +#define Alumnos 500 //Definimos cuántos alumnos votarán + +int main (){ + setlocale(LC_ALL,"");//Se aplica la función de la biblioteca locale para que se puedan imprimir acentuaciones... + //Declaramos votos de todas las cantidatas y votos nulos + int VotosHortencia = 0, VotosAnacreta = 0, VotosNulos = 0, Voto = 0; + printf("PROGRAMA PARA CÁLCULAR QUIÉN ES LA GANADORA DE SRITA. SIMPATÍA.\n\n"); + //For para que recorra a todos los votantes y que se vaya asignando sus votos + for(int i = 0; i < Alumnos; i) + { + printf("\nHola persona #%d, es hora de decidir su voto...", i + 1); + printf("\n1. Votar por Hortencia."); + printf("\n2. Votar por Anacreta."); + printf("\n3. Anular su voto."); + printf("\nIngrese el npumero de la opción que quiere, por favor: "); + scanf("%d", &Voto); + //Es un switch para que se seleccione el voto a elección + switch(Voto) + { + case 1://Voto para Hortencia se suma el contador para los votos de ella + i++;//Se aumenta i para pasar al siguiente votante + system("cls");//función para limpiar la pantalla + VotosHortencia++; + break; + case 2://Voto para Anacreta se suma el contador para los votos de ella + i++;//Se aumenta i para pasar al siguiente votante + system("cls");//función para limpiar la pantalla + VotosAnacreta++; + break; + case 3://Voto nulo, es decir que se aumenta el contador de votos nulos (votantes que decidieron anular sus votos) + i++;//Se aumenta i para pasar al siguiente votante + system("cls");//función para limpiar la pantalla + VotosNulos++; + break; + default://Se usa este "caso default", si se ingresa cualquier otro dato que no sean las opciones ofrecidas + system("cls");//función para limpiar la pantalla + printf("\n\nERROR, SELECCIÓN INVALIDA..."); + printf("\nIngrese de nuevo su selección, por favor...\n"); + break; + } + } + + //If's concatenados para determinbar quién ganó + + if(VotosNulos == Alumnos)//Si nadie ganó + { + printf("\n\nNi Hortencia ni Anacreta ganaron, debido a que todos los votantes anularon sus votos...\n"); + }else + { + if(VotosHortencia == VotosAnacreta)//Si quedaron en un empate + { + printf("\n\nHortencia y Anacreta tienen los mismos votos, por lo tanto \nquedaron en un empáte con %d votos...\n", VotosHortencia); + }else + { + if(VotosHortencia > VotosAnacreta)//Si Hortencia ganó + { + printf("\n\nHortencia gana a Anacreta con %d votos, y %d votos de diferencia...\n", VotosHortencia, VotosHortencia - VotosAnacreta); + }else//Si Anacreta ganó + { + printf("\n\nAnacreta gana a Hortencia con %d votos, y %d votos de diferencia...\n", VotosAnacreta, VotosAnacreta - VotosHortencia); + } + } + } + + printf("\nTeclea ENTER para salir por favor..."); + fflush(stdin); + getchar(); + return 0; +} diff --git a/Equipo NetCode/ADA6_NetCode/Ejercicio 50.cpp b/Equipo NetCode/ADA6_NetCode/Ejercicio 50.cpp new file mode 100644 index 0000000..a5ea8b1 --- /dev/null +++ b/Equipo NetCode/ADA6_NetCode/Ejercicio 50.cpp @@ -0,0 +1,40 @@ +#include +#include +#include + +/* +Nombre del Programa: Vector de 50 elementos +Descripción: Que lea 50 elementos y los imprima +Autor: Alan Josue Barón Pat & Victor Cauich Davalos +Versión: 1.0.0 +Fecha: 07/03/2020 +*/ + +#define N 50//definimos cuántos elementos tendrá el array + +void Datos (){ + int Elementos[N]; + int i,contador; + + printf ("Ingrese los datos del arreglo\n\n"); + i = 0; + while (i +#include +#include + +/* +Nombre del Programa: Sumatoria +Descripción: Que lea un vector de N elementos y calcule su sumatoria +Autor: Alan Josue Barón Pat & Victor Cauich Davalos +Versión: 1.0.0 +Fecha: 08/03/2020 +*/ + +int main (){ + setlocale(LC_ALL,""); + int i,N; + double aux; + + printf ("Bienvenido, este programa calcula la sumatoria del vector.\n"); + printf ("Ingrese el total de elementos a calcular: "); + do{ + scanf ("%d", &N); + if (N<=0){ + printf ("\nTiene que existir elementos en el vector, ingrese nuevamente: "); + } + }while (N<=0); + double array[N]; //Definimos el tamaño del vector + + printf ("\n"); + //Lectura de los datos + i=0; + while (i +#include +#include + +/* +Nombre del Programa: Vector de N elementos +Descripción: Que lea N elementos y calcule el producto de sus elementos +Autor: Alan Josue Barón Pat & Victor Cauich Davalos +Versión: 1.0.0 +Fecha: 06/03/2020 +*/ +void Datos (){ + int i,elementos; //Contadores + double aux; + //Inicializamos las variables + i=0; + aux = 1; + + printf ("Bienvenido, ingrese el total de elementos a calcular: "); + do{ + scanf ("%d", &elementos); + if (elementos<=0){ + printf ("\nTiene que existir elementos en el vector, ingrese nuevamente: "); + } + }while (elementos<=0); + double array[elementos]; + + //Lectura de los datos + while (i +#include +#include + +/* +Nombre del Programa: Trono del Vector N +Descripción: E.P. que lea un vector de n elementos y que determine el elemento +mayor del arreglo y su posición. + +Autor: Alan Josue Barón Pat & Victor Cauich Davalos +Versión: 1.0.0 +Fecha: 08/03/2020 +*/ + +int main (){ + setlocale (LC_ALL,""); + int i,N,posicion; + double trono; + + + printf ("Bienvenido, este programa calcula el mayor elemento en el vector.\n"); + printf ("Por ahora definamos el tamaño del vector: "); + do{ + scanf ("%d", &N); + if (N<=0){ + printf ("\nTiene que existir elementos en el vector, ingrese nuevamente: "); + } + }while (N<=0); + + double array[N]; + + //Lectura de datos + i = 0; + do{ + printf ("Ingrese el elemento %d/%d: ", i+1, N); + scanf ("%lf", &array[i]); + i++; + }while (i=trono){ + trono = array[i]; + posicion = i+1; + } + i++; + }while (i +#include +#include +/* +Nombre del Programa: El 3er Vector +Descripción: Que lea dos vectores de n elementos y que genere e imprima +un tercer vector con la suma de cada uno de los elementos de los dos +anteriores. +Autor: Alan Josue Barón Pat & Victor Cauich Davalos +Versión: 1.0.0 +Fecha: 07/03/2020 +*/ +void Datos (){ + int i,a,b,elementos; + double array1[elementos], array2[elementos], array3[elementos]; + + printf ("Bienvenido, ingrese el tamaño de ambos vectores: "); + do{ + scanf ("%d", &elementos); + if (elementos <=0){ + printf ("\nTiene que existir elementos en el vector, ingrese nuevamente: "); + } + }while(elementos<=0); + + + //-----------------Capturamos el primer vector--------------------------- + a=0; + do{ + printf ("Ingrese el elemento %d/%d del Vector 1°: ",a+1,elementos); + scanf ("%lf", &array1[a]); + a++; + } while (a +#include +#include +/* +Nombre del Programa: El elemento negativo +Descripción: E.P. que lea un vector de n elementos, el cual se sabe tiene un +elemento negativo y que determine e imprima su posición. + +Autor: Alan Josue Barón Pat & Victor Cauich Davalos +Versión: 1.0.0 +Fecha: 08/03/2020 +*/ + +int main (){ + setlocale(LC_ALL,""); + int i, posicion,elementos; + + printf ("Bienvenido, este programa determina la posición del negativo.\n"); + printf ("Primero, definamos el tamaño del arreglo: "); + do{ + scanf ("%d",&elementos); + if (elementos>=0){ + printf ("\nTiene que existir elementos en el vector, ingrese nuevamente: "); + } + }while(elementos>=0); + + double array[elementos]; + //---------------Capturamos los elementos---------------- + i=0; + do{ + printf ("Ingrese el elemento %d/%d: ",i+1,elementos); + scanf ("%lf",&array[i]); + i++; + }while (i +#include //Para las acentuaciones +/* +Nombre: MODA DEL ARREGLO +Descripción: Calcular la moda el arreglo. +Autores: Alan Josue Barón Pat & Victor Enrique Cauich Davalos +Version: 2.0 +Fecha: 9/03/2020 +*/ + +#define N 10//definimos el número de elementos que tendrá el array + +void CalcularModa(int Array[], int Repeticiones[]); +int Inicializar(int Repeticiones[]); +void CalcularRepetidas(int Array[], int Repeticiones[]); +int CalcularRepetidas1(int Array[], int Repeticiones[]); + + +int main (){ + setlocale(LC_ALL,"");//Se aplica la función de la biblioteca locale para que se puedan imprimir acentuaciones... + int ContModa, Moda, i = 0; + int Array[N], Repeticiones[N]; + + while(i < N) + { + printf("Ingrese el elemento #%d del array, por favor: ", i + 1); + scanf("%d", &Array[i]); + i++; + } + + CalcularModa(Array, Repeticiones); + + printf("\nTeclea ENTER para salir por favor..."); + fflush(stdin); + getchar(); + return 0; +} +//----------------------------Función para empezar a calcular moda----------------------- +void CalcularModa(int Array[N], int Repeticiones[N]) +{ + CalcularRepetidas(Array, Repeticiones); +} +//-----------------Función para determinar cuántas veces se repite cada número----------- +void CalcularRepetidas(int Array[N], int Repeticiones[N]) +{ + int i = 0, t = 0, Num; + + *Repeticiones = Inicializar(Repeticiones); + + //Buscamos las repeticiones + while(i < N) + { + Num = Array[i]; + while(t < N) + { + if(Num == Array[t]) + { + Repeticiones[i] = Repeticiones[i] + 1; + } + t++; + } + t = 0; + i++; + } + + int NumMayor = CalcularRepetidas1(Array, Repeticiones); + + if(NumMayor != -1) + { + printf("\n\nLa moda sería el número %d.\n", NumMayor); + }else + { + printf("\n\nNO EXISTE MODA...\n"); + } +} +//-----------------------Vemos cuál es el número mayor de repeticiones------------------- +int CalcularRepetidas1(int Array[], int Repeticiones[]) +{ + int NumMayorRepit = 0, NumMayor, i = 0; + + while(i < N) + { + if(i == 0) + { + NumMayorRepit = Repeticiones[i]; + NumMayor = Array[i]; + }else + { + if(Repeticiones[i] > NumMayorRepit) + { + NumMayorRepit = Repeticiones[i]; + NumMayor = Array[i]; + } + } + i++; + } + + i = 0; + + while(i < N) + { + if((Repeticiones[i] == NumMayorRepit) && (NumMayor != Array[i])) + { + return -1; + } + i++; + } + + return NumMayor; +} +//-------------------------------Inicializamos el array de repeticiones------------------- +int Inicializar(int Repeticiones[N]) +{ + int i = 0; + + while(i < N) + { + Repeticiones[i] = 0; + i++; + } + + return *Repeticiones; +} diff --git a/Equipo NetCode/ADA6_NetCode/Propuestos 2.cpp b/Equipo NetCode/ADA6_NetCode/Propuestos 2.cpp new file mode 100644 index 0000000..753d7d0 --- /dev/null +++ b/Equipo NetCode/ADA6_NetCode/Propuestos 2.cpp @@ -0,0 +1,43 @@ +#include +#include +#include +/* +Nombre del Programa: Vector de 20 elementos + +Descripción: E.P. que lea un vector de 20 elementos que sean enteros y determine e imprima la suma de los elementos pares y el producto de los elementos impares. + +Autor: Alan Josue Barón Pat & Victor Cauich Davalos +Versión: 1.0.0 +Fecha: 07/03/2020 +*/ + +#define N 5//Definimos el número de elementos que tendrá el array + + int main (){ + setlocale (LC_ALL,""); + int i,array[N]; + int suma,producto,aux,dato; + printf ("Este programa determina la suma de los elementos pares y el producto de los impares\n"); + printf ("Iniciamos la captura...\n\n"); + //-------------------Capturamos los datos--------------- + for(i=0;i +#include //Para las acentuaciones +/* +Nombre: SEPARAR NEGATIVOS Y POSITIVOS EN DOS ARREGLOS +Descripción: Leer 30 elementos en un arreglo y dividir los positivoos y negativos en arreglos separados. +Autores: Alan Josue Barón Pat & Victor Enrique Cauich Davalos +Version: 2.0 +Fecha: 9/03/2020 +*/ + +#define N 30//definimos el número de elementos que tendrá el array + +int Inicializar(int Array[]); +int CalcularLosPositivos(int Array[N], int ArrayPositivos[N]); +int CalcularLosNegativos(int Array[N], int ArrayNegativos[N]); +void ImprimirArray(int Array[N]); + +int main (){ + setlocale(LC_ALL,"");//Se aplica la función de la biblioteca locale para que se puedan imprimir acentuaciones... + int i = 0; + int Array[N], ArrayPositivos[N], ArrayNegativos[N]; + + while(i < N) + { + printf("Ingrese el elemento #%d del array, por favor: ", i + 1); + scanf("%d", &Array[i]); + i++; + } + + *ArrayPositivos = Inicializar(ArrayPositivos); + *ArrayNegativos = Inicializar(ArrayNegativos); + *ArrayPositivos = CalcularLosPositivos(Array, ArrayPositivos); + *ArrayNegativos = CalcularLosNegativos(Array, ArrayNegativos); + printf("\nNUMEROS POSITIVOS:"); + ImprimirArray(ArrayPositivos); + printf("\nNUMEROS NEGATIVOS:"); + ImprimirArray(ArrayNegativos); + + printf("\nTeclea ENTER para salir por favor..."); + fflush(stdin); + getchar(); + return 0; +} +//-------------------------------Inicializamos los Arras------------------- +int Inicializar(int Array[N]) +{ + int i = 0; + + while(i < N) + { + Array[i] = 0; + i++; + } + + return *Array; +} +//-----------------Función para calcular los números positivos------------- +int CalcularLosPositivos(int Array[N], int ArrayPositivos[N]) +{ + int i = 0, t = 0; + while(i < N) + { + if(Array[i] > 0) + { + ArrayPositivos[t] = Array[i]; + t++; + } + i++; + } + return *ArrayPositivos; +} +//-----------------Función para calcular los números negativos------------- +int CalcularLosNegativos(int Array[N], int ArrayNegativos[N]) +{ + int i = 0, t = 0; + while(i < N) + { + if(Array[i] < 0) + { + ArrayNegativos[t] = Array[i]; + t++; + } + i++; + } + return *ArrayNegativos; +} +//-----------------Función para imprimir Arrays----------------------------- +void ImprimirArray(int Array[N]) +{ + int i = 0; + while(i < N) + { + if(Array[i] != 0) + { + printf("\nEl #%d es: %d", i + 1, Array[i]); + } + i++; + } +} diff --git a/Equipo NetCode/ADA7_NetCode/Ejecicio 56.cpp b/Equipo NetCode/ADA7_NetCode/Ejecicio 56.cpp new file mode 100644 index 0000000..8a08590 --- /dev/null +++ b/Equipo NetCode/ADA7_NetCode/Ejecicio 56.cpp @@ -0,0 +1,66 @@ +#include +#include //Para las acentuaciones +/* +Nombre: MATRIZ 3X3, LEER E IMPRIMIR +Descripción: E.P. que lea una matriz de 3 X 3 elementos y los imprima. +Autores: Alan Josue Barón Pat & Victor Enrique Cauich Davalos +Version: 1.0 +Fecha: 11/03/2020 +*/ + +#define N 3 //Tamaño de filas y columnas de la matriz + +int IngresarDatosDeMatriz(int Matriz[N][N]);//Función para ingresar datos de la matriz +void ImprimirMatriz(int Matriz[N][N]);//Impresión de Matriz + + +int main (){ + setlocale(LC_ALL,"");//Se aplica la función de la biblioteca locale para que se puedan imprimir acentuaciones... + int Matriz[N][N]; + printf("PROGRAMA DE UNA MATRIZ DE 3X3 DE ENTEROS."); + printf("\nIngrese los valores de la matriz...\n"); + //Otorgar valor de cada elemento de la matriz + **Matriz = IngresarDatosDeMatriz(Matriz); + //Imprimimos la Matriz + printf("Su Matriz es este:\n"); + ImprimirMatriz(Matriz); + printf("\nTeclea ENTER para salir por favor..."); + fflush(stdin); + getchar(); + return 0; +} +//------------------Ingresar datos de la matriz------------------ +int IngresarDatosDeMatriz(int Matriz[N][N]) +{ + int i = 0, t = 0; + while(i < N) + { + while(t < N) + { + printf("Ingrese el valor de la matriz[%d][%d], por favor: ", i + 1, t + 1); + scanf("%d", &Matriz[i][t]); + fflush(stdin); + t++; + } + t = 0; + i++; + } + return **Matriz; +} + +//--------------------Función que imprime la matriz--------------- +void ImprimirMatriz(int Matriz[N][N]) +{ + int i = 0, t = 0; + while(i < N) + { + while(t < N) + { + printf("%d ", Matriz[i][t]); + t++; + } + printf("\n"); + t = 0; + i++; + } +} diff --git a/Equipo NetCode/ADA7_NetCode/Ejecicio 57.cpp b/Equipo NetCode/ADA7_NetCode/Ejecicio 57.cpp new file mode 100644 index 0000000..d7d1275 --- /dev/null +++ b/Equipo NetCode/ADA7_NetCode/Ejecicio 57.cpp @@ -0,0 +1,103 @@ +#include +#include //Para las acentuaciones +/* +Nombre: MATRIZ NXM, IMPRIMIR POSICIÓN DE ELEMENTOS NEGATIVOS +Descripción: E.P. que lea una matriz de N X M elementos y +que encuentre e imprima la posición de los elementos negativos. +Autores: Alan Josue Barón Pat & Victor Enrique Cauich Davalos +Version: 1.0 +Fecha: 11/03/2020 +*/ + +int ValidarFilasOColumnas();//Función para validar el número de filas y columnas + +int main (){ + setlocale(LC_ALL,"");//Se aplica la función de la biblioteca locale para que se puedan imprimir acentuaciones... + printf("PROGRAMA DE UNA MATRIZ NXM, IMPRIMIR POSICIÓN DE ELEMENTOS NEGATIVOS."); + + //Ingresamos cuántas filas habrán + printf("\nIngresamos el número de filas..."); + int N = ValidarFilasOColumnas(); + + //Ingresamos cuántas columnas habrán + printf("\nIngresamos el número de columnas..."); + int M; + M = ValidarFilasOColumnas(); + + //Se llama a la función para ingredar datos de la matriz + printf("\nIngrese los valores de la matriz...\n"); + //Otorgar valor de cada elemento de la matriz + int Matriz[N][M]; + int i = 0, t = 0; + while(i < N) + { + while(t < M) + { + printf("\nIngrese el valor de la matriz[%d][%d], por favor: ", i + 1, t + 1); + scanf("%d", &Matriz[i][t]); + t++; + } + t = 0; + i++; + } + + bool confirm = false; + //Imprimimos la Matriz + printf("\nSu Matriz es este:\n"); + i = 0, t = 0; + while(i < N) + { + while(t < M) + { + printf("%d ", Matriz[i][t]); + if(Matriz[i][t] < 0) + { + confirm = true; + } + t++; + } + printf("\n"); + t = 0; + i++; + } + + //Determinamos los números negativos (sus posiciones) + if(confirm == true) + { + printf("\nPOSICIONES DE LOS NÚMEROS NEGATIVOS..."); + for( i = 0; i < N; i++) + { + for( t = 0; t < M; t++) + { + if(Matriz[i][t] < 0) + { + printf("\nPosición [%d][%d].", i, t); + } + } + } + }else + { + printf("\n\nNO HAY NÚMEROS NEGATIVOS..."); + } + + + printf("\nTeclea ENTER para salir por favor..."); + fflush(stdin); + getchar(); + return 0; +} +//-------------Validamos el número de filas o columnas----------- +int ValidarFilasOColumnas() +{ + int X; + do + { + printf("\nIngrese el número por favor: "); + scanf("%d", &X); + if(X < 1) + { + printf("\nERROR, ingrese un número mayor a 0..."); + } + }while(X < 1); + return X; +} diff --git a/Equipo NetCode/ADA7_NetCode/Ejecicio 58.cpp b/Equipo NetCode/ADA7_NetCode/Ejecicio 58.cpp new file mode 100644 index 0000000..b853562 --- /dev/null +++ b/Equipo NetCode/ADA7_NetCode/Ejecicio 58.cpp @@ -0,0 +1,92 @@ +#include +#include //Para las acentuaciones +/* +Nombre: MATRIZ 6X4 Y LA SUMA DE SUS ELEMENTOS +Descripción: E.P. que lea una matriz de 6 X 4 elementos y +que calcule e imprima la suma de sus elementos. +Autores: Alan Josue Barón Pat & Victor Enrique Cauich Davalos +Version: 1.0 +Fecha: 11/03/2020 +*/ + +#define N 6 //Tamaño de filas +#define M 4//Tamaño de columnas + +int IngresarDatosDeMatriz(int Matriz[N][M]);//Función para ingresar datos de la matriz +void ImprimirMatriz(int Matriz[N][M]);//Impresión de Matriz +int CalcularSuma(int Matriz[N][M]);//Se calcula la suma de los elementos + +int main (){ + setlocale(LC_ALL,"");//Se aplica la función de la biblioteca locale para que se puedan imprimir acentuaciones... + int Matriz[N][M]; + printf("PROGRAMA DE UNA MATRIZ DE 6X4 DE ENTEROS Y SU SUMA."); + + printf("\nIngrese los valores de la matriz...\n"); + //Otorgar valor de cada elemento de la matriz + **Matriz = IngresarDatosDeMatriz(Matriz); + + //Imprimimos la Matriz + printf("Su Matriz es este:\n"); + ImprimirMatriz(Matriz); + + int Suma = CalcularSuma(Matriz); + + printf("\n\nLa Suma de sus elementos es: %d", Suma); + + printf("\nTeclea ENTER para salir por favor..."); + fflush(stdin); + getchar(); + return 0; +} +//------------------Ingresar datos de la matriz------------------ +int IngresarDatosDeMatriz(int Matriz[N][M]) +{ + int i = 0, t = 0; + while(i < N) + { + while(t < M) + { + printf("Ingrese el valor de la matriz[%d][%d], por favor: ", i + 1, t + 1); + scanf("%d", &Matriz[i][t]); + fflush(stdin); + t++; + } + t = 0; + i++; + } + return **Matriz; +} + +//--------------------Función que imprime la matriz--------------- +void ImprimirMatriz(int Matriz[N][M]) +{ + int i = 0, t = 0; + while(i < N) + { + while(t < M) + { + printf("%d ", Matriz[i][t]); + t++; + } + printf("\n"); + t = 0; + i++; + } +} +//-----------Función para calcular suma de elementos--------------- +int CalcularSuma(int Matriz[N][M]) +{ + int Suma = 0; + int i = 0, t = 0; + while(i < N) + { + while(t < M) + { + Suma = Suma + Matriz[i][t]; + t++; + } + t = 0; + i++; + } + return Suma; +} diff --git a/Equipo NetCode/ADA7_NetCode/Ejecicio 59.cpp b/Equipo NetCode/ADA7_NetCode/Ejecicio 59.cpp new file mode 100644 index 0000000..f73fc91 --- /dev/null +++ b/Equipo NetCode/ADA7_NetCode/Ejecicio 59.cpp @@ -0,0 +1,85 @@ +#include +#include //Para las acentuaciones +/* +Nombre: MATRIZ NXM Y SUS IMPARES Y PARES +Descripción: E.P. que lea una matriz de N X M elementos +y que cuente e imprima cuantos elementos son pares y +cuantos son impares. +Autores: Alan Josue Barón Pat & Victor Enrique Cauich Davalos +Version: 1.0 +Fecha: 11/03/2020 +*/ + +int ValidarFilasOColumnas();//Función para validar el número de filas y columnas + +int main (){ + setlocale(LC_ALL,"");//Se aplica la función de la biblioteca locale para que se puedan imprimir acentuaciones... + printf("PROGRAMA DE UNA MATRIZ DE NXM Y SUS IMPARES Y PARES."); + + //Ingresamos cuántas filas habrán + printf("\nIngresamos el número de filas..."); + int N = ValidarFilasOColumnas(); + + //Ingresamos cuántas columnas habrán + printf("\nIngresamos el número de columnas..."); + int M; + M = ValidarFilasOColumnas(); + + //Se llama a la función para ingredar datos de la matriz + printf("\nIngrese los valores de la matriz...\n"); + //Otorgar valor de cada elemento de la matriz + int Matriz[N][M]; + int i = 0, t = 0; + while(i < N) + { + while(t < M) + { + printf("\nIngrese el valor de la matriz[%d][%d], por favor: ", i + 1, t + 1); + scanf("%d", &Matriz[i][t]); + t++; + } + t = 0; + i++; + } + + //Calculamos la cantidad de números pares e impares que hay + int Pares = 0, Impares = 0; + + for(i = 0; i < N; i++) + { + for(t = 0; t < M; t++) + { + if(Matriz[i][t]%2 == 0) + { + Pares++; + }else + { + Impares++; + } + } + } + + //Imprimimos cuántos pares e impares hay + printf("\n\nHay %d Pares en la matriz.", Pares); + printf("\nHay %d Impares en la matriz.", Impares); + + printf("\nTeclea ENTER para salir por favor..."); + fflush(stdin); + getchar(); + return 0; +} +//-------------Validamos el número de filas o columnas----------- +int ValidarFilasOColumnas() +{ + int X; + do + { + printf("\nIngrese el número por favor: "); + scanf("%d", &X); + if(X < 1) + { + printf("\nERROR, ingrese un número mayor a 0..."); + } + }while(X < 1); + return X; +} diff --git a/Equipo NetCode/ADA7_NetCode/Ejecicio 60.cpp b/Equipo NetCode/ADA7_NetCode/Ejecicio 60.cpp new file mode 100644 index 0000000..e27e19f --- /dev/null +++ b/Equipo NetCode/ADA7_NetCode/Ejecicio 60.cpp @@ -0,0 +1,119 @@ +#include +#include //Para las acentuaciones +/* +Nombre: MATRIZ 20X30 Y LA SUMATORIA DE CADA FILA +Descripción: E.P. que lea una matriz de 20 X 30 elementos y +que genere e imprima un vector de 20 elementos que contenga +la sumatoria de cada fila de la matriz. +Autores: Alan Josue Barón Pat & Victor Enrique Cauich Davalos +Version: 1.0 +Fecha: 11/03/2020 +*/ + +#define N 2//Tamaño de filas +#define M 3//Tamaño de colummas + +int IngresarDatosDeMatriz(int Matriz[N][M]);//Función para ingresar datos de la matriz +void ImprimirMatriz(int Matriz[N][M]);//Impresión de Matriz +int InicializarArray(int Array[N]);//Función para inicializar Array +int CalcularSumaFilas(int Matriz[N][M], int Array[N]);//Función para calcular suma de cada fila de la matriz +void ImprimirArray(int Array[N]);//Impresión de la suma de cada fila de la matriz + +int main (){ + setlocale(LC_ALL,"");//Se aplica la función de la biblioteca locale para que se puedan imprimir acentuaciones... + printf("PROGRAMA DE UNA MATRIZ 20X30 Y LA SUMATORIA DE CADA FILA."); + + int Matriz[N][M], SumaFilas[N]; + + //Se llama a la función para ingredar datos de la matriz + printf("\nIngrese los valores de la matriz...\n"); + //Otorgar valor de cada elemento de la matriz + + printf("\nIngrese los valores de la matriz...\n"); + //Otorgar valor de cada elemento de la matriz + **Matriz = IngresarDatosDeMatriz(Matriz); + + //Imprimimos la Matriz + printf("\nSu Matriz es este:\n"); + ImprimirMatriz(Matriz); + + //Calculamos la suma de cada fila de la matriz + *SumaFilas = InicializarArray(SumaFilas); + *SumaFilas = CalcularSumaFilas(Matriz, SumaFilas); + + //Imprimimos el resultado de la suma de cada fila de la matriz + printf("\nRESULTADO DE LA SUMA DE CADA FILA DE LA MATRIZ."); + ImprimirArray(SumaFilas); + + printf("\nTeclea ENTER para salir por favor..."); + fflush(stdin); + getchar(); + return 0; +} +//------------------Ingresar datos de la matriz------------------ +int IngresarDatosDeMatriz(int Matriz[N][M]) +{ + int i = 0, t = 0; + while(i < N) + { + while(t < M) + { + printf("Ingrese el valor de la matriz[%d][%d], por favor: ", i + 1, t + 1); + scanf("%d", &Matriz[i][t]); + fflush(stdin); + t++; + } + t = 0; + i++; + } + return **Matriz; +} + +//--------------------Función que imprime la matriz-------------------- +void ImprimirMatriz(int Matriz[N][M]) +{ + int i = 0, t = 0; + while(i < N) + { + while(t < M) + { + printf("%d ", Matriz[i][t]); + t++; + } + printf("\n"); + t = 0; + i++; + } +} +//-------------Función para inicializar Array--------------------------- +int InicializarArray(int Array[N]) +{ + for(int i = 0; i < N; i++) + { + Array[i] = 0; + } + return *Array; +} +//--------------Función para calcular Suma de filas--------------------- +int CalcularSumaFilas(int Matriz[N][M], int Array[N]) +{ + int Suma = 0, i, t; + for(i = 0; i < N; i++) + { + for(t = 0; t < M; t++) + { + Suma = Suma + Matriz[i][t]; + } + Array[i] = Suma; + Suma = 0; + } + return *Array; +} +//-Función para imprimir Array que tiene suma de cada fila de la matriz-- +void ImprimirArray(int Array[N]) +{ + for(int i = 0; i < N; i++) + { + printf("\nLa suma de la fila #%d es: %d.", i + 1, Array[i]); + } +} diff --git a/Equipo NetCode/ADA7_NetCode/Ejercicio 61.cpp b/Equipo NetCode/ADA7_NetCode/Ejercicio 61.cpp new file mode 100644 index 0000000..ce1ab31 --- /dev/null +++ b/Equipo NetCode/ADA7_NetCode/Ejercicio 61.cpp @@ -0,0 +1,63 @@ +#include +#include +#include +/* +Nombre del Programa: Ejercicio 61 - Parciales + +Descripción: E.P. que lea las tres calificaciones parciales del semestre de cada +uno de los 50 alumnos y los almacene en una matriz. Deberá imprimir +la posición de los alumnos cuyo promedio final sea mayor al promedio +de grupo. + + +Autor: Alan Josue Barón Pat & Victor Cauich Davalos +Versión: 1.0.0 +Fecha: 11/03/2020 +*/ +int main (){ + setlocale(LC_ALL,""); + int i,j; + double matriz[50][3]; //Declaramos el array con los datos proporcionados por el problema + double promedioT,promedioA,suma; + + printf ("Bienvenido, el programa captura las calificaciones de los 3es Parciales: "); + + printf ("\nIniciaremos la captura....\n"); + //Leemos los datos + for (i=0;i<50;i++){ + printf ("\nAlumno No.%d de 50: \n",i+1); + for (j=0;j<3;j++){ + do{ + printf ("Ingrese sus datos del parcial %d de 3: ",j+1); + scanf ("%lf",&matriz[i][j]); + if (matriz[i][j]<0 | matriz[i][j]>100){ + printf ("\nError, los valores deben estar entre 0-100, ingrese nuevamente: \n"); + } + }while (matriz[i][j]<0 | matriz[i][j]>100); + } + } + //Determinamos el promedio del grupo + suma = 0; + for (i=0;i<50;i++){ + for (j=0;j<3;j++){ + suma = suma + matriz[i][j]; + } + } + system ("cls"); + promedioT = suma/150; + printf ("\nEl promedio total del grupo es de: %.2lf\n", promedioT); + //Imprimimos los datos + for (i=0;i<50;i++){ + promedioA=0; + for (j=0;j<3;j++){ + promedioA= promedioA + matriz[i][j]; + } + promedioA= promedioA/3; + if (promedioA>= promedioT){ + printf ("El Alumno No.%d tiene un promedio mayor al del grupo con %.2lf\n",i+1,promedioA); + } + } + + getchar (); + return 0; +} diff --git a/Equipo NetCode/ADA7_NetCode/Ejercicio 62.cpp b/Equipo NetCode/ADA7_NetCode/Ejercicio 62.cpp new file mode 100644 index 0000000..f118276 --- /dev/null +++ b/Equipo NetCode/ADA7_NetCode/Ejercicio 62.cpp @@ -0,0 +1,53 @@ +#include +#include +#include +/* +Nombre del Programa: Ejercicio 62 - Diagonal principal + +Descripción: E.P que lea una matriz de 5 X 5 elementos y que calcule e imprima +la suma de sus elementos que se encuentran en la diagonal principal. + + +Autor: Alan Josue Barón Pat & Victor Cauich Davalos +Versión: 1.0.0 +Fecha: 11/03/2020 +*/ + +int main (){ + setlocale (LC_ALL,""); + int i,j; + double matriz[5][5],traza; //Proporcionado por el problema + + printf ("Este programa calcula la traza de una matriz de 5x5\n"); + printf ("Por ahora le pedimos que rellene los datos de la matriz...\n\n"); + //Capturamos + for (i=0;i<5;i++){ + for (j=0;j<5;j++){ + printf ("Ingrese el elemento (%d,%d): ", i+1,j+1); + scanf ("%lf", &matriz[i][j]); + } + } + //Determinamos la traza + traza = 0; + for (i=0;i<5;i++){ + for (j=0;j<5;j++){ + if (i==j){ + traza = traza + matriz[i][j]; + } + } + } + //Imprimimos los datos + system ("cls"); + printf ("La matriz es: \n"); + for (i=0;i<5;i++){ + for (j=0;j<5;j++){ + printf (" %.2lf", matriz[i][j]); + } + printf ("\n"); + } + + printf ("\nLa suma de la diagonal de la matriz es: %.2lf", traza); + + getchar (); + return 0; +} diff --git a/Equipo NetCode/ADA7_NetCode/Ejercicio 63.cpp b/Equipo NetCode/ADA7_NetCode/Ejercicio 63.cpp new file mode 100644 index 0000000..98dc5f4 --- /dev/null +++ b/Equipo NetCode/ADA7_NetCode/Ejercicio 63.cpp @@ -0,0 +1,53 @@ +#include +#include +#include +/* +Nombre del Programa: Ejercicio 63 - La matriz de 20x20 + +Descripción: . E.P. que lea una matriz de 20 X 20 elementos y que cuente e +imprima cuantos elementos igual a cero se encuentran en las primeras +10 filas. + + +Autor: Alan Josue Barón Pat & Victor Cauich Davalos +Versión: 1.0.0 +Fecha: 11/03/2020 +*/ + +int main (){ + setlocale (LC_ALL, ""); + int i,j,ceros; + double matriz[20][20]; //Proporcionado por el problema + + printf ("Este programa cuenta el total de ´0´ en las primeras 10 filas de una matriz de 20x20\n"); + printf ("Iniciando captura...\n"); + //Capturamos datos + for (i=0;i<20;i++){ + for (j=0;j<20;j++){ + printf ("Ingrese el elemento (%d,%d): ",i+1,j+1); + scanf ("%lf",&matriz[i][j]); + } + } + //Determinamos el total de ceros + ceros = 0; + for (i=0;i<20;i++){ + for (j=0;j<20;j++){ + if (matriz[i][j]==0){ + ceros = ceros + 1; + } + } + } + //Imprimimos + printf ("\nLa matriz es: \n"); + for (i=0;i<20;i++){ + for (j=0;j<20;j++){ + printf (" %.2lf", matriz[i][j]); + } + printf ("\n"); + } + + printf ("\nEl total de ´0´ en las primeras 10 filas es: %d", ceros); + + getchar (); + return 0; +} diff --git a/Equipo NetCode/ADA7_NetCode/Ejercicio 64.cpp b/Equipo NetCode/ADA7_NetCode/Ejercicio 64.cpp new file mode 100644 index 0000000..f02a326 --- /dev/null +++ b/Equipo NetCode/ADA7_NetCode/Ejercicio 64.cpp @@ -0,0 +1,94 @@ +#include +#include +#include +#include +/* +Nombre del Programa: Ejercicio 64 - La matriz de 15x13 + +Descripción: . . E.P. que lea una matriz de 15 X 13 elementos y que calcule e +imprima lo siguiente: +a) El elemento menor del arreglo. +b) El total de elementos negativos de la fila 10 a la 13. +c) El mayor elemento del arreglo. + +Autor: Alan Josue Barón Pat & Victor Cauich Davalos +Versión: 1.0.0 +Fecha: 11/03/2020 +*/ + +int main (){ + setlocale(LC_ALL,""); + int i,j,negativos; + double matriz[15][13],mayorE,menorE; + + printf ("Bienvenido, capturaremos datos de una matriz de 15x13 y se determinará lo siguiente: \n"); + printf ("1.-El menor elemento\n"); + printf ("2.-El mayor elemento\n"); + printf ("3.-El total de negativos de la fila 10 a la 13\n"); + printf ("Iniciando captura....\n\n"); + //Capturamos + + + for (i=0;i<15;i++){ + for (j=0;j<13;j++){ + printf ("Ingrese el elemento (%d,%d): ", i+1,j+1); + scanf ("%lf", &matriz[i][j]); + } + } + + /* Para comprobar + srand (time(NULL)); + for (i=0;i<15;i++){ + for (j=0;j<13;j++){ + matriz[i][j] = -1000+rand()%(1001 - (-1000)); + } + } + */ + + //Determinamos + mayorE= -999999999; + menorE= 999999999; + negativos = 0; + //---Mayor---- + for(i=0;i<15;i++){ + for (j=0;j<13;j++){ + if (matriz[i][j]>mayorE){ + mayorE= matriz[i][j]; + } + } + } + //---Menor------ + for(i=0;i<15;i++){ + for (j=0;j<13;j++){ + if (matriz[i][j] +#include +#include + +/* +Nombre del Programa: Ejercicio 65 - Igualdad de diagonales + +Descripción: E.P. que lea dos matrices de M X N elementos y que determine e +imprima si la diagonal principal de la primera es igual a la diagonal +principal de la segunda. + +Autor: Alan Josue Barón Pat & Victor Cauich Davalos +Versión: 1.0.0 +Fecha: 11/03/2020 +*/ + +int main (){ + setlocale (LC_ALL,""); + int i,j,n,m,igualdad; + + printf ("Este programa determina si la diagonal principal de ambas matrices son iguales\n" ); + printf ("\nIngrese las FILAS de ambas matrices: "); + scanf ("%d",&n); + printf ("Ingrese las COLUMNAS de ambas matrices: "); + scanf ("%d", &m); + + double matrizA[n][m], matrizB[n][m]; + //Capturamos + printf ("\nIngrese los datos de la matriz A: \n\n"); + for (i=0;i0){ + printf ("\nEn conclusión las diagonales NO SON IGUALES"); + }else{ + printf ("\nLas diagonales SON IGUALES"); + } + + + + getchar (); + return 0; +} diff --git a/Equipo NetCode/ADA7_NetCode/Ejercicio 66.cpp b/Equipo NetCode/ADA7_NetCode/Ejercicio 66.cpp new file mode 100644 index 0000000..66f0132 --- /dev/null +++ b/Equipo NetCode/ADA7_NetCode/Ejercicio 66.cpp @@ -0,0 +1,76 @@ +#include +#include +#include +#include + +/* +Nombre del Programa: Ejercicio 66 - Matriz 9x12 + +Descripción: E.P. que lea una matriz de 9 X 12 elementos y que cuente todos +los elementos negativos de la misma y los cambie por ceros. + +Autor: Alan Josue Barón Pat & Victor Cauich Davalos +Versión: 1.0.0 +Fecha: 11/03/2020 +*/ + +int main (){ + setlocale (LC_ALL,""); + + int i,j,negativos; + double array[9][12]; + + printf ("Este programa cambia los negativos por ´0´ en una matriz de 9x12\n\n"); + //Capturamos + + for (i=0;i<9;i++){ + for (j=0;j<12;j++){ + printf ("Ingrese los datos del elemento (%d,%d): ", i+1,j+1); + scanf ("%lf", &array[i][j]); + } + } + + //Para comprobar + /* + srand (time(NULL)); + for (i=0;i<9;i++){ + for (j=0;j<12;j++){ + array[i][j] = -60+rand()%(61 - (-60)); + } + } + */ + //Imprimimos la original + system ("cls"); + printf ("La matriz original es: \n"); + for (i=0;i<9;i++){ + for (j=0;j<12;j++){ + printf (" %.2lf", array[i][j]); + } + printf ("\n"); + } + //Cambiamos los negativos + negativos= 0; + for (i=0;i<9;i++){ + for (j=0;j<12;j++){ + if (array[i][j]<0){ + negativos = negativos + 1; + array[i][j] = 0; + } + } + } + //Imprimimos la nueva matriz + printf ("\nLa nueva matriz es: \n"); + for (i=0;i<9;i++){ + for (j=0;j<12;j++){ + printf (" %.2lf", array[i][j]); + } + printf ("\n"); + } + + printf ("\nEl total de negativos fue de: %d", negativos); + + + + getchar (); + return 0; +} diff --git a/Equipo NetCode/ADA8_NetCode/Enfermedades.cpp b/Equipo NetCode/ADA8_NetCode/Enfermedades.cpp new file mode 100644 index 0000000..0c0d37d --- /dev/null +++ b/Equipo NetCode/ADA8_NetCode/Enfermedades.cpp @@ -0,0 +1,254 @@ +#include +#include //Para las acentuaciones +#include + +/* +Nombre: ENFERMEDADES Y SUS SINTOMAS +Descripción: E.P. que genere un vector que contenga las enfermedades, +otro vector que contenga los síntomas y una matriz de enteros que contenga +las referencias (posición) de cada enfermedad con sus síntomas. Se pide +imprimir los síntomas de cada enfermedad, de acuerdo ala informaciónproporcionada +por el usuario. La consulta concluirá conS(salir). +Autores: Victor Enrique Cauich Davalos & Alan Josue Barón Pat +Version: 1.0 +Fecha: 12/03/2020 +*/ + +void Menu(char Enfermedades[89][35], char Sintomas[143][120], int Relaciones[89][10]); +void MostrarSintomasDeUnaEnfermedad(char Enfermedades[89][35], char Sintomas[143][120], int Relaciones[89][10]); +void ImprimirEnfermedades(char Matriz[89][35]); +void ImprimirSintomas(char Matriz[143][120]); +void ImprimirRelaciones(int Matriz[89][10]); + +int main (){ + setlocale(LC_ALL,"");//Se aplica la función de la biblioteca locale para que se puedan imprimir acentuaciones... + printf("PROGRAMA DE ENFERMEDADES Y SUS SINTOMAS."); + + //Declaramos las matrices + char Enfermedades[89][35] = {("RINITIS ALERGICA"), ("SINUSITIS"), ("FARINGITIS"), ("AMIGDALITIS"), ("GRIPE"), ("LARINGITIS"), ("TUMOR DE LARINGE"), ("BRONQUITIS AGUDA"), ("BRONQUITIS CRONICA"), ("ASMA") + , ("ENFISEMAS"), ("NEUMONIA"), ("PLEURESIA"), ("NEUMOTORAX"), ("BRONQUIECTASIAS"), ("ABSCESO DE PULMON"), ("NEUMOCONIOSIS"), ("CANCER DE PULMON"), ("FIBROSIS INTERSTICIAL"), ("EDEMA PULMONAR") + , ("GASTRITIS"), ("HERNIA DE HIATO"), ("ULCERA PEPTICA-DUODENAL"), ("ENFERMEDAD DIVERTICULAR"), ("ENFERMEDAD DE CROHN"), ("OBSTRUCCION INTESTINAL"), ("APENDICITIS"), ("ENVENENAMIENTO POR ALIMENTOS"), ("GASTROENTERITIS"), ("CALCULOS RENALES (LITIASIS RENAL)") + , ("PIELONEFRITIS AGUDA"), ("LITIASIS VESICULAR"), ("COLECISTITIS"), ("HERPES ZOSTER"), ("TROMBOSIS VENOSA PROFUNDA"), ("ARTRITIS REUMATOIDE"), ("FALLO CARDIACO"), ("ANSIEDAD"), ("DEPRESION"), ("TROMBOSIS CORONARIA") + , ("ANGINA"), ("EMBOLISMO PULMONAR"), ("ICTUS"), ("ATAQUE ISQUEMICO TRANSITORIO"), ("TUBERCULOSIS"), ("HEMORROIDES"), ("HIPOTIROIDISMO"), ("COLON IRRITABLE"), ("CANCER DE INTESTINO GRUESO"), ("COLITIS ULCEROSA") + , ("ENFERMEDAD DE MENIERE (VERTIGO)"), ("ESPONDILOSIS CERVICAL"), ("HEMORRAGIA SUBDURAL"), ("TUMOR CEREBRAL"), ("MENINGITIS"), ("HEMORRAGIA SUBARACNOIDEA"), ("GLAUCOMA AGUDO"), ("ARTERITIS TEMPORAL"), ("DISPEPSIA"), ("BLOQUEO CARDIACO") + , ("ANEMIA PERNICIOSA"), ("MIGRAñA"), ("HIPERTENSION"), ("ECZEMA"), ("URTICARIA"), ("SARNA"), ("SARAMPION"), ("RUBEOLA"), ("VARICELA"), ("PSORIASIS") + , ("PITIRIASIS ROSADA"), ("ACNE ROSACEA"), ("TIROTOXICOSIS"), ("DIABETES MELLITUS"), ("CANCER DE ESTOMAGO"), ("FIBRILACIONAURICULAR"), ("ENFERMEDAD DE HODGKIN"), ("MONONUCLEOSIS INFECCIOSA"), ("LINFOMA"), ("PAROTIDITIS") + , ("PARALISIS DEBEL"), ("ENFERMEDAD DE PARKINSON"), ("FIEBRE REUMATICA"), ("CISTITIS"), ("TUMOR RENAL"), ("TUMOR DE VEJIGA"), ("IRITIS"), ("HEPATITIS AGUDA "), ("CANCER DE PANCREAS")}; + char Sintomas[143][120] = {("ESTORNUDA MUCHO"), ("TIENE DOLOR DE OJOS O LAGRIMEA MUCHO"), ("TIENE MAL LA GARGANTA"), ("TIENE LA VOZ RONCA"), ("TOSE MUCHO"), ("TIENE LA NARIZ CONGESTIONADA"), ("TIENE DOLOR DE CABEZA O SUFRE GENERALMENTE DE DOLORES DE CABEZA"), ("TIENE TEMPERATURA ALTA (POR ENCIMA DE 38 GRADOS)"), ("PERMANECE MUCHO TIEMPO EN ATMOSFERAS CARGADOS DE POLVO"), ("LE PICA LA PIEL") + , ("TIENE LA GARGANTA SECA"), ("ES SU RESPIRACION SILBANTE"), ("ESTA SU NARIZ MUY BLOQUEADA"), ("HA TENIDO UN RESFRIADO O INFECCION SIMILAR RECIENTEMENTE"), ("SE ENCUENTRA GENERALMENTE ENFERMO"), ("TIENE ALTERACIONES EN LA DEGLUCION"), ("LE DUELEN LOS MUSCULOS"), ("TIENE ALGUN DOLOR EN EL TORAX (PECHO)"), ("HA SIDO OPERADO DE ANGINAS"), ("TIENE ALGUN SINTOMA QUE TIENDA A PRODUCIRSE EN ATAQUES EN VEZ DE CONTINUAMENTE") + , ("TIENE TOS PRODUCTIVA UNA TOS EN LA QUE EXPULSA ALGO"), ("TIENE FATIGA AL RESPIRAR"), ("SUDA MUCHO (NO CUANDO HACE EJERCICIO SINO CUANDO ESTA APARENTEMENTE RELAJADO)"), ("TIENE SU PULSO UN RITMO ALTO NORMALMENTE DEBERIA ESTAR ALREDEDOR DE 60-80"), ("HA TENIDO ATAQUES SEVEROS DE FATIGA LO SUFICIENTE COMO PARA PREOCUPARLE SERIAMENTE"), ("TIENE SU PIEL UN TINTE CEREO"), ("CUANDO TOSE ESTA SU FLEMA TENIDA DE SANGRE"), ("ESTA CONFUSO ACERCA DE LO QUE LE ESTA OCURRIENDO"), ("TIENE DELIRIOS. HABLANDO INCOHERENTEMENTE CON DEFICIENTE COORDINACION MUSCULAR"), ("TIENE TOS SECA (NO PRODUCTIVA)") + , ("LE DUELE CUANDO TOSE O RESPIRA"), ("TIENE ALGUNA VEZ UN DOLORES FUERTES EN EL PECHO"), ("SUDA CUANDO SE ENCUENTRA ENTRE RESFRIADO Y ENFEBRECIDO"), ("TIENE ALGUN SINTOMA QUE HAYA ESTADO PRESENTE POR ALGUN TIEMPO (SEIS SEMANAS O MAS)"), ("TIENE DEDOS DE PENE ESTOS SON DEDOS PALILLOS DE TAMBOR"), ("TIENE ALGUN SINTOMA QUE APAREZCA PRINCIPALMENTE CUANDO HACE ALGUN ESFUERZO"), ("FUMA"), ("SUFRE SENSACION DE VERTIGO"), ("TIENE PALPITACIONES"), ("TIENE ALGUNO DE SUS TOBILLOS INDEBIDAMENTE HINCHADO") + , ("VOMITA O SIENTE DESEOS DE HACERLO"), ("SIENTE ALGUN DOLOR ABDOMINAL ENTRE EL FONDO DE LA CAJA TORACICA Y LAS INGLES"), ("SUFRE DE DIARREAS"), ("LE HAN EXTIRPADO EL APENDICE"), ("ESTA ICTERICO"), ("SE ENCUENTRA UN POCO TENSO Y APRENSIVO"), ("LE CUESTA DORMIR O SE DESPIERTA A MITAD DE LA NOCHE"), ("TIENE ALGUNA CONTRACCION O TEMBLOR INVOLUNTARIO"), ("SUFRE DE ESTRENIMIENTO HACE LA DEPOSICION INFRECUENTEMENTE O CON DIFICULTAD"), ("TIENE POCA MEMORIA DIFICULTAD EN REMEMORAR HECHOS REGULAR U OCASIONALMENTE") + , ("TIENE PERDIDA DE VOZ EN PEQUENA CUANTIA O TOTALMENTE"), ("SANGRA CON LAS DEPOSICIONES"), ("ES HOMBRE"), ("TIENE EL CUELLO RIGIDO O CON DOLORES"), ("HA SOPORTADO ALGUN TIPO DE GOLPE EN LA CABEZA EN LAS ULTIMAS SEMANAS"), ("HA TENIDO DEPOSICIONES ANORMALES RECIENTEMENTE"), ("EFECTUA LA DEPOSICION CON GRAN CANTIDAD DE VIENTOS TANTO POR INFLAZON O FLATULENCIA"), ("HA TENIDO REPENTINAS SENSACIONES DE DESMAYO, DEBILIDAD O PERDIDAS DE CONCIENCIA"), ("TIENE PICOR EN ALGUNA PARTE DE SU CUERPO. CON O SIN LA PRESENCIA DE ERUPCION"), ("TIENE ERUPCION EN SU PIEL O ALGUNA OTRA CLASE DE LESION") + , ("TIENE ALGUNA PARTE DE SU CUERPO ENTUMECIDA (PARALIZADA) O TIENE PINCHAZOS"), ("TIENE PESO EXCESIVO O BAJO RESPONDA 5 SI PESO EXCESIVO, -5 PARA BAJO, 0 SI NORMAL"), ("TIENE ALGUN DOLOR EN SU CARA O FRENTE"), ("TIENE ALGUNA TUMORACION BAJO LA PIEL"), ("TIENE SU ORINA UN COLOR ANORMAL"), ("TIENE QUE ORINAR FRECUENTEMENTE"), ("TIENE DOLOR CUANDO ORINA"), ("EMPEORA SU VISION EN ALGUNA OCASION CON VISION BORROSA, DOBLE O RELAMPAGUEOS"), ("NO TIENE NINGUN SINTOMA"), ("LE PRODUCE ACCESOS DE TOS EL RESPIRAR AIRE FRIO, HUMO O POLVO") + , ("AL TOSER SE CONGESTIONA Y LLEGA A PERDER EL CONOCIMIENTO"), ("TIENE INSPIRACION VIGOROSA Y RAPIDA Y ESPIRACION RUIDOSA Y PROLONGADA"), ("ADOPTA ALGUNA POSTURA ESPECIAL PARA PODER RESPIRAR MEJOR (INCLINADA HACIA DELANTE Y CON LOS BRAZOS"), ("SE FATIGA AL REALIZAR CUALQUIER ESFUERZO COMO VESTIRSE, AGACHARSE, HABLAR, ETC."), ("TIENE DIFICULTAD PARA EXPULSAR ALGO CON LA EXPECTORACION"), ("TIENE EL TORAX ABOMBADO Y RIGIDO"), ("NO PUEDE APAGAR UNA CERILLA A 20 CMS DE SU BOCA"), ("HA PERDIDO LA CONCIENCIA BRUSCAMENTE TRAS UN PERIODO DE ATONTAMIENTO Y CONFUSION"), ("EXPULSA ESPUTOS MUY ABUNDANTES Y PURULENTOS QUE SALEN MAS FACILMENTE CON DETERMINADAS POSTURAS"), ("TIENE TOS IRRITATIVA, FATIGANTE Y MAS MARCADA POR LAS NOCHES") + , ("TIENE LAXITUD, FALTA DE APETITO Y HA PERDIDO PESO"), ("PRESENTA DOLORES EN SUS ARTICULACIONES"), ("TIENE SENSACION AL RESPIRAR HONDO DE QUE SE LE PARA EL AIRE ANTES DE LLEGAR AL FINAL COMO SI ESTE F"), ("TIENE OPRESION EN EL TORAX"), ("SE SIENTE ANGUSTIADO, TENSO O APRENSIVO"), ("PRESENTA DOLOR EN EL ABDOMEN, MAS EN LA PARTE INFERIOR IZQUIERDA"), ("PRESENTA DOLOR EN EL ABDOMEN, ALREDEDOR DE SU OMBLIGO O MAS EN EL LADO INFERIOR DERECHO"), ("TIENE ARDORES O SENSACION DE URENCIA EN EL TORAX, ABDOMEN O TRAS EL ESTERNON"), ("AUMENTAN SUS ARDORES AL TUMBARSE"), ("HA OBSERVADO LA PRESENCIA DE SANGRE EN SUS VOMITOS O DEPOSICIONES (ROJO O ANORMALMENTE NEGRO)") + , ("TIENE FALTA DE APETITO CON REPUGNANCIA DE LOS ALIMENTOS"), ("ESTA SU LENGUA SUCIA Y LE HUELE EL ALIENTO"), ("LE DUELE EL ABDOMEN EN SU PORCION CENTRAL Y SUPERIOR, COMO UNA SENSACION DE HAMBRE DOLOROSA QUE SE"), ("ESTA INFLAMADO ALGUNO DE SUS TESTICULOS"), ("NOTA INFLAZON ABDOMINAL CON FLATULENCIA Y GASES"), ("TIENE ALGUN BULTO ANORMAL EN SU ABDOMEN"), ("TIENE DOLOR ABDOMINAL EN FORMA DE RETORTIJONES CON RUIDOS ABDOMINALES AUMENTADOS"), ("ESTA SU ABDOMEN DISTENTIDO Y TIMPANIZADO (COMO UN TAMBOR)"), ("TIENE ALGUN DOLOR ABDOMINAL QUE AUMENTE CON LOS ESFUERZOS, LA TOS O AL ANDAR"), ("TIENE DOLOR EN SUS RIÑONES, QUE SE BAJA HASTA LOS GENITALES (COMO ALGO QUE SE RETUERCE O DESGARRA E") + , ("TIENE ESCALOFRIOS"), ("TIENE DOLOR ABDOMINAL LOCALIZADO EN LA PORCION SUPERIOR DERECHA (DEBAJO DE LAS COSTILLAS)"), ("TARDA MUCHO EN HACER SUS DIGESTIONES ENCONTRANDOSE PESADO Y CON ERUPTOS FRECUENTES"), ("TIENE ALGUNA DE SUS PIERNAS INDEBIDAMENTE HINCHADA"), ("TIENE DOLOR A LO LARGO DE LA PIERNA O EN LA PANTORRILLA"), ("TIENE ALGUNA DE SUS ARTICULACIONES TUMEFACTA, CALIENTE Y DOLOROSA (MAS EN MUÑECAS Y DEDOS BILATERAL"), ("TIENE LOS DEDOS HINCHADOS Y FUSIFORMES Y LE IMPIDEN DORMIR"), ("ESTA TRISTE, SOMBRIO, FALTO DE ILUSIONES, PESIMISTA CON IMPOTENCIA PARA OBRAR Y PENSAR Y DESEA MORIR"), ("TIENE EL PULSO MAS LENTO DE LO NORMAL"), ("TIENE SENSACION DE MUERTE INMINENTE") + , ("HA SIDO INTERVENIDO QUIRURGICAMENTE RECIENTEMENTE"), ("TIENE O NOTA UNA TUMEFACCION BLANDA EN LA REGION ANAL QUE SE LE SALE CON LA DEPOSICION Y LE PRODUCE"), ("TIENE SU PIEL ASPECTO SECO, ASPERO, DURA, ESCAMOSA Y FRIA (MAS EN LA CARA, NUCA Y DORSO DE MANOS Y"), ("TIENE O SIENTE UNA SENSACION DE FRIO MAS ACUSADA DE LO NORMAL"), ("TIENE SUS UÑAS QUEBRADIZAS Y SU PELO ES RALO Y ESCASO CON CAIDA DEL MISMO DE LA COLA DE LA CEJA"), ("SE ENCUENTRA SOMNOLIENTO, APATICO, CON LENGUAJE LENTO Y GRAN FATIGABILIDAD"), ("ESTA SU LENGUA AUMENTADA DE TAMAÑO"), ("ESTA NERVIOSO, INQUIETO E INESTABLE"), ("SE SIENTE INSATISFECHO AL HACER LA DEPOSICION CON DESEOS DE VOLVER A EVACUAR"), ("TIENE ZUMBIDOS DE OIDOS") + , ("TIENE SOMNOLENCIA PROGRESIVA CON CONFUSION MENTAL, CAMBIO DE CARACTER Y DELIRIO HASTA PERDER LA CON"), ("TIENE DOLORES DE CABEZA LATERALES, PULSATILES Y FUERTES QUE LE IMPIDEN APOYAR LA CABEZA EN LA ALMOH"), ("ESTA SU LENGUA ARDIENTE, DOLOROSA, ROJA Y LISA EN BORDES Y PUNTAS CON PERDIDA DE LAS RUGOSIDADES NO"), ("LE MOLESTA LA LUMINOSIDAD"), ("SE SUELE DESPERTAR CON DOLOR DE CABEZA Y CON LA SENSACION DE QUE EL SUEÑO NO HA SIDO REPARADOR"), ("TIENE ALGUNA MANCHA BLANQUECINA (COMO CALCAREA EN LA CARA INTERNA DE LA MEJILLA)"), ("TIENE MUCHO APETITO Y COME MUCHO PERO A PESAR DE ELLO PIERDE PESO Y SE ENCUENTRA DEBIL"), ("ESTA SU FIEL FINA, ROJA, CALIENTE Y SUDOROSA (MAS EN LA PALMA DE LAS MANOS)"), ("TIENE GRAN APETITO, MUCHA SED Y ORINA MUCHO SOBRETODO POR LAS NOCHES"), ("SE LE INFECTAN CON FACILIDAD LAS HERIDAS O LE TARDAN MUCHO EN CICATRIZAR") + , ("ES SU PULSO IRREGULAR, CAMBIANDO SU VOLUMEN Y AMPLITUD DE LATIDO EN LATIDO"), ("TIENE LA BOCA SECA Y LE DUELE AL MASTICAR"), ("ESTA SU BOCA TORCIDA HACIA UN LADO CON DIFICULTAD PARA CERRAR EL OJO DEL MISMO LADO Y NO PUEDE FRUN"), ("ESTAN SUS MUSCULOS RIGIDOS Y ENVARADOS, LO QUE LE HACE ADOPTAR UNA POSTURA DE PROYECCION HACIA ADEL"), ("COMIENZA A ANDAR LENTAMENTE, VA CADA VEZ MAS DEPRISA CON PASOS CORTOS Y CAE AL SUELO"), ("ES SU LENGUAJE DEBIL CON TONOS UNIFORMES Y A VECES INCOMPRENSIBLES"), ("TIENE DOLORES EN LAS ARTICULACIONES Y QUE VAN DE UNA ARTICULACION A OTRA"), ("TIENE DOLORES ABDOMINALES POR DEBAJO DEL OMBLIGO Y POR ENCIMA DELPUBIS"), ("SE QUEDA CON MAS GANAS DE ORINAR DESPUES DE HABER ORINADO"), ("ESTA SU ORINA TEÑIDA DE SANGRE") + , ("TIENE PICORES EN AXILAS, INGLES, COSTADOS, ENTRE LOS DEDOS FUNDAMENTALMENTE NOCTURNOS"), ("TIENE PICORES EN SU CUERPO Y ADEMAS HAY EN SU ENTORNO ALGUIEN IGUAL (FAMILIAR O AMIGO)"), ("TIENE DOLORES EN LOS HUESOS")}; + int Relaciones[89][10] = { + {1, 2, 3, 5, 6, 7, 8, 15, 17, 34}, + {1, 2, 6, 10, 11, 12, 20}, + {5, 14, 13, 15, 7, 22, 2, 6, 63}, + {3, 16, 8, 11, 37, 64}, + {3, 7, 15, 16, 19, 8, 34, 64}, + {3, 1, 6, 7, 8, 15, 17, 18, 34}, + {4, 8, 15, 16, 37}, + {4, 34, 37}, + {5, 8, 12, 15, 18, 21, 31, 34, 70}, + {5, 12, 14, 21, 22, 34, 36, 37, 71, 0}, + {12, 20, 22, 23, 24, 25, 26, 31, 72, 73}, + {22, 5, 26, 12, 21, 37, 74, 75, 76, 77}, + {5, 8, 15, 18, 22, 23, 24, 29, 27, 31}, + {31, 32, 22, 5, 8, 15, 34, 0}, + {5, 18, 22, 23, 31, 32, 0}, + {21, 27, 5, 14, 15, 34, 35, 80, 0}, + {8, 14, 15, 33, 18, 21, 27, 80, 0}, + {18, 22, 36, 21, 9, 0}, + {5, 21, 27, 22, 18, 12, 37, 81, 82, 0}, + {22, 35, 21, 141, 81, 83, 0}, + {5, 22, 24, 25, 27, 26, 12, 84, 85}, + {41, 43, 42, 8, 37, 91, 92}, + {18, 32, 42, 57, 16, 41, 88, 89, 90}, + {20, 37, 41, 90, 93, 0}, + {42, 43, 41, 8, 49, 86, 95, 96, 0}, + {42, 43, 15, 8, 62, 81, 82, 87, 99, 0}, + {24, 42, 41, 49, 97, 98, 0}, + {24, 42, 41, 44, 87, 92, 99, 142, 0}, + {42, 41, 43, 7, 56, 97, 0}, + {41, 42, 43, 8, 91, 92, 0}, + {42, 66, 98, 100, 101, 0}, + {42, 8, 41, 66, 67, 100, 101}, + {42, 41, 57, 102, 103, 0}, + {42, 8, 41, 45, 102, 103, 0}, + {42, 18, 60, 59, 2, 46, 64, 85, 0}, + {24, 40, 104, 105, 142, 0}, + {15, 17, 40, 81, 82, 106, 107, 0}, + {22, 24, 36, 25, 12, 18, 40, 42, 47, 141}, + {46, 28, 47, 39, 23, 48, 16, 43, 22, 50}, + {47, 7, 49, 50, 15, 62, 95, 108, 0}, + {18, 32, 20, 36, 38, 22, 23, 41, 15, 110}, + {37, 18, 36, 22, 23, 38, 41, 85, 0}, + {22, 18, 21, 27, 25, 26, 85, 110, 111, 0}, + {28, 38, 51, 58, 61, 0}, + {28, 38, 51, 34, 20, 58, 61, 0}, + {7, 8, 12, 15, 18, 5, 30, 27, 22, 81}, + {52, 49, 56, 59, 112, 0}, + {49, 17, 50, 62, 113, 114, 115, 116, 117, 136}, + {43, 49, 42, 41, 56, 57, 97, 116, 0}, + {43, 49, 52, 42, 56, 62, 81, 97, 117, 0}, + {42, 43, 52, 23, 41, 8, 34, 56, 81, 118}, + {38, 41, 34, 20, 109, 120, 0}, + {54, 7, 38, 58, 61, 0}, + {55, 28, 7, 41, 38, 109, 50, 54, 121, 0}, + {7, 41, 38, 50, 34, 109, 121, 50, 0}, + {8, 7, 41, 28, 54, 2, 60, 109, 101, 121}, + {7, 54, 38, 28, 4, 2, 78, 109, 0}, + {2, 7, 41, 20, 34, 63, 68, 0}, + {7, 17, 2, 23, 63, 81, 122, 0}, + {18, 57, 42, 41, 46, 20, 95, 118, 43, 103}, + {22, 58, 39, 18, 109, 0}, + {22, 58, 39, 36, 45, 42, 50, 28, 123, 0}, + {7, 15, 41, 43, 2, 20, 34, 63, 122, 124}, + {7, 24, 38, 39, 15, 34, 50, 58, 125, 0}, + {59, 60, 0}, + {59, 60, 46, 0}, + {59, 60, 141, 142, 0}, + {15, 8, 6, 2, 11, 5, 43, 60, 7, 126}, + {1, 2, 8, 60, 54, 64, 124, 0}, + {60, 59, 8, 7, 15, 34, 0}, + {46, 3, 60, 59, 0}, + {60, 59, 34, 0}, + {60, 2, 34, 0}, + {46, 47, 48, 23, 39, 43, 2, 24, 127, 128}, + {62, 61, 2, 66, 68, 129, 130, 0}, + {16, 41, 42, 62, 52, 56, 81, 90, 91, 0}, + {24, 39, 38, 42, 58, 131, 0}, + {8, 23, 46, 59, 63, 64, 81, 143, 0}, + {8, 7, 3, 15, 17, 64, 54, 45, 60, 109}, + {64, 54, 15, 62, 8, 23, 59, 81, 0}, + {64, 8, 15, 16, 54, 3, 132, 94, 0}, + {51, 63, 13, 0}, + {48, 51, 42, 50, 28, 134, 135, 136, 0}, + {3, 15, 8, 23, 24, 64, 60, 48, 106, 137}, + {66, 65, 67, 8, 138, 139, 0}, + {8, 42, 65, 96, 100, 140, 0}, + {65, 42, 66, 67, 8, 139, 140, 0}, + {2, 68, 124, 0}, + {8, 15, 17, 42, 45, 41, 59, 65, 81, 102} + }; + + //Desplegamos el menú + Menu(Enfermedades, Sintomas, Relaciones); + + printf("\nTeclea ENTER para salir por favor..."); + fflush(stdin); + getchar(); + return 0; +} +//--------------------------------------Función de Menú----------------------------------- +void Menu(char Enfermedades[89][35], char Sintomas[143][120], int Relaciones[89][10]) +{ + system("cls"); + int Seleccion; + printf("PROGRAMA DE SINTOMAS Y ENFERMEDADES."); + printf("\n1. Mostrar sintomas de una enfermedad."), + printf("\n2. Salir."); + printf("\nIngrese la opción a realizar: "); + scanf("%d", &Seleccion); + switch(Seleccion) + { + case 1: + MostrarSintomasDeUnaEnfermedad(Enfermedades, Sintomas, Relaciones); + break; + case 2: + system("cls"); + printf("\nADIÓS, QUE TENGA BUEN DÍA..."); + printf("\nTeclea ENTER para salir por favor..."); + fflush(stdin); + getchar(); + exit(-1); + break; + default: + printf("\nERROR, SELECCIÓN INVALIDA, INTENTE DE NUEVO...."); + printf("\nTeclea ENTER para continuar..."); + fflush(stdin); + getchar(); + system("cls"); + Menu(Enfermedades, Sintomas, Relaciones); + break; + } +} +//-----------------------Función para mostrar sintomas de una enfermedad------------------ +void MostrarSintomasDeUnaEnfermedad(char Enfermedades[89][35], char Sintomas[143][120], int Relaciones[89][10]) +{ + system("cls"); + int Seleccion; + printf("A continuación se mostraran las enfermedades:"); + printf("\nTeclea ENTER para continuar..."); + fflush(stdin); + getchar(); + ImprimirEnfermedades(Enfermedades); + printf("\n\nIngrese el número de la enfermedad de la cual\nquiera saber sus sintomas, por favor: "); + scanf("%d", &Seleccion); + if((Seleccion < 1) || (Seleccion > 89)) + { + printf("\nERROR, SELECCIÓN INVALIDA, INTENTE DE NUEVO...."); + printf("\nTeclea ENTER para continuar..."); + fflush(stdin); + getchar(); + MostrarSintomasDeUnaEnfermedad(Enfermedades, Sintomas, Relaciones); + }else + { + printf("\n\nLos sintomas de la enfermedad %s son: ", Enfermedades[Seleccion - 1]); + int i = 0; + do + { + for(int t = 0; t < 143; t++) + { + if(Relaciones[Seleccion - 1][i] == t) + { + printf("\n%d. %s.", i + 1, Sintomas[t]); + t = 143; + } + } + i++; + }while(Relaciones[Seleccion - 1][i] != 0 && i < 10); + } + printf("\n\nTeclea ENTER para continuar e ir al menú de nuevo..."); + fflush(stdin); + getchar(); + Menu(Enfermedades, Sintomas, Relaciones); +} +//---------------------------Función para imprimir las enfermedades----------------------- +void ImprimirEnfermedades(char Matriz[89][35]) +{ + for(int i = 0; i < 89; i++) + { + printf("\n%d. %s", i + 1, Matriz[i]); + } +} +//---------------------------Función para imprimir los sintomas--------------------------- +void ImprimirSintomas(char Matriz[143][120]) +{ + for(int i = 0; i < 143; i++) + { + printf("\n%s", Matriz[i]); + } +} +//---------------------------Función para imprimir las relaciones------------------------- +void ImprimirRelaciones(int Matriz[89][10]) +{ + printf("\n\n"); + for(int i = 0; i < 89; i++) + { + for(int t = 0; t < 10; t++) + { + printf("%d, ", Matriz[i][t]); + } + printf("\n"); + } +} diff --git a/Equipo NetCode/ADA9_NetCode/Ejercicio 67.cpp b/Equipo NetCode/ADA9_NetCode/Ejercicio 67.cpp new file mode 100644 index 0000000..5a66f5b --- /dev/null +++ b/Equipo NetCode/ADA9_NetCode/Ejercicio 67.cpp @@ -0,0 +1,206 @@ +#include +#include //Para las acentuaciones +#include + +/* +Nombre: EMPLEADO CON MENOR Y MAYOR SALARIO +Descripción: E.P. que lea un arreglo de estructuras los datos +de N empleados de una empresa (clave (numérica), nombre, edad, +salario (real), sexo (numérica) y que determine e imprima los +datos del empleado con mayor y menor salario +Autores: Victor Enrique Cauich Davalos & Alan Josue Barón Pat +Version: 1.0 +Fecha: 23/03/2020 +*/ + +//Creamos nuestra estructura de los datos que tendrán nuestros empleados +typedef struct Empleado +{ + int Clave; + char Nombre[30]; + int Edad; + double Salario; + int Sexo; +}; + +//prototipo de funciones +int ValidarCantidadEmpleados(int N);//Para validar cuántos empleados son de la empresa +void AsignarDatosEmpleados(Empleado Empleados[], int N); +int IngresarSexo(Empleado E); +double SalarioMinimo(Empleado Empleados[], int N, double SalarioMin); +double SalarioMaximo(Empleado Empleados[], int N, double SalarioMax); +void ImprimirEmpleadoMenorYMayor(Empleado Empleados[], int N, double SalarioMin, double SalarioMax); +void MostrarEmpleado(Empleado Empleados[], int N); + +int main (){ + setlocale(LC_ALL,"");//Se aplica la función de la biblioteca locale para que se puedan imprimir acentuaciones... + printf("PROGRAMA DE EMPLEADO CON MENOR Y MAYOR SALARIO."); + int N;//cantidad de empleados + double SalarioMin, SalarioMax; + + //Validar el número de empleados + N = ValidarCantidadEmpleados(N); + + //Creamos el array de empleados + Empleado Empleados[N]; + + //Asignar datos de cada empleado + AsignarDatosEmpleados(Empleados, N); + + //Determinar cual salario es el menor + SalarioMin = SalarioMinimo(Empleados, N, SalarioMin); + + //Determinar cual salario es el mayor + SalarioMax = SalarioMaximo(Empleados, N, SalarioMax); + + system("cls"); + printf("\n\n"); + if(N > 1) + { + ImprimirEmpleadoMenorYMayor(Empleados, N, SalarioMin, SalarioMax); + }else + { + printf("\nCOMO SOLO HAY 1 EMPLEADO, ENTONCES TIENE EL MAXIMO Y MINIMO SALARIO,\nESTOS SON SUS DATOS:"); + MostrarEmpleado(Empleados, N); + } + + printf("\nTeclea ENTER para salir por favor..."); + fflush(stdin); + getchar(); + return 0; +} +//-------------------Función que valida cantidad de empleados--------------- +int ValidarCantidadEmpleados(int N) +{ + printf("\nIngrese por favor la cantidad de \nempleados que tiene la empresa, por favor: "); + scanf("%d", &N); + fflush(stdin); + if(N > 0) + { + return N; + }else + { + printf("\nERROR, debe ingresar un valor mayor a 0.\n Intente de nuevo, por favor..."); + printf("\nTeclea ENTER para continuar, por favor..."); + getchar(); + system("cls"); + N = ValidarCantidadEmpleados(N); + return N; + } +} +//-----------------Función para asignar datos de los empleados------------- +void AsignarDatosEmpleados(Empleado Empleados[], int N) +{ + for(int i = 0; i < N; i++) + { + printf("\nIngrese por favor su clave (numerica) empleado #%d: ", i + 1); + scanf("%d", &Empleados[i].Clave); + printf("\nIngrese por favor su nombre empleado #%d: ", i + 1); + scanf("%s", &Empleados[i].Nombre); + fflush(stdin); + printf("\nIngrese por favor su edad empleado #%d: ", i + 1); + scanf("%d", &Empleados[i].Edad); + printf("\nIngrese por favor su salario empleado #%d: ", i + 1); + scanf("%lf", &Empleados[i].Salario); + Empleados[i].Sexo = IngresarSexo(Empleados[i]); + } +} +//-------------------------Función para validar sexo de cada empleado------ +int IngresarSexo(Empleado E) +{ + printf("\nIngrese por favor su sexo, siendo:"); + printf("\n1. Hombre."); + printf("\n2. Mujer."); + printf("\nIngrese el número de su opción: "); + scanf("%d", &E.Sexo); + fflush(stdin); + if(E.Sexo != 1 && E.Sexo != 2) + { + printf("\nERROR, debe ingresar 1 o 2, como muestra en las opciones.\n Intente de nuevo, por favor..."); + E.Sexo = IngresarSexo(E); + return E.Sexo; + }else + { + return E.Sexo; + } +} +//------------------Función para encontrar el salario minimo---------------- +double SalarioMinimo(Empleado Empleados[], int N, double SalarioMin) +{ + SalarioMin = Empleados[0].Salario; + for(int i = 1; i < N; i++) + { + if(SalarioMin > Empleados[i].Salario) + { + SalarioMin = Empleados[i].Salario; + } + } + return SalarioMin; +} +//------------------Función para encontrar el salario maximo---------------- +double SalarioMaximo(Empleado Empleados[], int N, double SalarioMax) +{ + SalarioMax = Empleados[0].Salario; + for(int i = 1; i < N; i++) + { + if(SalarioMax < Empleados[i].Salario) + { + SalarioMax = Empleados[i].Salario; + } + } + return SalarioMax; +} +//-----------------Función para imprimir datos de los empleados con minimo y maximo salario------------ +void ImprimirEmpleadoMenorYMayor(Empleado Empleados[], int N, double SalarioMin, double SalarioMax) +{ + + for(int i = 0; i < N; i++) + { + if(SalarioMin == Empleados[i].Salario) + { + printf("\n\nDATOS DEL EMPLEADO CON MENOR SALARIO:"); + printf("\n\nLa clave del/la emplead@ %d es: %d", i + 1, Empleados[i].Clave); + printf("\nEl nombre del/la emplead@ %d es: %s", i + 1, Empleados[i].Nombre); + printf("\nLa edad del/la emplead@ %d es: %d", i + 1, Empleados[i].Edad); + printf("\nEl salario del/la emplead@ %d es: %.2lf", i + 1, Empleados[i].Salario); + if(Empleados[i].Sexo == 1) + { + printf("\nEl sexo del/la emplead@ %d es: Hombre", i + 1); + }else + { + printf("\nEl sexo del/la emplead@ %d es: Mujer", i + 1); + } + } + + if(SalarioMax == Empleados[i].Salario) + { + printf("\n\nDATOS DEL EMPLEADO CON MAYOR SALARIO:"); + printf("\n\nLa clave del/la emplead@ %d es: %d", i + 1, Empleados[i].Clave); + printf("\nEl nombre del/la emplead@ %d es: %s", i + 1, Empleados[i].Nombre); + printf("\nLa edad del/la emplead@ %d es: %d", i + 1, Empleados[i].Edad); + printf("\nEl salario del/la emplead@ %d es: %.2lf", i + 1, Empleados[i].Salario); + if(Empleados[i].Sexo == 1) + { + printf("\nEl sexo del/la emplead@ %d es: Hombre", i + 1); + }else + { + printf("\nEl sexo del/la emplead@ %d es: Mujer", i + 1); + } + } + } +} +//------------------Función para mostrar los datos si es que solo existe un empleado----------- +void MostrarEmpleado(Empleado Empleados[], int N) +{ + printf("\n\nLa clave del/la emplead@ es: %d", Empleados[0].Clave); + printf("\nEl nombre del/la emplead@ es: %s", Empleados[0].Nombre); + printf("\nLa edad del/la emplead@ es: %d", Empleados[0].Edad); + printf("\nEl salario del/la emplead@ es: %.2lf", Empleados[0].Salario); + if(Empleados[0].Sexo == 1) + { + printf("\nEl sexo del/la emplead@ es: Hombre"); + }else + { + printf("\nEl sexo del/la emplead@ es: Mujer"); + } +} diff --git a/Equipo NetCode/ADA9_NetCode/Ejercicio 68.cpp b/Equipo NetCode/ADA9_NetCode/Ejercicio 68.cpp new file mode 100644 index 0000000..a3e6e93 --- /dev/null +++ b/Equipo NetCode/ADA9_NetCode/Ejercicio 68.cpp @@ -0,0 +1,211 @@ +#include +#include //Para las acentuaciones +#include + +/* +Nombre: ALUMNO CON MAYOR CALIFICACIÓN +Descripción: E.P. que utilice dos estructuras una llamada +promedio que tendrá los siguientes miembros: Parcial1, Parcial2 +y Proyecto; y otro llamada alumno que tendrá los siguientes +miembros: nombre, sexo y equipo; anidar la estructura promedio +en la estructura alumno, leer los datos para los N alumnos de +Programación Estructurada, calcular el promedio de cada uno e +imprimir los datos del alumno con el mejor promedio del grupo. +Autores: Victor Enrique Cauich Davalos & Alan Josue Barón Pat +Version: 1.0 +Fecha: 24/03/2020 +*/ + +//Creamos las estructuras +typedef struct Promedio +{ + double Parcial1; + double Parcial2; + double Proyecto; +}; + +typedef struct Alumno +{ + char Nombre[30]; + int Sexo; + char Equipo[30]; + Promedio Promedio; +}; + +//prototipo de funciones +int ValidarCantidadAlumnos(int N);//Para validar cuántos alumnos son +void IngresarDatosAlumno(Alumno Alumnos[], int N, double &PromedioMayor); +int IngresarSexo(Alumno E); +double ValidarCalificacion(int i, int Val); +void MostrarAlumnoGanador(Alumno Alumnos[], int N, double PromedioMayor); + +int main (){ + setlocale(LC_ALL,"");//Se aplica la función de la biblioteca locale para que se puedan imprimir acentuaciones... + printf("PROGRAMA QUE CALCULA EL ALUMNO QUE SACÓ EL PROMEDIO MAS ALTO DEL SALÓN\nDE PROGRAMACIÓN ESTRUCTURADA."); + int N;//cantidad de alumnos + double PromedioMayor; + + //Validar el número de alumnos + N = ValidarCantidadAlumnos(N); + + //Creamos el array de alumnos + Alumno Alumnos[N]; + + //Asignar datos de cada alumno + IngresarDatosAlumno(Alumnos, N, PromedioMayor); + + system("cls"); + printf("\n\n"); + MostrarAlumnoGanador(Alumnos, N, PromedioMayor); + + printf("\nTeclea ENTER para salir por favor..."); + fflush(stdin); + getchar(); + return 0; +} +//-------------------Función que valida cantidad de alumnos--------------- +int ValidarCantidadAlumnos(int N) +{ + printf("\nIngrese por favor la cantidad de \nalumnos, por favor: "); + scanf("%d", &N); + fflush(stdin); + if(N > 0) + { + return N; + }else + { + printf("\nERROR, debe ingresar un valor mayor a 0.\n Intente de nuevo, por favor..."); + printf("\nTeclea ENTER para continuar, por favor..."); + getchar(); + system("cls"); + N = ValidarCantidadAlumnos(N); + return N; + } +} +//-----------------Función para asignar datos de los alumnos------------- +void IngresarDatosAlumno(Alumno Alumnos[], int N, double &PromedioMayor) +{ + PromedioMayor = 0; + system("cls"); + for(int i = 0; i < N; i++) + { + printf("\nIngrese por favor su nombre alumn@ #%d: ", i + 1); + scanf("%s", &Alumnos[i].Nombre); + fflush(stdin); + printf("\nIngrese por favor su nombre de equipo alumn@ #%d: ", i + 1); + scanf("%s", &Alumnos[i].Equipo); + fflush(stdin); + Alumnos[i].Sexo = IngresarSexo(Alumnos[i]); + Alumnos[i].Promedio.Parcial1 = ValidarCalificacion(i, 1); + Alumnos[i].Promedio.Parcial2 = ValidarCalificacion(i, 2); + Alumnos[i].Promedio.Proyecto = ValidarCalificacion(i, 3); + if(PromedioMayor < ((Alumnos[i].Promedio.Parcial1 + Alumnos[i].Promedio.Parcial2 + Alumnos[i].Promedio.Proyecto) / 3)) + { + PromedioMayor = (Alumnos[i].Promedio.Parcial1 + Alumnos[i].Promedio.Parcial2 + Alumnos[i].Promedio.Proyecto) / 3; + } + } +} +//---------------------Función para validar calificaciones---------------- +double ValidarCalificacion(int i, int Val) +{ + double Prueba; + switch(Val) + { + case 1: + printf("\nIngrese por favor su calificación del parcial 1 alumn@ #%d: ", i + 1); + scanf("%lf", &Prueba); + if(Prueba <= 100 && Prueba >= 0) + { + return Prueba; + }else{ + printf("\nERROR, debe ingresar un valor mayor o igual a 0 y menor o igual a 100.\nIntente de nuevo, por favor..."); + printf("\nTeclea ENTER para continuar, por favor..."); + getchar(); + Prueba = ValidarCalificacion(i, 1); + return Prueba; + } + break; + case 2: + printf("\nIngrese por favor su calificación del parcial 2 alumn@ #%d: ", i + 1); + scanf("%lf", &Prueba); + if(Prueba <= 100 && Prueba >= 0) + { + return Prueba; + }else{ + printf("\nERROR, debe ingresar un valor mayor o igual a 0 y menor o igual a 100.\nIntente de nuevo, por favor..."); + printf("\nTeclea ENTER para continuar, por favor..."); + getchar(); + Prueba = ValidarCalificacion(i, 2); + return Prueba; + } + break; + case 3: + printf("\nIngrese por favor su calificación del proyecto alumn@ #%d: ", i + 1); + scanf("%lf", &Prueba); + if(Prueba <= 100 && Prueba >= 0) + { + return Prueba; + }else{ + printf("\nERROR, debe ingresar un valor mayor o igual a 0 y menor o igual a 100.\nIntente de nuevo, por favor..."); + printf("\nTeclea ENTER para continuar, por favor..."); + getchar(); + Prueba = ValidarCalificacion(i, 3); + return Prueba; + } + break; + default: + system("cls"); + printf("\n\n\nERROR..."); + printf("\nTeclea ENTER para salir por favor..."); + fflush(stdin); + getchar(); + exit(-1); + break; + } +} +//-------------------------Función para validar sexo de cada alumno------ +int IngresarSexo(Alumno A) +{ + printf("\nIngrese por favor su sexo, siendo:"); + printf("\n1. Hombre."); + printf("\n2. Mujer."); + printf("\nIngrese el número de su opción: "); + scanf("%d", &A.Sexo); + fflush(stdin); + if(A.Sexo != 1 && A.Sexo != 2) + { + printf("\nERROR, debe ingresar 1 o 2, como muestra en las opciones.\n Intente de nuevo, por favor..."); + A.Sexo = IngresarSexo(A); + return A.Sexo; + }else + { + return A.Sexo; + } +} +//------------------Función para mostrar los datos del alumno con mayor promedio----------- +void MostrarAlumnoGanador(Alumno Alumnos[], int N, double PromedioMayor) +{ + int t = 1; + printf("\nEL PROMEDIO MAXIMO DE TODO EL GRUPO ES: %.2lf.", PromedioMayor); + printf("\nA CONTINUACIÓN SE MOSTRARÁN LOS ALUMNOS CON ESE PROMEDIO:\n"); + for(int i = 0; i < N; i++) + { + if(PromedioMayor == ((Alumnos[i].Promedio.Parcial1 + Alumnos[i].Promedio.Parcial2 + Alumnos[i].Promedio.Proyecto) / 3)) + { + printf("\nALUMNO #%d:", t); + printf("\nEl nombre del/la alumn@ es: %s", Alumnos[i].Nombre); + if(Alumnos[i].Sexo == 1) + { + printf("\nEl sexo del/la alumn@ es: Hombre"); + }else + { + printf("\nEl sexo del/la alumn@ es: Mujer"); + } + printf("\nEl equipo del/la alumn@ es: %s", Alumnos[i].Equipo); + printf("\nLa calificación del parcial 1 del/la alumn@ es: %.2lf", Alumnos[i].Promedio.Parcial1); + printf("\nLa calificación del parcial 2 del/la alumn@ es: %.2lf", Alumnos[i].Promedio.Parcial2); + printf("\nLa calificación del proyecto del/la alumn@ es: %.2lf", Alumnos[i].Promedio.Proyecto); + t++; + } + } +} diff --git a/Equipo NetCode/ADA9_NetCode/Ejercicio 69.cpp b/Equipo NetCode/ADA9_NetCode/Ejercicio 69.cpp new file mode 100644 index 0000000..35fe87b --- /dev/null +++ b/Equipo NetCode/ADA9_NetCode/Ejercicio 69.cpp @@ -0,0 +1,81 @@ +#include +#include //Para las acentuaciones +#include + +/* +Nombre: ASIGNACIÓN DE MEMORIA A UN ARREGLO CON MALLOC +Descripción: Pedir al usuario el número de elementos para un +arreglo de números enteros, posteriormente comprobar con malloc +si hay memoria suficiente (si el puntero es válido, es decir +diferente de NULL), si la hay, entonces leer y luego imprimir +dicho arreglo; si no, indicar un error en la asignación de memoria. +Autores: Victor Enrique Cauich Davalos & Alan Josue Barón Pat +Version: 1.0 +Fecha: 24/03/2020 +*/ + +//prototipo de funciones +void ValidarN(int N, int *Vector);//Para validar cuántos elementos tendrá el array +void IngresarDatosDelArray(int N, int *Vector); +void ImprimirArray(int N, int *Vector); + +int main (){ + setlocale(LC_ALL,"");//Se aplica la función de la biblioteca locale para que se puedan imprimir acentuaciones... + printf("PROGRAMA QUE ASIGNA MEMORIA A UN ARREGLO CON MALLOC."); + int N;//cantidad de alumnos + int *Vector; + + //Vemos si hay memoria suficiente para almacenar todos los elementos del array + ValidarN(N, Vector); + + printf("\n\n\nTeclea ENTER para salir por favor..."); + fflush(stdin); + getchar(); + return 0; +} +//-------------------Función que valida cantidad de elementos que tendrá el array--------------- +void ValidarN(int N, int *Vector) +{ + printf("Ingrese por favor la cantidad de elementos\nque tendrá el array, por favor: "); + scanf("%d", &N); + fflush(stdin); + + //Vemos si hay memoria suficiente para almacenar todos los elementos del array + Vector = (int*)malloc(N*sizeof(int)); + if(Vector == NULL) + { + system("cls"); + printf("ERROR, NO SE PUDO ASIGNAR LA MAMORIA\nPOR MEMORIA INSUFICIENTE."); + printf("\nINTENTE DE NUEVO, POR FAVOR..."); + printf("\nTeclea ENTER para continuar, por favor..."); + getchar(); + system("cls"); + ValidarN(N, Vector); + }else + { + system("cls"); + printf("SI SE PUDO..."); + printf("\nINGRESEMOS LOS VALORES DE CADA ELEMENTO DEL ARRAY:\n"); + IngresarDatosDelArray(N, Vector); + system("cls"); + printf("LOS ELEMENTOS DEL ARRAY SON:\n"); + ImprimirArray(N, Vector); + } +} +//-------------------------Función para asignar valores a los elementos del array------------- +void IngresarDatosDelArray(int N, int *Vector) +{ + for(int i = 0; i < N; i++) + { + printf("\nIngrese el entero del elemento #%d del array, por favor: ", i + 1); + scanf("%d", &*(Vector+i)); + } +} +//-------------------------Función para imprimir los elementos del array----------------------- +void ImprimirArray(int N, int *Vector) +{ + for(int i = 0; i < N; i++) + { + printf("\nEl entero del elemento #%d del array es: %d.", i + 1, *(Vector+i)); + } +} diff --git a/Equipo NetCode/ADA9_NetCode/Ejercicio 70.cpp b/Equipo NetCode/ADA9_NetCode/Ejercicio 70.cpp new file mode 100644 index 0000000..0c38766 --- /dev/null +++ b/Equipo NetCode/ADA9_NetCode/Ejercicio 70.cpp @@ -0,0 +1,77 @@ +#include +#include //Para las acentuaciones +#include + +/* +Nombre: ASIGNACIÓN DE MEMORIA A UN ARREGLO CON MALLOC Y REDIMENCIONAR CON REALLOC +Descripción: E.P. que reserve memoria para un arreglo de 10 elementos de tipo float, +rellenarlo con datos que digite el usuario, luego utilizar realloc para ampliar +dicho arreglo a 20 elementos e imprimir el arreglo resultante. +Autores: Victor Enrique Cauich Davalos & Alan Josue Barón Pat +Version: 1.0 +Fecha: 24/03/2020 +*/ + +//prototipo de funciones +void ValidarN(int N, float *Vector);//Para validar cuántos elementos tendrá el array +void IngresarDatosDelArray(int N, float *Vector); +void ImprimirArray(int N, float *Vector); + +int main (){ + setlocale(LC_ALL,"");//Se aplica la función de la biblioteca locale para que se puedan imprimir acentuaciones... + printf("PROGRAMA QUE ASIGNA MEMORIA DE 10 ELEMENTOS A UN ARREGLO \nCON MALLOC Y REDIMENCIONAR CON REALLOC A 20 ELEMENTOS."); + int N = 10;//cantidad de alumnos + float *Vector; + + //Vemos si hay memoria suficiente para almacenar todos los elementos del array + ValidarN(N, Vector); + + printf("\n\n\nTeclea ENTER para salir por favor..."); + fflush(stdin); + getchar(); + return 0; +} +//-------------------Función que valida cantidad de elementos que tendrá el array--------------- +void ValidarN(int N, float *Vector) +{ + //Vemos si hay memoria suficiente para almacenar todos los elementos del array + Vector = (float*)malloc(N*sizeof(float)); + if(Vector == NULL) + { + system("cls"); + printf("ERROR, NO SE PUDO ASIGNAR LA MAMORIA\nPOR MEMORIA INSUFICIENTE."); + printf("\nINTENTE DE NUEVO, POR FAVOR..."); + printf("\nTeclea ENTER para continuar, por favor..."); + getchar(); + system("cls"); + ValidarN(N, Vector); + }else + { + system("cls"); + printf("SI SE PUDO..."); + printf("\nINGRESEMOS LOS VALORES DE CADA ELEMENTO DEL ARRAY:\n"); + IngresarDatosDelArray(N, Vector); + system("cls"); + N = 20; + Vector = (float*)realloc(Vector, N*sizeof(float));//redimencionamos el vector + printf("LOS ELEMENTOS DEL ARRAY SON:\n"); + ImprimirArray(N, Vector); + } +} +//-------------------------Función para asignar valores a los elementos del array------------- +void IngresarDatosDelArray(int N, float *Vector) +{ + for(int i = 0; i < N; i++) + { + printf("\nIngrese el entero del elemento #%d del array, por favor: ", i + 1); + scanf("%f", &*(Vector+i)); + } +} +//-------------------------Función para imprimir los elementos del array----------------------- +void ImprimirArray(int N, float *Vector) +{ + for(int i = 0; i < N; i++) + { + printf("\nEl entero del elemento #%d del array es: %.2f.", i + 1, *(Vector+i)); + } +} diff --git a/Equipo NetCode/ADA9_NetCode/Ejercicio 71.cpp b/Equipo NetCode/ADA9_NetCode/Ejercicio 71.cpp new file mode 100644 index 0000000..9befb99 --- /dev/null +++ b/Equipo NetCode/ADA9_NetCode/Ejercicio 71.cpp @@ -0,0 +1,82 @@ +#include +#include //Para las acentuaciones +#include + +/* +Nombre: ASIGNACIÓN DE MEMORIA A UN ARREGLO CON CALLOC Y LIBERAR SU MEMORIA +Descripción: E.P. que utilice un apuntador de arreglo con datos +de tipo float, pedir el usuario el número de elementos, luego +reservar memoria dinámica con calloc, leer dicho arreglo y posteriormente, +imprimir todos sus elementos; por ultimo, liberar el espacio de +memoria dinámica utilizado. +Autores: Victor Enrique Cauich Davalos & Alan Josue Barón Pat +Version: 1.0 +Fecha: 24/03/2020 +*/ + +//prototipo de funciones +void ValidarN(int N, float *Vector);//Para validar cuántos elementos tendrá el array +void IngresarDatosDelArray(int N, float *Vector); +void ImprimirArray(int N, float *Vector); + +int main (){ + setlocale(LC_ALL,"");//Se aplica la función de la biblioteca locale para que se puedan imprimir acentuaciones... + printf("PROGRAMA QUE ASIGNA MEMORIA A UN ARREGLO CON MALLOC."); + int N;//cantidad de alumnos + float *Vector; + + //Vemos si hay memoria suficiente para almacenar todos los elementos del array + ValidarN(N, Vector); + + printf("\n\n\nTeclea ENTER para salir por favor..."); + fflush(stdin); + getchar(); + return 0; +} +//-------------------Función que valida cantidad de elementos que tendrá el array--------------- +void ValidarN(int N, float *Vector) +{ + printf("Ingrese por favor la cantidad de elementos\nque tendrá el array, por favor: "); + scanf("%d", &N); + fflush(stdin); + + //Vemos si hay memoria suficiente para almacenar todos los elementos del array + Vector = (float*)calloc(N, sizeof(float)); + if(Vector == NULL) + { + system("cls"); + printf("ERROR, NO SE PUDO ASIGNAR LA MAMORIA\nPOR MEMORIA INSUFICIENTE."); + printf("\nINTENTE DE NUEVO, POR FAVOR..."); + printf("\nTeclea ENTER para continuar, por favor..."); + getchar(); + system("cls"); + ValidarN(N, Vector); + }else + { + system("cls"); + printf("SI SE PUDO..."); + printf("\nINGRESEMOS LOS VALORES DE CADA ELEMENTO DEL ARRAY:\n"); + IngresarDatosDelArray(N, Vector); + system("cls"); + printf("LOS ELEMENTOS DEL ARRAY SON:\n"); + ImprimirArray(N, Vector); + free(Vector);//LIBERAMOS LA MEMORIA DEL ARRAY DINAMICO + } +} +//-------------------------Función para asignar valores a los elementos del array------------- +void IngresarDatosDelArray(int N, float *Vector) +{ + for(int i = 0; i < N; i++) + { + printf("\nIngrese el entero del elemento #%d del array, por favor: ", i + 1); + scanf("%f", &*(Vector+i)); + } +} +//-------------------------Función para imprimir los elementos del array----------------------- +void ImprimirArray(int N, float *Vector) +{ + for(int i = 0; i < N; i++) + { + printf("\nEl entero del elemento #%d del array es: %.2f.", i + 1, *(Vector+i)); + } +} diff --git a/Equipo NetCode/ADA9_NetCode/Ejercicio 72.cpp b/Equipo NetCode/ADA9_NetCode/Ejercicio 72.cpp new file mode 100644 index 0000000..3e87056 --- /dev/null +++ b/Equipo NetCode/ADA9_NetCode/Ejercicio 72.cpp @@ -0,0 +1,359 @@ +#include +#include //Para las acentuaciones +#include + +/* +Nombre: ARCHIVO CON DATOS DE LOS ALUMNOS DE PROGRAMACIÓN ESTRUCTURADA +Descripción: E.P. que cree un archivo de texto (.txt) llamado +"Grupo_LIS para almacenar los datos de los alumnos de Programación +Estructurada y que contenga el siguiente menú de opciones: + +1. Crear (nombre, Parcial1, Parcial2, Proyecto, calcular y guardar +el promedio final) +2. Agregar más contactos (nombre, Parcial1, Parcial 2, Proyecto, +calcular y guardar el promedio final). +3. Visualizar toda la información existente en la pantalla. + +Autores: Victor Enrique Cauich Davalos & Alan Josue Barón Pat +Version: 1.0 +Fecha: 25/03/2020 +*/ + +//Estructura para almacenar los datos de los alumnos +typedef struct Alumno{ + char Nombre[35]; + double Parcial1; + double Parcial2; + double Proyecto; + double Promedio; +}; + +//prototipo de funciones +void Cambio(char N[]); +double ValidarCalificacion(int Val); +bool ValidarExistencia(FILE *f); + +int main (){ + setlocale(LC_ALL,"");//Se aplica la función de la biblioteca locale para que se puedan imprimir acentuaciones... + + int Val; + char Aux[98]; + bool Val1; + FILE *f; + Alumno A; + + do{ + system("cls"); + printf("PROGRAMA QUE CREA UN ARCHIVO CON DATOS DE LOS ALUMNOS DE PROGRAMACIÓN ESTRUCTURADA.\n\n"); + printf("MENÚ:"); + printf("\n1. Crear archivo."); + printf("\n2. Agregar más contactos al archivo."); + printf("\n3. Visualizar toda la información existente en la pantalla."); + printf("\n4. SALIR."); + printf("\nINGRESE LA OPCIÓN QUE DESEE REALIZAR (EL NÚMERO), POR FAVOR: "); + scanf("%d", &Val); + switch(Val) + { + case 1: + system("cls"); + printf("¡ADVERTENCIA!"); + printf("\nSI CONTINUA SE CREARÁ UN ARCHIVO NUEVO PARA INGRESAR\nLOS DATOS DE LOS ALUMNOS."); + printf("\nSI YA EXISTE UNO, SE TENDRÁ QUE BORRAR, ¿DESEA CONTINUAR?"); + printf("\n1. SI."); + printf("\n2. NO."); + printf("\nINGRESE LA OPCIÓN QUE DESEE REALIZAR (EL NÚMERO), POR FAVOR: "); + scanf("%d", &Val); + do{ + switch(Val) + { + case 1: + system("cls"); + f = fopen("Grupo_LIS.txt", "w"); + if(f == NULL) + { + system("cls"); + printf("¡¡ERROR!!"); + printf("\nNO SE PUEDO CREAR EL ARCHIVO..."); + printf("\n\n\nTeclea ENTER para salir por favor..."); + fflush(stdin); + getchar(); + exit(-1); + } + fprintf(f, "%66s", "ALUMNOS DE PROGRAMACIÓN ESTRUCTURADA"); + printf("Ingrese el nombre del estudiante, por favor: "); + fflush(stdin); + fgets(A.Nombre, 35, stdin); + Cambio(A.Nombre); + A.Parcial1 = ValidarCalificacion(1); + A.Parcial2 = ValidarCalificacion(2); + A.Proyecto = ValidarCalificacion(3); + A.Promedio = (A.Parcial1 + A.Parcial2 + A.Proyecto) / 3; + fprintf(f, "\n%-38s%-15s%-15s%-15s%-15s", "Nombres", "Parcial 1", "Parcial 2", "Proyecto", "Promedio"); + fprintf(f, "\n%-38s%-15.2lf%-15.2lf%-15.2lf%-15.2lf", A.Nombre, A.Parcial1, A.Parcial2, A.Proyecto, A.Proyecto); + fclose(f); + system("cls"); + printf("CREADO Y GUARDADO CON ÉXITO..."); + printf("\n\n\nTeclea ENTER para regresar al menú, por favor..."); + fflush(stdin); + getchar(); + Val = 2; + break; + case 2: + system("cls"); + printf("\nENTENDIDO..."); + printf("\n\n\nTeclea ENTER para regresar al menú, por favor..."); + fflush(stdin); + getchar(); + system("cls"); + break; + default: + printf("\n\nERROR... DEBE SELECCIONAR UNA OPCIÓN VALIDA."); + printf("\nINTENTE DE NUEVO..."); + printf("\n\n\nTeclea ENTER para regresar al menú, por favor..."); + fflush(stdin); + getchar(); + system("cls"); + break; + } + }while(Val != 2); + break; + case 2: + system("cls"); + f = fopen("Grupo_LIS.txt", "a+"); + if(f == NULL) + { + system("cls"); + printf("¡¡ERROR!!"); + printf("\nNO SE PUEDO CREAR O ACCEDER AL ARCHIVO..."); + printf("\n\n\nTeclea ENTER para salir por favor..."); + fflush(stdin); + getchar(); + exit(-1); + } + Val1 = ValidarExistencia(f); + if(Val1 == false){ + printf("NO EXITE EL ARCHIVO, ASÍ QUE SE VA A CREAR COMO NUEVO:"); + fprintf(f, "%66s", "ALUMNOS DE PROGRAMACIÓN ESTRUCTURADA"); + printf("\n\nIngrese el nombre del estudiante, por favor: "); + fflush(stdin); + fgets(A.Nombre, 35, stdin); + Cambio(A.Nombre); + A.Parcial1 = ValidarCalificacion(1); + A.Parcial2 = ValidarCalificacion(2); + A.Proyecto = ValidarCalificacion(3); + A.Promedio = (A.Parcial1 + A.Parcial2 + A.Proyecto) / 3; + fprintf(f, "\n%-38s%-15s%-15s%-15s%-15s", "Nombres", "Parcial 1", "Parcial 2", "Proyecto", "Promedio"); + fprintf(f, "\n%-38s%-15.2lf%-15.2lf%-15.2lf%-15.2lf", A.Nombre, A.Parcial1, A.Parcial2, A.Proyecto, A.Proyecto); + fclose(f); + system("cls"); + printf("CREADO Y GUARDADO CON ÉXITO..."); + printf("\n\n\nTeclea ENTER para regresar al menú, por favor..."); + fflush(stdin); + getchar(); + }else + { + printf("Ingrese el nombre del estudiante, por favor: "); + fflush(stdin); + fgets(A.Nombre, 35, stdin); + Cambio(A.Nombre); + A.Parcial1 = ValidarCalificacion(1); + A.Parcial2 = ValidarCalificacion(2); + A.Proyecto = ValidarCalificacion(3); + A.Promedio = (A.Parcial1 + A.Parcial2 + A.Proyecto) / 3; + fprintf(f, "\n%-38s%-15.2lf%-15.2lf%-15.2lf%-15.2lf", A.Nombre, A.Parcial1, A.Parcial2, A.Proyecto, A.Proyecto); + fclose(f); + system("cls"); + printf("CREADO Y GUARDADO CON ÉXITO..."); + printf("\n\n\nTeclea ENTER para regresar al menú, por favor..."); + fflush(stdin); + getchar(); + } + fclose(f); + break; + case 3: + system("cls"); + f = fopen("Grupo_LIS.txt", "a+"); + if(f == NULL) + { + system("cls"); + printf("¡¡ERROR!!"); + printf("\nNO SE PUEDO CREAR O ACCEDER AL ARCHIVO..."); + printf("\n\n\nTeclea ENTER para salir por favor..."); + fflush(stdin); + getchar(); + exit(-1); + } + Val1 = ValidarExistencia(f); + if(Val1 == false){ + printf("¡ADVERTENCIA!"); + printf("\nNO EXITE EL ARCHIVO, ASÍ QUE SE VA A CREAR UNO:"); + printf("\nSI CONTINUA SE CREARÁ UN ARCHIVO NUEVO PARA INGRESAR\nLOS DATOS DE LOS ALUMNOS."); + printf("\n¿DESEA CONTINUAR?"); + printf("\n1. SI."); + printf("\n2. NO."); + printf("\nINGRESE LA OPCIÓN QUE DESEE REALIZAR (EL NÚMERO), POR FAVOR: "); + scanf("%d", &Val); + do{ + switch(Val) + { + case 1: + system("cls"); + fprintf(f, "%66s", "ALUMNOS DE PROGRAMACIÓN ESTRUCTURADA"); + printf("Ingrese el nombre del estudiante, por favor: "); + fflush(stdin); + fgets(A.Nombre, 35, stdin); + Cambio(A.Nombre); + A.Parcial1 = ValidarCalificacion(1); + A.Parcial2 = ValidarCalificacion(2); + A.Proyecto = ValidarCalificacion(3); + A.Promedio = (A.Parcial1 + A.Parcial2 + A.Proyecto) / 3; + fprintf(f, "\n%-38s%-15s%-15s%-15s%-15s", "Nombres", "Parcial 1", "Parcial 2", "Proyecto", "Promedio"); + fprintf(f, "\n%-38s%-15.2lf%-15.2lf%-15.2lf%-15.2lf", A.Nombre, A.Parcial1, A.Parcial2, A.Proyecto, A.Proyecto); + system("cls"); + printf("CREADO Y GUARDADO CON ÉXITO...\nESTO ES LA INFORMACIÓN QUE SE GUARDÓ.\n"); + rewind(f); + while(!feof(f)) + { + fgets(Aux, 98, f); + printf("%s", Aux); + } + printf("\n\n\nLISTO..."); + printf("Teclea ENTER para regresar al menú, por favor..."); + fflush(stdin); + getchar(); + Val = 2; + break; + case 2: + system("cls"); + printf("\nENTENDIDO..."); + printf("\n\n\nTeclea ENTER para regresar al menú, por favor..."); + fflush(stdin); + getchar(); + system("cls"); + break; + default: + printf("\n\nERROR... DEBE SELECCIONAR UNA OPCIÓN VALIDA."); + printf("\nINTENTE DE NUEVO..."); + printf("\n\n\nTeclea ENTER para regresar al menú, por favor..."); + fflush(stdin); + getchar(); + system("cls"); + break; + } + }while(Val != 2); + }else + { + printf("ESTO ES LA INFORMACIÓN QUE EXISTE EN EL ARCHIVO.\n"); + rewind(f); + while(!feof(f)) + { + fgets(Aux, 98, f); + printf("%s", Aux); + } + printf("\n\n\nLISTO..."); + printf("Teclea ENTER para regresar al menú, por favor..."); + fflush(stdin); + getchar(); + } + fclose(f); + break; + case 4: + system("cls"); + printf("ADIÓS..."); + break; + default: + printf("\n\nERROR... DEBE SELECCIONAR UNA OPCIÓN VALIDA."); + printf("\nINTENTE DE NUEVO..."); + printf("\n\n\nTeclea ENTER para regresar al menú, por favor..."); + fflush(stdin); + getchar(); + system("cls"); + break; + } + }while(Val != 4); + + + printf("\n\n\nTeclea ENTER para salir por favor..."); + fflush(stdin); + getchar(); + return 0; +} +//-----------------Cambiamos el salto de linea que nos agrega el fgets a Nombre--------- +void Cambio(char N[]) +{ + for(int i = 0; i < 50; i++) + { + if(N[i] == '\n') + { + N[i] = '\0'; + } + } +} +//---------------------Función para validar calificaciones---------------- +double ValidarCalificacion(int Val) +{ + double Prueba; + switch(Val) + { + case 1: + printf("\nIngrese por favor su calificación del parcial 1 alumn@: "); + scanf("%lf", &Prueba); + if(Prueba <= 100 && Prueba >= 0) + { + return Prueba; + }else{ + printf("\nERROR, debe ingresar un valor mayor o igual a 0 y menor o igual a 100.\nIntente de nuevo, por favor..."); + printf("\nTeclea ENTER para continuar, por favor..."); + getchar(); + Prueba = ValidarCalificacion(1); + return Prueba; + } + break; + case 2: + printf("\nIngrese por favor su calificación del parcial 2 alumn@: "); + scanf("%lf", &Prueba); + if(Prueba <= 100 && Prueba >= 0) + { + return Prueba; + }else{ + printf("\nERROR, debe ingresar un valor mayor o igual a 0 y menor o igual a 100.\nIntente de nuevo, por favor..."); + printf("\nTeclea ENTER para continuar, por favor..."); + getchar(); + Prueba = ValidarCalificacion(2); + return Prueba; + } + break; + case 3: + printf("\nIngrese por favor su calificación del proyecto alumn@: "); + scanf("%lf", &Prueba); + if(Prueba <= 100 && Prueba >= 0) + { + return Prueba; + }else{ + printf("\nERROR, debe ingresar un valor mayor o igual a 0 y menor o igual a 100.\nIntente de nuevo, por favor..."); + printf("\nTeclea ENTER para continuar, por favor..."); + getchar(); + Prueba = ValidarCalificacion(3); + return Prueba; + } + break; + default: + system("cls"); + printf("\n\n\nERROR..."); + printf("\nTeclea ENTER para salir por favor..."); + fflush(stdin); + getchar(); + exit(-1); + break; + } +} +//-------------------Función para validar si existe ya un archivo-------------- +bool ValidarExistencia(FILE *f) +{ + fseek( f, 0, SEEK_END ); + if (ftell(f) == 0) + { + return false; + } + return true; +} diff --git "a/Equipo NetCode/Propuesta de Proyecto Final/C\303\263mo funciona.txt" "b/Equipo NetCode/Propuesta de Proyecto Final/C\303\263mo funciona.txt" new file mode 100644 index 0000000..8334690 --- /dev/null +++ "b/Equipo NetCode/Propuesta de Proyecto Final/C\303\263mo funciona.txt" @@ -0,0 +1,26 @@ + PROGRAMACIÓN ESTRUCTURADA +POR: +- Víctor Cauich Davalos +- Alan Josue Barón Pat + +Al ejectuar el programa le deberá salir un LOGIN, esto para validar a cada usuario. Los trabajadores guardados son: + + USUARIOS | CONTRASEÑAS | ¿ES ADMINISTRADOR? | NOMBRE(S) | APELLIDO(S) | + VictorEnrique | 17042000 | 1 | Victor Enrique | Cauich Davalos | + EmilioRejon | 12345678910 | 1 | Emilio | Rejón | + JuanPerez | 123456 | 0 | Juan | Perez Uc | + Rossmarth28 | 28081999 | 0 | Rossmarth Celina | Mercedes Marrero | + Celina | Comili17 | 1 | Celina | Mercedes Canché | + +Alguna de estos usuarios con sus respectivas contraseñas debe usar, sino no le dejará entrar, ya luego, dependiendo +de que si el usuario con el que accedió es administrador o un simple trabajador le desplegará un menú, la cual no +es igual para un administrador que para un trabajador, y ya luego dependiendo del menú puede ya probar el programa. + +<> + +Por otro lado, en el pdf que se llama "Avances_Netcode.pdf" ese es el reporte que se solicitó. + +Que tenga buen día... \ No newline at end of file diff --git a/Equipo NetCode/Propuesta de Proyecto Final/Datos/LOGIN.txt b/Equipo NetCode/Propuesta de Proyecto Final/Datos/LOGIN.txt new file mode 100644 index 0000000..85bd175 --- /dev/null +++ b/Equipo NetCode/Propuesta de Proyecto Final/Datos/LOGIN.txt @@ -0,0 +1,6 @@ +USUARIO/CONTRASEÑAS/ADMINISTRADOR O TRABAJADOR/NOMBRE(S)/APELLIDOS +VictorEnrique,17042000,1,Victor Enrique,Cauich Davalos, +EmilioRejon,12345678910,1,Emilio,Rejón, +JuanPerez,123456,0,Juan,Perez Uc, +Rossmarth28,28081999,0,Rossmarth Celina,Mercedes Marrero, +Celina,Comili17,1,Celina,Mercedes Canché, \ No newline at end of file diff --git a/Equipo NetCode/Propuesta de Proyecto Final/Diagrama/DiagramaCasosPVLAMARQUESITERIA.jpg b/Equipo NetCode/Propuesta de Proyecto Final/Diagrama/DiagramaCasosPVLAMARQUESITERIA.jpg new file mode 100644 index 0000000..ee6b5cc Binary files /dev/null and b/Equipo NetCode/Propuesta de Proyecto Final/Diagrama/DiagramaCasosPVLAMARQUESITERIA.jpg differ diff --git a/Equipo NetCode/Propuesta de Proyecto Final/Diagrama/DiagramaCasosPVLAMARQUESITERIA.mdj b/Equipo NetCode/Propuesta de Proyecto Final/Diagrama/DiagramaCasosPVLAMARQUESITERIA.mdj new file mode 100644 index 0000000..b7ad61c --- /dev/null +++ b/Equipo NetCode/Propuesta de Proyecto Final/Diagrama/DiagramaCasosPVLAMARQUESITERIA.mdj @@ -0,0 +1,8989 @@ +{ + "_type": "Project", + "_id": "AAAAAAFF+h6SjaM2Hec=", + "name": "Untitled", + "ownedElements": [ + { + "_type": "UMLModel", + "_id": "AAAAAAFF+qBWK6M3Z8Y=", + "_parent": { + "$ref": "AAAAAAFF+h6SjaM2Hec=" + }, + "name": "Model", + "ownedElements": [ + { + "_type": "UMLClassDiagram", + "_id": "AAAAAAFF+qBtyKM79qY=", + "_parent": { + "$ref": "AAAAAAFF+qBWK6M3Z8Y=" + }, + "name": "Main", + "defaultDiagram": true + } + ] + }, + { + "_type": "UMLModel", + "_id": "AAAAAAFxHzFaKLAFx/M=", + "_parent": { + "$ref": "AAAAAAFF+h6SjaM2Hec=" + }, + "name": "Model1", + "ownedElements": [ + { + "_type": "UMLUseCaseDiagram", + "_id": "AAAAAAFxHzFaKrAGXvE=", + "_parent": { + "$ref": "AAAAAAFxHzFaKLAFx/M=" + }, + "name": "UseCaseDiagram1", + "ownedViews": [ + { + "_type": "UMLActorView", + "_id": "AAAAAAFxHzF3wbAMxHM=", + "_parent": { + "$ref": "AAAAAAFxHzFaKrAGXvE=" + }, + "model": { + "$ref": "AAAAAAFxHzF3wLAKATg=" + }, + "subViews": [ + { + "_type": "UMLNameCompartmentView", + "_id": "AAAAAAFxHzF3wbANO1I=", + "_parent": { + "$ref": "AAAAAAFxHzF3wbAMxHM=" + }, + "model": { + "$ref": "AAAAAAFxHzF3wLAKATg=" + }, + "subViews": [ + { + "_type": "LabelView", + "_id": "AAAAAAFxHzF3wbAOHiI=", + "_parent": { + "$ref": "AAAAAAFxHzF3wbANO1I=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 112, + "top": 736, + "height": 13 + }, + { + "_type": "LabelView", + "_id": "AAAAAAFxHzF3wrAPvIo=", + "_parent": { + "$ref": "AAAAAAFxHzF3wbANO1I=" + }, + "font": "Arial;13;1", + "left": 189, + "top": 573, + "width": 163.24267578125, + "height": 13, + "text": "Administrador o Vendedor" + }, + { + "_type": "LabelView", + "_id": "AAAAAAFxHzF3wrAQkxc=", + "_parent": { + "$ref": "AAAAAAFxHzF3wbANO1I=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 112, + "top": 736, + "width": 80.9072265625, + "height": 13, + "text": "(from Model1)" + }, + { + "_type": "LabelView", + "_id": "AAAAAAFxHzF3wrAR0hg=", + "_parent": { + "$ref": "AAAAAAFxHzF3wbANO1I=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 112, + "top": 736, + "height": 13, + "horizontalAlignment": 1 + } + ], + "font": "Arial;13;0", + "left": 184, + "top": 566, + "width": 173.24267578125, + "height": 25, + "stereotypeLabel": { + "$ref": "AAAAAAFxHzF3wbAOHiI=" + }, + "nameLabel": { + "$ref": "AAAAAAFxHzF3wrAPvIo=" + }, + "namespaceLabel": { + "$ref": "AAAAAAFxHzF3wrAQkxc=" + }, + "propertyLabel": { + "$ref": "AAAAAAFxHzF3wrAR0hg=" + } + }, + { + "_type": "UMLAttributeCompartmentView", + "_id": "AAAAAAFxHzF3wrASE6k=", + "_parent": { + "$ref": "AAAAAAFxHzF3wbAMxHM=" + }, + "model": { + "$ref": "AAAAAAFxHzF3wLAKATg=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 56, + "top": 368, + "width": 10, + "height": 10 + }, + { + "_type": "UMLOperationCompartmentView", + "_id": "AAAAAAFxHzF3w7AT56I=", + "_parent": { + "$ref": "AAAAAAFxHzF3wbAMxHM=" + }, + "model": { + "$ref": "AAAAAAFxHzF3wLAKATg=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 56, + "top": 368, + "width": 10, + "height": 10 + }, + { + "_type": "UMLReceptionCompartmentView", + "_id": "AAAAAAFxHzF3w7AUG3Y=", + "_parent": { + "$ref": "AAAAAAFxHzF3wbAMxHM=" + }, + "model": { + "$ref": "AAAAAAFxHzF3wLAKATg=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 56, + "top": 368, + "width": 10, + "height": 10 + }, + { + "_type": "UMLTemplateParameterCompartmentView", + "_id": "AAAAAAFxHzF3w7AVddI=", + "_parent": { + "$ref": "AAAAAAFxHzF3wbAMxHM=" + }, + "model": { + "$ref": "AAAAAAFxHzF3wLAKATg=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 56, + "top": 368, + "width": 10, + "height": 10 + } + ], + "font": "Arial;13;0", + "containerChangeable": true, + "left": 184, + "top": 504, + "width": 173.24267578125, + "height": 88, + "nameCompartment": { + "$ref": "AAAAAAFxHzF3wbANO1I=" + }, + "suppressAttributes": true, + "suppressOperations": true, + "attributeCompartment": { + "$ref": "AAAAAAFxHzF3wrASE6k=" + }, + "operationCompartment": { + "$ref": "AAAAAAFxHzF3w7AT56I=" + }, + "receptionCompartment": { + "$ref": "AAAAAAFxHzF3w7AUG3Y=" + }, + "templateParameterCompartment": { + "$ref": "AAAAAAFxHzF3w7AVddI=" + } + }, + { + "_type": "UMLActorView", + "_id": "AAAAAAFxHzHYobA2OSg=", + "_parent": { + "$ref": "AAAAAAFxHzFaKrAGXvE=" + }, + "model": { + "$ref": "AAAAAAFxHzHYobA0p4M=" + }, + "subViews": [ + { + "_type": "UMLNameCompartmentView", + "_id": "AAAAAAFxHzHYobA3MbM=", + "_parent": { + "$ref": "AAAAAAFxHzHYobA2OSg=" + }, + "model": { + "$ref": "AAAAAAFxHzHYobA0p4M=" + }, + "subViews": [ + { + "_type": "LabelView", + "_id": "AAAAAAFxHzHYorA4n9o=", + "_parent": { + "$ref": "AAAAAAFxHzHYobA3MbM=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 2442.68359375, + "top": 208, + "height": 13 + }, + { + "_type": "LabelView", + "_id": "AAAAAAFxHzHYorA54cM=", + "_parent": { + "$ref": "AAAAAAFxHzHYobA3MbM=" + }, + "font": "Arial;13;1", + "left": 1365, + "top": 534, + "width": 43.341796875, + "height": 13, + "text": "Cliente" + }, + { + "_type": "LabelView", + "_id": "AAAAAAFxHzHYorA6kMc=", + "_parent": { + "$ref": "AAAAAAFxHzHYobA3MbM=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 2442.68359375, + "top": 208, + "width": 80.9072265625, + "height": 13, + "text": "(from Model1)" + }, + { + "_type": "LabelView", + "_id": "AAAAAAFxHzHYorA7bbY=", + "_parent": { + "$ref": "AAAAAAFxHzHYobA3MbM=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 2442.68359375, + "top": 208, + "height": 13, + "horizontalAlignment": 1 + } + ], + "font": "Arial;13;0", + "left": 1360, + "top": 527, + "width": 53.341796875, + "height": 25, + "stereotypeLabel": { + "$ref": "AAAAAAFxHzHYorA4n9o=" + }, + "nameLabel": { + "$ref": "AAAAAAFxHzHYorA54cM=" + }, + "namespaceLabel": { + "$ref": "AAAAAAFxHzHYorA6kMc=" + }, + "propertyLabel": { + "$ref": "AAAAAAFxHzHYorA7bbY=" + } + }, + { + "_type": "UMLAttributeCompartmentView", + "_id": "AAAAAAFxHzHYorA8lpM=", + "_parent": { + "$ref": "AAAAAAFxHzHYobA2OSg=" + }, + "model": { + "$ref": "AAAAAAFxHzHYobA0p4M=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 1221.341796875, + "top": 104, + "width": 10, + "height": 10 + }, + { + "_type": "UMLOperationCompartmentView", + "_id": "AAAAAAFxHzHYorA9qOg=", + "_parent": { + "$ref": "AAAAAAFxHzHYobA2OSg=" + }, + "model": { + "$ref": "AAAAAAFxHzHYobA0p4M=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 1221.341796875, + "top": 104, + "width": 10, + "height": 10 + }, + { + "_type": "UMLReceptionCompartmentView", + "_id": "AAAAAAFxHzHYorA+q/I=", + "_parent": { + "$ref": "AAAAAAFxHzHYobA2OSg=" + }, + "model": { + "$ref": "AAAAAAFxHzHYobA0p4M=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 1221.341796875, + "top": 104, + "width": 10, + "height": 10 + }, + { + "_type": "UMLTemplateParameterCompartmentView", + "_id": "AAAAAAFxHzHYo7A/eNY=", + "_parent": { + "$ref": "AAAAAAFxHzHYobA2OSg=" + }, + "model": { + "$ref": "AAAAAAFxHzHYobA0p4M=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 1221.341796875, + "top": 104, + "width": 10, + "height": 10 + } + ], + "font": "Arial;13;0", + "containerChangeable": true, + "left": 1360, + "top": 464, + "width": 53.341796875, + "height": 89, + "nameCompartment": { + "$ref": "AAAAAAFxHzHYobA3MbM=" + }, + "suppressAttributes": true, + "suppressOperations": true, + "attributeCompartment": { + "$ref": "AAAAAAFxHzHYorA8lpM=" + }, + "operationCompartment": { + "$ref": "AAAAAAFxHzHYorA9qOg=" + }, + "receptionCompartment": { + "$ref": "AAAAAAFxHzHYorA+q/I=" + }, + "templateParameterCompartment": { + "$ref": "AAAAAAFxHzHYo7A/eNY=" + } + }, + { + "_type": "UMLUseCaseView", + "_id": "AAAAAAFxHzVyDbBoAzY=", + "_parent": { + "$ref": "AAAAAAFxHzFaKrAGXvE=" + }, + "model": { + "$ref": "AAAAAAFxHzVyDbBm3Q0=" + }, + "subViews": [ + { + "_type": "UMLNameCompartmentView", + "_id": "AAAAAAFxHzVyDbBpt1Q=", + "_parent": { + "$ref": "AAAAAAFxHzVyDbBoAzY=" + }, + "model": { + "$ref": "AAAAAAFxHzVyDbBm3Q0=" + }, + "subViews": [ + { + "_type": "LabelView", + "_id": "AAAAAAFxHzVyDrBqHOU=", + "_parent": { + "$ref": "AAAAAAFxHzVyDbBpt1Q=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 864, + "top": 576, + "height": 13 + }, + { + "_type": "LabelView", + "_id": "AAAAAAFxHzVyDrBrQaU=", + "_parent": { + "$ref": "AAAAAAFxHzVyDbBpt1Q=" + }, + "font": "Arial;13;1", + "left": 821, + "top": 350.5, + "width": 65, + "height": 13, + "text": "Loguearse" + }, + { + "_type": "LabelView", + "_id": "AAAAAAFxHzVyDrBsTKk=", + "_parent": { + "$ref": "AAAAAAFxHzVyDbBpt1Q=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 864, + "top": 576, + "width": 80.9072265625, + "height": 13, + "text": "(from Model1)" + }, + { + "_type": "LabelView", + "_id": "AAAAAAFxHzVyDrBt/VU=", + "_parent": { + "$ref": "AAAAAAFxHzVyDbBpt1Q=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 864, + "top": 576, + "height": 13, + "horizontalAlignment": 1 + } + ], + "font": "Arial;13;0", + "left": 816, + "top": 343.5, + "width": 75.74267578125, + "height": 25, + "stereotypeLabel": { + "$ref": "AAAAAAFxHzVyDrBqHOU=" + }, + "nameLabel": { + "$ref": "AAAAAAFxHzVyDrBrQaU=" + }, + "namespaceLabel": { + "$ref": "AAAAAAFxHzVyDrBsTKk=" + }, + "propertyLabel": { + "$ref": "AAAAAAFxHzVyDrBt/VU=" + } + }, + { + "_type": "UMLAttributeCompartmentView", + "_id": "AAAAAAFxHzVyDrBuSxk=", + "_parent": { + "$ref": "AAAAAAFxHzVyDbBoAzY=" + }, + "model": { + "$ref": "AAAAAAFxHzVyDbBm3Q0=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 600, + "top": 288, + "width": 10, + "height": 10 + }, + { + "_type": "UMLOperationCompartmentView", + "_id": "AAAAAAFxHzVyDrBv3e4=", + "_parent": { + "$ref": "AAAAAAFxHzVyDbBoAzY=" + }, + "model": { + "$ref": "AAAAAAFxHzVyDbBm3Q0=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 600, + "top": 288, + "width": 10, + "height": 10 + }, + { + "_type": "UMLReceptionCompartmentView", + "_id": "AAAAAAFxHzVyDrBwBD0=", + "_parent": { + "$ref": "AAAAAAFxHzVyDbBoAzY=" + }, + "model": { + "$ref": "AAAAAAFxHzVyDbBm3Q0=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 600, + "top": 288, + "width": 10, + "height": 10 + }, + { + "_type": "UMLTemplateParameterCompartmentView", + "_id": "AAAAAAFxHzVyD7Bx+U4=", + "_parent": { + "$ref": "AAAAAAFxHzVyDbBoAzY=" + }, + "model": { + "$ref": "AAAAAAFxHzVyDbBm3Q0=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 600, + "top": 288, + "width": 10, + "height": 10 + }, + { + "_type": "UMLExtensionPointCompartmentView", + "_id": "AAAAAAFxHzVyD7ByY2w=", + "_parent": { + "$ref": "AAAAAAFxHzVyDbBoAzY=" + }, + "model": { + "$ref": "AAAAAAFxHzVyDbBm3Q0=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 600, + "top": 288, + "width": 10, + "height": 10 + } + ], + "font": "Arial;13;0", + "containerChangeable": true, + "left": 800, + "top": 336, + "width": 107, + "height": 41, + "nameCompartment": { + "$ref": "AAAAAAFxHzVyDbBpt1Q=" + }, + "suppressAttributes": true, + "suppressOperations": true, + "attributeCompartment": { + "$ref": "AAAAAAFxHzVyDrBuSxk=" + }, + "operationCompartment": { + "$ref": "AAAAAAFxHzVyDrBv3e4=" + }, + "receptionCompartment": { + "$ref": "AAAAAAFxHzVyDrBwBD0=" + }, + "templateParameterCompartment": { + "$ref": "AAAAAAFxHzVyD7Bx+U4=" + }, + "extensionPointCompartment": { + "$ref": "AAAAAAFxHzVyD7ByY2w=" + } + }, + { + "_type": "UMLUseCaseView", + "_id": "AAAAAAFxHzXarbCacYY=", + "_parent": { + "$ref": "AAAAAAFxHzFaKrAGXvE=" + }, + "model": { + "$ref": "AAAAAAFxHzXarbCYYJQ=" + }, + "subViews": [ + { + "_type": "UMLNameCompartmentView", + "_id": "AAAAAAFxHzXarbCbLaI=", + "_parent": { + "$ref": "AAAAAAFxHzXarbCacYY=" + }, + "model": { + "$ref": "AAAAAAFxHzXarbCYYJQ=" + }, + "subViews": [ + { + "_type": "LabelView", + "_id": "AAAAAAFxHzXarbCcj58=", + "_parent": { + "$ref": "AAAAAAFxHzXarbCbLaI=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 128, + "top": 224, + "height": 13 + }, + { + "_type": "LabelView", + "_id": "AAAAAAFxHzXarbCdIDg=", + "_parent": { + "$ref": "AAAAAAFxHzXarbCbLaI=" + }, + "font": "Arial;13;1", + "left": 484, + "top": 275.5, + "width": 62, + "height": 13, + "text": "Vender" + }, + { + "_type": "LabelView", + "_id": "AAAAAAFxHzXarrCePWk=", + "_parent": { + "$ref": "AAAAAAFxHzXarbCbLaI=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 128, + "top": 224, + "width": 80.9072265625, + "height": 13, + "text": "(from Model1)" + }, + { + "_type": "LabelView", + "_id": "AAAAAAFxHzXarrCfdtI=", + "_parent": { + "$ref": "AAAAAAFxHzXarbCbLaI=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 128, + "top": 224, + "height": 13, + "horizontalAlignment": 1 + } + ], + "font": "Arial;13;0", + "left": 479, + "top": 268.5, + "width": 72, + "height": 25, + "stereotypeLabel": { + "$ref": "AAAAAAFxHzXarbCcj58=" + }, + "nameLabel": { + "$ref": "AAAAAAFxHzXarbCdIDg=" + }, + "namespaceLabel": { + "$ref": "AAAAAAFxHzXarrCePWk=" + }, + "propertyLabel": { + "$ref": "AAAAAAFxHzXarrCfdtI=" + } + }, + { + "_type": "UMLAttributeCompartmentView", + "_id": "AAAAAAFxHzXarrCgThU=", + "_parent": { + "$ref": "AAAAAAFxHzXarbCacYY=" + }, + "model": { + "$ref": "AAAAAAFxHzXarbCYYJQ=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 64, + "top": 112, + "width": 10, + "height": 10 + }, + { + "_type": "UMLOperationCompartmentView", + "_id": "AAAAAAFxHzXarrChX+I=", + "_parent": { + "$ref": "AAAAAAFxHzXarbCacYY=" + }, + "model": { + "$ref": "AAAAAAFxHzXarbCYYJQ=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 64, + "top": 112, + "width": 10, + "height": 10 + }, + { + "_type": "UMLReceptionCompartmentView", + "_id": "AAAAAAFxHzXarrCiDoI=", + "_parent": { + "$ref": "AAAAAAFxHzXarbCacYY=" + }, + "model": { + "$ref": "AAAAAAFxHzXarbCYYJQ=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 64, + "top": 112, + "width": 10, + "height": 10 + }, + { + "_type": "UMLTemplateParameterCompartmentView", + "_id": "AAAAAAFxHzXarrCjBHo=", + "_parent": { + "$ref": "AAAAAAFxHzXarbCacYY=" + }, + "model": { + "$ref": "AAAAAAFxHzXarbCYYJQ=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 64, + "top": 112, + "width": 10, + "height": 10 + }, + { + "_type": "UMLExtensionPointCompartmentView", + "_id": "AAAAAAFxHzXarrCknKk=", + "_parent": { + "$ref": "AAAAAAFxHzXarbCacYY=" + }, + "model": { + "$ref": "AAAAAAFxHzXarbCYYJQ=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 64, + "top": 112, + "width": 10, + "height": 10 + } + ], + "font": "Arial;13;0", + "containerChangeable": true, + "left": 464, + "top": 264, + "width": 102, + "height": 35, + "nameCompartment": { + "$ref": "AAAAAAFxHzXarbCbLaI=" + }, + "suppressAttributes": true, + "suppressOperations": true, + "attributeCompartment": { + "$ref": "AAAAAAFxHzXarrCgThU=" + }, + "operationCompartment": { + "$ref": "AAAAAAFxHzXarrChX+I=" + }, + "receptionCompartment": { + "$ref": "AAAAAAFxHzXarrCiDoI=" + }, + "templateParameterCompartment": { + "$ref": "AAAAAAFxHzXarrCjBHo=" + }, + "extensionPointCompartment": { + "$ref": "AAAAAAFxHzXarrCknKk=" + } + }, + { + "_type": "UMLAssociationView", + "_id": "AAAAAAFxHzYmxbDMmNw=", + "_parent": { + "$ref": "AAAAAAFxHzFaKrAGXvE=" + }, + "model": { + "$ref": "AAAAAAFxHzYmxLDIleo=" + }, + "subViews": [ + { + "_type": "EdgeLabelView", + "_id": "AAAAAAFxHzYmxrDNaS4=", + "_parent": { + "$ref": "AAAAAAFxHzYmxbDMmNw=" + }, + "model": { + "$ref": "AAAAAAFxHzYmxLDIleo=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 391, + "top": 384, + "height": 13, + "alpha": 1.5707963267948966, + "distance": 15, + "hostEdge": { + "$ref": "AAAAAAFxHzYmxbDMmNw=" + }, + "edgePosition": 1 + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAFxHzYmxrDOE74=", + "_parent": { + "$ref": "AAAAAAFxHzYmxbDMmNw=" + }, + "model": { + "$ref": "AAAAAAFxHzYmxLDIleo=" + }, + "visible": null, + "font": "Arial;13;0", + "left": 380, + "top": 374, + "height": 13, + "alpha": 1.5707963267948966, + "distance": 30, + "hostEdge": { + "$ref": "AAAAAAFxHzYmxbDMmNw=" + }, + "edgePosition": 1 + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAFxHzYmx7DPGx0=", + "_parent": { + "$ref": "AAAAAAFxHzYmxbDMmNw=" + }, + "model": { + "$ref": "AAAAAAFxHzYmxLDIleo=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 414, + "top": 405, + "height": 13, + "alpha": -1.5707963267948966, + "distance": 15, + "hostEdge": { + "$ref": "AAAAAAFxHzYmxbDMmNw=" + }, + "edgePosition": 1 + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAFxHzYmx7DQNxQ=", + "_parent": { + "$ref": "AAAAAAFxHzYmxbDMmNw=" + }, + "model": { + "$ref": "AAAAAAFxHzYmxLDJafM=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 316, + "top": 467, + "height": 13, + "alpha": 0.5235987755982988, + "distance": 30, + "hostEdge": { + "$ref": "AAAAAAFxHzYmxbDMmNw=" + }, + "edgePosition": 2 + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAFxHzYmx7DRPME=", + "_parent": { + "$ref": "AAAAAAFxHzYmxbDMmNw=" + }, + "model": { + "$ref": "AAAAAAFxHzYmxLDJafM=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 308, + "top": 457, + "height": 13, + "alpha": 0.7853981633974483, + "distance": 40, + "hostEdge": { + "$ref": "AAAAAAFxHzYmxbDMmNw=" + }, + "edgePosition": 2 + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAFxHzYmx7DSBJ0=", + "_parent": { + "$ref": "AAAAAAFxHzYmxbDMmNw=" + }, + "model": { + "$ref": "AAAAAAFxHzYmxLDJafM=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 333, + "top": 489, + "height": 13, + "alpha": -0.5235987755982988, + "distance": 25, + "hostEdge": { + "$ref": "AAAAAAFxHzYmxbDMmNw=" + }, + "edgePosition": 2 + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAFxHzYmx7DTSLQ=", + "_parent": { + "$ref": "AAAAAAFxHzYmxbDMmNw=" + }, + "model": { + "$ref": "AAAAAAFxHzYmxLDK4uA=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 468, + "top": 302, + "height": 13, + "alpha": -0.5235987755982988, + "distance": 30, + "hostEdge": { + "$ref": "AAAAAAFxHzYmxbDMmNw=" + } + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAFxHzYmyLDU5rU=", + "_parent": { + "$ref": "AAAAAAFxHzYmxbDMmNw=" + }, + "model": { + "$ref": "AAAAAAFxHzYmxLDK4uA=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 457, + "top": 294, + "height": 13, + "alpha": -0.7853981633974483, + "distance": 40, + "hostEdge": { + "$ref": "AAAAAAFxHzYmxbDMmNw=" + } + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAFxHzYmyLDVzZA=", + "_parent": { + "$ref": "AAAAAAFxHzYmxbDMmNw=" + }, + "model": { + "$ref": "AAAAAAFxHzYmxLDK4uA=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 491, + "top": 317, + "height": 13, + "alpha": 0.5235987755982988, + "distance": 25, + "hostEdge": { + "$ref": "AAAAAAFxHzYmxbDMmNw=" + } + }, + { + "_type": "UMLQualifierCompartmentView", + "_id": "AAAAAAFxHzYmyLDWXPQ=", + "_parent": { + "$ref": "AAAAAAFxHzYmxbDMmNw=" + }, + "model": { + "$ref": "AAAAAAFxHzYmxLDJafM=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 72, + "top": 120, + "width": 10, + "height": 10 + }, + { + "_type": "UMLQualifierCompartmentView", + "_id": "AAAAAAFxHzYmyLDXr0M=", + "_parent": { + "$ref": "AAAAAAFxHzYmxbDMmNw=" + }, + "model": { + "$ref": "AAAAAAFxHzYmxLDK4uA=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 72, + "top": 120, + "width": 10, + "height": 10 + } + ], + "font": "Arial;13;0", + "head": { + "$ref": "AAAAAAFxHzXarbCacYY=" + }, + "tail": { + "$ref": "AAAAAAFxHzF3wbAMxHM=" + }, + "lineStyle": 1, + "points": "310:503;497:299", + "showVisibility": true, + "nameLabel": { + "$ref": "AAAAAAFxHzYmxrDNaS4=" + }, + "stereotypeLabel": { + "$ref": "AAAAAAFxHzYmxrDOE74=" + }, + "propertyLabel": { + "$ref": "AAAAAAFxHzYmx7DPGx0=" + }, + "tailRoleNameLabel": { + "$ref": "AAAAAAFxHzYmx7DQNxQ=" + }, + "tailPropertyLabel": { + "$ref": "AAAAAAFxHzYmx7DRPME=" + }, + "tailMultiplicityLabel": { + "$ref": "AAAAAAFxHzYmx7DSBJ0=" + }, + "headRoleNameLabel": { + "$ref": "AAAAAAFxHzYmx7DTSLQ=" + }, + "headPropertyLabel": { + "$ref": "AAAAAAFxHzYmyLDU5rU=" + }, + "headMultiplicityLabel": { + "$ref": "AAAAAAFxHzYmyLDVzZA=" + }, + "tailQualifiersCompartment": { + "$ref": "AAAAAAFxHzYmyLDWXPQ=" + }, + "headQualifiersCompartment": { + "$ref": "AAAAAAFxHzYmyLDXr0M=" + } + }, + { + "_type": "UMLIncludeView", + "_id": "AAAAAAFxHzZHGbENu58=", + "_parent": { + "$ref": "AAAAAAFxHzFaKrAGXvE=" + }, + "model": { + "$ref": "AAAAAAFxHzZHGLELyh4=" + }, + "subViews": [ + { + "_type": "EdgeLabelView", + "_id": "AAAAAAFxHzZHGbEO9Kg=", + "_parent": { + "$ref": "AAAAAAFxHzZHGbENu58=" + }, + "model": { + "$ref": "AAAAAAFxHzZHGLELyh4=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 512, + "top": 315, + "height": 13, + "alpha": 1.5707963267948966, + "distance": 15, + "hostEdge": { + "$ref": "AAAAAAFxHzZHGbENu58=" + }, + "edgePosition": 1 + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAFxHzZHGbEPenM=", + "_parent": { + "$ref": "AAAAAAFxHzZHGbENu58=" + }, + "model": { + "$ref": "AAAAAAFxHzZHGLELyh4=" + }, + "font": "Arial;13;0", + "left": 552, + "top": 320, + "width": 55.65625, + "height": 13, + "alpha": 0.20732431630895443, + "distance": 67.7421582177598, + "hostEdge": { + "$ref": "AAAAAAFxHzZHGbENu58=" + }, + "edgePosition": 1, + "text": "«include»" + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAFxHzZHGbEQ5gc=", + "_parent": { + "$ref": "AAAAAAFxHzZHGbENu58=" + }, + "model": { + "$ref": "AAAAAAFxHzZHGLELyh4=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 511, + "top": 344, + "height": 13, + "alpha": -1.5707963267948966, + "distance": 15, + "hostEdge": { + "$ref": "AAAAAAFxHzZHGbENu58=" + }, + "edgePosition": 1 + } + ], + "font": "Arial;13;0", + "head": { + "$ref": "AAAAAAFxHzVyDbBoAzY=" + }, + "tail": { + "$ref": "AAAAAAFxHzXarbCacYY=" + }, + "lineStyle": 1, + "points": "513:299;512:336;799:353", + "showVisibility": true, + "nameLabel": { + "$ref": "AAAAAAFxHzZHGbEO9Kg=" + }, + "stereotypeLabel": { + "$ref": "AAAAAAFxHzZHGbEPenM=" + }, + "propertyLabel": { + "$ref": "AAAAAAFxHzZHGbEQ5gc=" + } + }, + { + "_type": "UMLUseCaseView", + "_id": "AAAAAAFxHznUKLF1whY=", + "_parent": { + "$ref": "AAAAAAFxHzFaKrAGXvE=" + }, + "model": { + "$ref": "AAAAAAFxHznUKLFzCGI=" + }, + "subViews": [ + { + "_type": "UMLNameCompartmentView", + "_id": "AAAAAAFxHznUKbF2CVM=", + "_parent": { + "$ref": "AAAAAAFxHznUKLF1whY=" + }, + "model": { + "$ref": "AAAAAAFxHznUKLFzCGI=" + }, + "subViews": [ + { + "_type": "LabelView", + "_id": "AAAAAAFxHznUKbF3mx4=", + "_parent": { + "$ref": "AAAAAAFxHznUKbF2CVM=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 64, + "top": 192, + "height": 13 + }, + { + "_type": "LabelView", + "_id": "AAAAAAFxHznUKbF4jz8=", + "_parent": { + "$ref": "AAAAAAFxHznUKbF2CVM=" + }, + "font": "Arial;13;1", + "left": 564.5, + "top": 195.5, + "width": 139, + "height": 13, + "text": "Seleccionar productos" + }, + { + "_type": "LabelView", + "_id": "AAAAAAFxHznUKbF5E1M=", + "_parent": { + "$ref": "AAAAAAFxHznUKbF2CVM=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 64, + "top": 192, + "width": 80.9072265625, + "height": 13, + "text": "(from Model1)" + }, + { + "_type": "LabelView", + "_id": "AAAAAAFxHznUKbF6gF8=", + "_parent": { + "$ref": "AAAAAAFxHznUKbF2CVM=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 64, + "top": 192, + "height": 13, + "horizontalAlignment": 1 + } + ], + "font": "Arial;13;0", + "left": 559.5, + "top": 188.5, + "width": 150.14990234375, + "height": 25, + "stereotypeLabel": { + "$ref": "AAAAAAFxHznUKbF3mx4=" + }, + "nameLabel": { + "$ref": "AAAAAAFxHznUKbF4jz8=" + }, + "namespaceLabel": { + "$ref": "AAAAAAFxHznUKbF5E1M=" + }, + "propertyLabel": { + "$ref": "AAAAAAFxHznUKbF6gF8=" + } + }, + { + "_type": "UMLAttributeCompartmentView", + "_id": "AAAAAAFxHznUKbF74dE=", + "_parent": { + "$ref": "AAAAAAFxHznUKLF1whY=" + }, + "model": { + "$ref": "AAAAAAFxHznUKLFzCGI=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 32, + "top": 96, + "width": 10, + "height": 10 + }, + { + "_type": "UMLOperationCompartmentView", + "_id": "AAAAAAFxHznUKrF8ro8=", + "_parent": { + "$ref": "AAAAAAFxHznUKLF1whY=" + }, + "model": { + "$ref": "AAAAAAFxHznUKLFzCGI=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 32, + "top": 96, + "width": 10, + "height": 10 + }, + { + "_type": "UMLReceptionCompartmentView", + "_id": "AAAAAAFxHznUKrF9D2g=", + "_parent": { + "$ref": "AAAAAAFxHznUKLF1whY=" + }, + "model": { + "$ref": "AAAAAAFxHznUKLFzCGI=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 32, + "top": 96, + "width": 10, + "height": 10 + }, + { + "_type": "UMLTemplateParameterCompartmentView", + "_id": "AAAAAAFxHznUKrF+970=", + "_parent": { + "$ref": "AAAAAAFxHznUKLF1whY=" + }, + "model": { + "$ref": "AAAAAAFxHznUKLFzCGI=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 32, + "top": 96, + "width": 10, + "height": 10 + }, + { + "_type": "UMLExtensionPointCompartmentView", + "_id": "AAAAAAFxHznUKrF/Cqk=", + "_parent": { + "$ref": "AAAAAAFxHznUKLF1whY=" + }, + "model": { + "$ref": "AAAAAAFxHznUKLFzCGI=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 32, + "top": 96, + "width": 10, + "height": 10 + } + ], + "font": "Arial;13;0", + "containerChangeable": true, + "left": 528, + "top": 184, + "width": 212, + "height": 35, + "nameCompartment": { + "$ref": "AAAAAAFxHznUKbF2CVM=" + }, + "suppressAttributes": true, + "suppressOperations": true, + "attributeCompartment": { + "$ref": "AAAAAAFxHznUKbF74dE=" + }, + "operationCompartment": { + "$ref": "AAAAAAFxHznUKrF8ro8=" + }, + "receptionCompartment": { + "$ref": "AAAAAAFxHznUKrF9D2g=" + }, + "templateParameterCompartment": { + "$ref": "AAAAAAFxHznUKrF+970=" + }, + "extensionPointCompartment": { + "$ref": "AAAAAAFxHznUKrF/Cqk=" + } + }, + { + "_type": "UMLIncludeView", + "_id": "AAAAAAFxHzo5i7HO98g=", + "_parent": { + "$ref": "AAAAAAFxHzFaKrAGXvE=" + }, + "model": { + "$ref": "AAAAAAFxHzo5irHMpiA=" + }, + "subViews": [ + { + "_type": "EdgeLabelView", + "_id": "AAAAAAFxHzo5i7HPPu8=", + "_parent": { + "$ref": "AAAAAAFxHzo5i7HO98g=" + }, + "model": { + "$ref": "AAAAAAFxHzo5irHMpiA=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 564, + "top": 222, + "height": 13, + "alpha": 1.5707963267948966, + "distance": 15, + "hostEdge": { + "$ref": "AAAAAAFxHzo5i7HO98g=" + }, + "edgePosition": 1 + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAFxHzo5i7HQXwM=", + "_parent": { + "$ref": "AAAAAAFxHzo5i7HO98g=" + }, + "model": { + "$ref": "AAAAAAFxHzo5irHMpiA=" + }, + "font": "Arial;13;0", + "left": 515, + "top": 226, + "width": 55.65625, + "height": 13, + "alpha": -3.995880660692551, + "distance": 31.953090617340916, + "hostEdge": { + "$ref": "AAAAAAFxHzo5i7HO98g=" + }, + "edgePosition": 1, + "text": "«include»" + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAFxHzo5i7HRem8=", + "_parent": { + "$ref": "AAAAAAFxHzo5i7HO98g=" + }, + "model": { + "$ref": "AAAAAAFxHzo5irHMpiA=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 581, + "top": 247, + "height": 13, + "alpha": -1.5707963267948966, + "distance": 15, + "hostEdge": { + "$ref": "AAAAAAFxHzo5i7HO98g=" + }, + "edgePosition": 1 + } + ], + "font": "Arial;13;0", + "head": { + "$ref": "AAAAAAFxHznUKLF1whY=" + }, + "tail": { + "$ref": "AAAAAAFxHzXarbCacYY=" + }, + "lineStyle": 1, + "points": "541:263;606:219", + "showVisibility": true, + "nameLabel": { + "$ref": "AAAAAAFxHzo5i7HPPu8=" + }, + "stereotypeLabel": { + "$ref": "AAAAAAFxHzo5i7HQXwM=" + }, + "propertyLabel": { + "$ref": "AAAAAAFxHzo5i7HRem8=" + } + }, + { + "_type": "UMLUseCaseView", + "_id": "AAAAAAFxHzrLDrIY+dQ=", + "_parent": { + "$ref": "AAAAAAFxHzFaKrAGXvE=" + }, + "model": { + "$ref": "AAAAAAFxHzrLDrIWkI0=" + }, + "subViews": [ + { + "_type": "UMLNameCompartmentView", + "_id": "AAAAAAFxHzrLDrIZbrM=", + "_parent": { + "$ref": "AAAAAAFxHzrLDrIY+dQ=" + }, + "model": { + "$ref": "AAAAAAFxHzrLDrIWkI0=" + }, + "subViews": [ + { + "_type": "LabelView", + "_id": "AAAAAAFxHzrLD7Ia8Ic=", + "_parent": { + "$ref": "AAAAAAFxHzrLDrIZbrM=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 544, + "top": 240, + "height": 13 + }, + { + "_type": "LabelView", + "_id": "AAAAAAFxHzrLD7Ibp6w=", + "_parent": { + "$ref": "AAAAAAFxHzrLDrIZbrM=" + }, + "font": "Arial;13;1", + "left": 974, + "top": 347.5, + "width": 71, + "height": 13, + "text": "Registrarse" + }, + { + "_type": "LabelView", + "_id": "AAAAAAFxHzrLD7Ic48U=", + "_parent": { + "$ref": "AAAAAAFxHzrLDrIZbrM=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 544, + "top": 240, + "width": 80.9072265625, + "height": 13, + "text": "(from Model1)" + }, + { + "_type": "LabelView", + "_id": "AAAAAAFxHzrLD7IddA8=", + "_parent": { + "$ref": "AAAAAAFxHzrLDrIZbrM=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 544, + "top": 240, + "height": 13, + "horizontalAlignment": 1 + } + ], + "font": "Arial;13;0", + "left": 969, + "top": 340.5, + "width": 81.5380859375, + "height": 25, + "stereotypeLabel": { + "$ref": "AAAAAAFxHzrLD7Ia8Ic=" + }, + "nameLabel": { + "$ref": "AAAAAAFxHzrLD7Ibp6w=" + }, + "namespaceLabel": { + "$ref": "AAAAAAFxHzrLD7Ic48U=" + }, + "propertyLabel": { + "$ref": "AAAAAAFxHzrLD7IddA8=" + } + }, + { + "_type": "UMLAttributeCompartmentView", + "_id": "AAAAAAFxHzrLD7Ie7QU=", + "_parent": { + "$ref": "AAAAAAFxHzrLDrIY+dQ=" + }, + "model": { + "$ref": "AAAAAAFxHzrLDrIWkI0=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 440, + "top": 120, + "width": 10, + "height": 10 + }, + { + "_type": "UMLOperationCompartmentView", + "_id": "AAAAAAFxHzrLD7Ifmmo=", + "_parent": { + "$ref": "AAAAAAFxHzrLDrIY+dQ=" + }, + "model": { + "$ref": "AAAAAAFxHzrLDrIWkI0=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 440, + "top": 120, + "width": 10, + "height": 10 + }, + { + "_type": "UMLReceptionCompartmentView", + "_id": "AAAAAAFxHzrLD7IguUE=", + "_parent": { + "$ref": "AAAAAAFxHzrLDrIY+dQ=" + }, + "model": { + "$ref": "AAAAAAFxHzrLDrIWkI0=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 440, + "top": 120, + "width": 10, + "height": 10 + }, + { + "_type": "UMLTemplateParameterCompartmentView", + "_id": "AAAAAAFxHzrLD7IhrMc=", + "_parent": { + "$ref": "AAAAAAFxHzrLDrIY+dQ=" + }, + "model": { + "$ref": "AAAAAAFxHzrLDrIWkI0=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 440, + "top": 120, + "width": 10, + "height": 10 + }, + { + "_type": "UMLExtensionPointCompartmentView", + "_id": "AAAAAAFxHzrLELIixF4=", + "_parent": { + "$ref": "AAAAAAFxHzrLDrIY+dQ=" + }, + "model": { + "$ref": "AAAAAAFxHzrLDrIWkI0=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 440, + "top": 120, + "width": 10, + "height": 10 + } + ], + "font": "Arial;13;0", + "containerChangeable": true, + "left": 952, + "top": 336, + "width": 115, + "height": 35, + "nameCompartment": { + "$ref": "AAAAAAFxHzrLDrIZbrM=" + }, + "suppressAttributes": true, + "suppressOperations": true, + "attributeCompartment": { + "$ref": "AAAAAAFxHzrLD7Ie7QU=" + }, + "operationCompartment": { + "$ref": "AAAAAAFxHzrLD7Ifmmo=" + }, + "receptionCompartment": { + "$ref": "AAAAAAFxHzrLD7IguUE=" + }, + "templateParameterCompartment": { + "$ref": "AAAAAAFxHzrLD7IhrMc=" + }, + "extensionPointCompartment": { + "$ref": "AAAAAAFxHzrLELIixF4=" + } + }, + { + "_type": "UMLIncludeView", + "_id": "AAAAAAFxHzrtNbJSfvg=", + "_parent": { + "$ref": "AAAAAAFxHzFaKrAGXvE=" + }, + "model": { + "$ref": "AAAAAAFxHzrtNbJQo/w=" + }, + "subViews": [ + { + "_type": "EdgeLabelView", + "_id": "AAAAAAFxHzrtNbJTAAA=", + "_parent": { + "$ref": "AAAAAAFxHzrtNbJSfvg=" + }, + "model": { + "$ref": "AAAAAAFxHzrtNbJQo/w=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 929, + "top": 333, + "height": 13, + "alpha": 1.5707963267948966, + "distance": 15, + "hostEdge": { + "$ref": "AAAAAAFxHzrtNbJSfvg=" + }, + "edgePosition": 1 + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAFxHzrtNbJUv74=", + "_parent": { + "$ref": "AAAAAAFxHzrtNbJSfvg=" + }, + "model": { + "$ref": "AAAAAAFxHzrtNbJQo/w=" + }, + "font": "Arial;13;0", + "left": 902, + "top": 336, + "width": 55.65625, + "height": 13, + "alpha": 1.5707954934615633, + "distance": 12, + "hostEdge": { + "$ref": "AAAAAAFxHzrtNbJSfvg=" + }, + "edgePosition": 1, + "text": "«include»" + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAFxHzrtNrJV/58=", + "_parent": { + "$ref": "AAAAAAFxHzrtNbJSfvg=" + }, + "model": { + "$ref": "AAAAAAFxHzrtNbJQo/w=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 929, + "top": 363, + "height": 13, + "alpha": -1.5707963267948966, + "distance": 15, + "hostEdge": { + "$ref": "AAAAAAFxHzrtNbJSfvg=" + }, + "edgePosition": 1 + } + ], + "font": "Arial;13;0", + "head": { + "$ref": "AAAAAAFxHzrLDrIY+dQ=" + }, + "tail": { + "$ref": "AAAAAAFxHzVyDbBoAzY=" + }, + "lineStyle": 1, + "points": "907:355;951:354", + "showVisibility": true, + "nameLabel": { + "$ref": "AAAAAAFxHzrtNbJTAAA=" + }, + "stereotypeLabel": { + "$ref": "AAAAAAFxHzrtNbJUv74=" + }, + "propertyLabel": { + "$ref": "AAAAAAFxHzrtNrJV/58=" + } + }, + { + "_type": "UMLUseCaseView", + "_id": "AAAAAAFxHztRC7KYwEg=", + "_parent": { + "$ref": "AAAAAAFxHzFaKrAGXvE=" + }, + "model": { + "$ref": "AAAAAAFxHztRCrKWVMM=" + }, + "subViews": [ + { + "_type": "UMLNameCompartmentView", + "_id": "AAAAAAFxHztRC7KZqv0=", + "_parent": { + "$ref": "AAAAAAFxHztRC7KYwEg=" + }, + "model": { + "$ref": "AAAAAAFxHztRCrKWVMM=" + }, + "subViews": [ + { + "_type": "LabelView", + "_id": "AAAAAAFxHztRC7Kabls=", + "_parent": { + "$ref": "AAAAAAFxHztRC7KZqv0=" + }, + "visible": false, + "font": "Arial;13;0", + "top": 240, + "height": 13 + }, + { + "_type": "LabelView", + "_id": "AAAAAAFxHztRC7KbD48=", + "_parent": { + "$ref": "AAAAAAFxHztRC7KZqv0=" + }, + "font": "Arial;13;1", + "left": 660, + "top": 267.5, + "width": 62, + "height": 13, + "text": "Cobrar" + }, + { + "_type": "LabelView", + "_id": "AAAAAAFxHztRC7KcujY=", + "_parent": { + "$ref": "AAAAAAFxHztRC7KZqv0=" + }, + "visible": false, + "font": "Arial;13;0", + "top": 240, + "width": 80.9072265625, + "height": 13, + "text": "(from Model1)" + }, + { + "_type": "LabelView", + "_id": "AAAAAAFxHztRC7KdiSk=", + "_parent": { + "$ref": "AAAAAAFxHztRC7KZqv0=" + }, + "visible": false, + "font": "Arial;13;0", + "top": 240, + "height": 13, + "horizontalAlignment": 1 + } + ], + "font": "Arial;13;0", + "left": 655, + "top": 260.5, + "width": 72, + "height": 25, + "stereotypeLabel": { + "$ref": "AAAAAAFxHztRC7Kabls=" + }, + "nameLabel": { + "$ref": "AAAAAAFxHztRC7KbD48=" + }, + "namespaceLabel": { + "$ref": "AAAAAAFxHztRC7KcujY=" + }, + "propertyLabel": { + "$ref": "AAAAAAFxHztRC7KdiSk=" + } + }, + { + "_type": "UMLAttributeCompartmentView", + "_id": "AAAAAAFxHztRC7Ke/Fg=", + "_parent": { + "$ref": "AAAAAAFxHztRC7KYwEg=" + }, + "model": { + "$ref": "AAAAAAFxHztRCrKWVMM=" + }, + "visible": false, + "font": "Arial;13;0", + "top": 120, + "width": 10, + "height": 10 + }, + { + "_type": "UMLOperationCompartmentView", + "_id": "AAAAAAFxHztRDLKf3bQ=", + "_parent": { + "$ref": "AAAAAAFxHztRC7KYwEg=" + }, + "model": { + "$ref": "AAAAAAFxHztRCrKWVMM=" + }, + "visible": false, + "font": "Arial;13;0", + "top": 120, + "width": 10, + "height": 10 + }, + { + "_type": "UMLReceptionCompartmentView", + "_id": "AAAAAAFxHztRDLKgEE0=", + "_parent": { + "$ref": "AAAAAAFxHztRC7KYwEg=" + }, + "model": { + "$ref": "AAAAAAFxHztRCrKWVMM=" + }, + "visible": false, + "font": "Arial;13;0", + "top": 120, + "width": 10, + "height": 10 + }, + { + "_type": "UMLTemplateParameterCompartmentView", + "_id": "AAAAAAFxHztRDLKhzCE=", + "_parent": { + "$ref": "AAAAAAFxHztRC7KYwEg=" + }, + "model": { + "$ref": "AAAAAAFxHztRCrKWVMM=" + }, + "visible": false, + "font": "Arial;13;0", + "top": 120, + "width": 10, + "height": 10 + }, + { + "_type": "UMLExtensionPointCompartmentView", + "_id": "AAAAAAFxHztRDLKi5p4=", + "_parent": { + "$ref": "AAAAAAFxHztRC7KYwEg=" + }, + "model": { + "$ref": "AAAAAAFxHztRCrKWVMM=" + }, + "visible": false, + "font": "Arial;13;0", + "top": 120, + "width": 10, + "height": 10 + } + ], + "font": "Arial;13;0", + "containerChangeable": true, + "left": 640, + "top": 256, + "width": 102, + "height": 35, + "nameCompartment": { + "$ref": "AAAAAAFxHztRC7KZqv0=" + }, + "suppressAttributes": true, + "suppressOperations": true, + "attributeCompartment": { + "$ref": "AAAAAAFxHztRC7Ke/Fg=" + }, + "operationCompartment": { + "$ref": "AAAAAAFxHztRDLKf3bQ=" + }, + "receptionCompartment": { + "$ref": "AAAAAAFxHztRDLKgEE0=" + }, + "templateParameterCompartment": { + "$ref": "AAAAAAFxHztRDLKhzCE=" + }, + "extensionPointCompartment": { + "$ref": "AAAAAAFxHztRDLKi5p4=" + } + }, + { + "_type": "UMLUseCaseView", + "_id": "AAAAAAFxHzu4i7L7lK4=", + "_parent": { + "$ref": "AAAAAAFxHzFaKrAGXvE=" + }, + "model": { + "$ref": "AAAAAAFxHzu4i7L5cvQ=" + }, + "subViews": [ + { + "_type": "UMLNameCompartmentView", + "_id": "AAAAAAFxHzu4i7L8M6k=", + "_parent": { + "$ref": "AAAAAAFxHzu4i7L7lK4=" + }, + "model": { + "$ref": "AAAAAAFxHzu4i7L5cvQ=" + }, + "subViews": [ + { + "_type": "LabelView", + "_id": "AAAAAAFxHzu4i7L9JHI=", + "_parent": { + "$ref": "AAAAAAFxHzu4i7L8M6k=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 144, + "top": 208, + "height": 13 + }, + { + "_type": "LabelView", + "_id": "AAAAAAFxHzu4i7L+cnw=", + "_parent": { + "$ref": "AAAAAAFxHzu4i7L8M6k=" + }, + "font": "Arial;13;1", + "left": 815, + "top": 147.5, + "width": 153, + "height": 13, + "text": "Seleccionar ingredientes" + }, + { + "_type": "LabelView", + "_id": "AAAAAAFxHzu4jLL/Q+4=", + "_parent": { + "$ref": "AAAAAAFxHzu4i7L8M6k=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 144, + "top": 208, + "width": 80.9072265625, + "height": 13, + "text": "(from Model1)" + }, + { + "_type": "LabelView", + "_id": "AAAAAAFxHzu4jLMAh6g=", + "_parent": { + "$ref": "AAAAAAFxHzu4i7L8M6k=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 144, + "top": 208, + "height": 13, + "horizontalAlignment": 1 + } + ], + "font": "Arial;13;0", + "left": 810, + "top": 140.5, + "width": 163.892578125, + "height": 25, + "stereotypeLabel": { + "$ref": "AAAAAAFxHzu4i7L9JHI=" + }, + "nameLabel": { + "$ref": "AAAAAAFxHzu4i7L+cnw=" + }, + "namespaceLabel": { + "$ref": "AAAAAAFxHzu4jLL/Q+4=" + }, + "propertyLabel": { + "$ref": "AAAAAAFxHzu4jLMAh6g=" + } + }, + { + "_type": "UMLAttributeCompartmentView", + "_id": "AAAAAAFxHzu4jLMB590=", + "_parent": { + "$ref": "AAAAAAFxHzu4i7L7lK4=" + }, + "model": { + "$ref": "AAAAAAFxHzu4i7L5cvQ=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 72, + "top": 104, + "width": 10, + "height": 10 + }, + { + "_type": "UMLOperationCompartmentView", + "_id": "AAAAAAFxHzu4jLMCtZk=", + "_parent": { + "$ref": "AAAAAAFxHzu4i7L7lK4=" + }, + "model": { + "$ref": "AAAAAAFxHzu4i7L5cvQ=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 72, + "top": 104, + "width": 10, + "height": 10 + }, + { + "_type": "UMLReceptionCompartmentView", + "_id": "AAAAAAFxHzu4jLMDQ9A=", + "_parent": { + "$ref": "AAAAAAFxHzu4i7L7lK4=" + }, + "model": { + "$ref": "AAAAAAFxHzu4i7L5cvQ=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 72, + "top": 104, + "width": 10, + "height": 10 + }, + { + "_type": "UMLTemplateParameterCompartmentView", + "_id": "AAAAAAFxHzu4jLMEGWs=", + "_parent": { + "$ref": "AAAAAAFxHzu4i7L7lK4=" + }, + "model": { + "$ref": "AAAAAAFxHzu4i7L5cvQ=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 72, + "top": 104, + "width": 10, + "height": 10 + }, + { + "_type": "UMLExtensionPointCompartmentView", + "_id": "AAAAAAFxHzu4jLMFnKo=", + "_parent": { + "$ref": "AAAAAAFxHzu4i7L7lK4=" + }, + "model": { + "$ref": "AAAAAAFxHzu4i7L5cvQ=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 72, + "top": 104, + "width": 10, + "height": 10 + } + ], + "font": "Arial;13;0", + "containerChangeable": true, + "left": 776, + "top": 136, + "width": 231, + "height": 35, + "nameCompartment": { + "$ref": "AAAAAAFxHzu4i7L8M6k=" + }, + "suppressAttributes": true, + "suppressOperations": true, + "attributeCompartment": { + "$ref": "AAAAAAFxHzu4jLMB590=" + }, + "operationCompartment": { + "$ref": "AAAAAAFxHzu4jLMCtZk=" + }, + "receptionCompartment": { + "$ref": "AAAAAAFxHzu4jLMDQ9A=" + }, + "templateParameterCompartment": { + "$ref": "AAAAAAFxHzu4jLMEGWs=" + }, + "extensionPointCompartment": { + "$ref": "AAAAAAFxHzu4jLMFnKo=" + } + }, + { + "_type": "UMLExtendView", + "_id": "AAAAAAFxHzyzBrNwvy8=", + "_parent": { + "$ref": "AAAAAAFxHzFaKrAGXvE=" + }, + "model": { + "$ref": "AAAAAAFxHzyzBbNupmk=" + }, + "subViews": [ + { + "_type": "EdgeLabelView", + "_id": "AAAAAAFxHzyzBrNxtLQ=", + "_parent": { + "$ref": "AAAAAAFxHzyzBrNwvy8=" + }, + "model": { + "$ref": "AAAAAAFxHzyzBbNupmk=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 764, + "top": 185, + "height": 13, + "alpha": 1.5707963267948966, + "distance": 15, + "hostEdge": { + "$ref": "AAAAAAFxHzyzBrNwvy8=" + }, + "edgePosition": 1 + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAFxHzyzB7Nybrs=", + "_parent": { + "$ref": "AAAAAAFxHzyzBrNwvy8=" + }, + "model": { + "$ref": "AAAAAAFxHzyzBbNupmk=" + }, + "font": "Arial;13;0", + "left": 752, + "top": 183, + "width": 53.49169921875, + "height": 13, + "alpha": 2.2739283979977976, + "distance": 20.615528128088304, + "hostEdge": { + "$ref": "AAAAAAFxHzyzBrNwvy8=" + }, + "edgePosition": 1, + "text": "«extend»" + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAFxHzyzB7NzjN0=", + "_parent": { + "$ref": "AAAAAAFxHzyzBrNwvy8=" + }, + "model": { + "$ref": "AAAAAAFxHzyzBbNupmk=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 759, + "top": 156, + "height": 13, + "alpha": -1.5707963267948966, + "distance": 15, + "hostEdge": { + "$ref": "AAAAAAFxHzyzBrNwvy8=" + }, + "edgePosition": 1 + } + ], + "font": "Arial;13;0", + "head": { + "$ref": "AAAAAAFxHznUKLF1whY=" + }, + "tail": { + "$ref": "AAAAAAFxHzu4i7L7lK4=" + }, + "lineStyle": 1, + "points": "794:171;730:183", + "showVisibility": true, + "nameLabel": { + "$ref": "AAAAAAFxHzyzBrNxtLQ=" + }, + "stereotypeLabel": { + "$ref": "AAAAAAFxHzyzB7Nybrs=" + }, + "propertyLabel": { + "$ref": "AAAAAAFxHzyzB7NzjN0=" + } + }, + { + "_type": "UMLUseCaseView", + "_id": "AAAAAAFxHz0FDLQEVKY=", + "_parent": { + "$ref": "AAAAAAFxHzFaKrAGXvE=" + }, + "model": { + "$ref": "AAAAAAFxHz0FDLQCqKM=" + }, + "subViews": [ + { + "_type": "UMLNameCompartmentView", + "_id": "AAAAAAFxHz0FDLQF0xA=", + "_parent": { + "$ref": "AAAAAAFxHz0FDLQEVKY=" + }, + "model": { + "$ref": "AAAAAAFxHz0FDLQCqKM=" + }, + "subViews": [ + { + "_type": "LabelView", + "_id": "AAAAAAFxHz0FDLQGhf8=", + "_parent": { + "$ref": "AAAAAAFxHz0FDLQF0xA=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 304, + "top": 288, + "height": 13 + }, + { + "_type": "LabelView", + "_id": "AAAAAAFxHz0FDLQHQM0=", + "_parent": { + "$ref": "AAAAAAFxHz0FDLQF0xA=" + }, + "font": "Arial;13;1", + "left": 814, + "top": 267.5, + "width": 71, + "height": 13, + "text": "Crear ticket" + }, + { + "_type": "LabelView", + "_id": "AAAAAAFxHz0FDbQItwU=", + "_parent": { + "$ref": "AAAAAAFxHz0FDLQF0xA=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 304, + "top": 288, + "width": 80.9072265625, + "height": 13, + "text": "(from Model1)" + }, + { + "_type": "LabelView", + "_id": "AAAAAAFxHz0FDbQJXnw=", + "_parent": { + "$ref": "AAAAAAFxHz0FDLQF0xA=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 304, + "top": 288, + "height": 13, + "horizontalAlignment": 1 + } + ], + "font": "Arial;13;0", + "left": 809, + "top": 260.5, + "width": 81.5380859375, + "height": 25, + "stereotypeLabel": { + "$ref": "AAAAAAFxHz0FDLQGhf8=" + }, + "nameLabel": { + "$ref": "AAAAAAFxHz0FDLQHQM0=" + }, + "namespaceLabel": { + "$ref": "AAAAAAFxHz0FDbQItwU=" + }, + "propertyLabel": { + "$ref": "AAAAAAFxHz0FDbQJXnw=" + } + }, + { + "_type": "UMLAttributeCompartmentView", + "_id": "AAAAAAFxHz0FDbQKsIk=", + "_parent": { + "$ref": "AAAAAAFxHz0FDLQEVKY=" + }, + "model": { + "$ref": "AAAAAAFxHz0FDLQCqKM=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 152, + "top": 144, + "width": 10, + "height": 10 + }, + { + "_type": "UMLOperationCompartmentView", + "_id": "AAAAAAFxHz0FDbQLCps=", + "_parent": { + "$ref": "AAAAAAFxHz0FDLQEVKY=" + }, + "model": { + "$ref": "AAAAAAFxHz0FDLQCqKM=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 152, + "top": 144, + "width": 10, + "height": 10 + }, + { + "_type": "UMLReceptionCompartmentView", + "_id": "AAAAAAFxHz0FDbQMgTs=", + "_parent": { + "$ref": "AAAAAAFxHz0FDLQEVKY=" + }, + "model": { + "$ref": "AAAAAAFxHz0FDLQCqKM=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 152, + "top": 144, + "width": 10, + "height": 10 + }, + { + "_type": "UMLTemplateParameterCompartmentView", + "_id": "AAAAAAFxHz0FDbQNidA=", + "_parent": { + "$ref": "AAAAAAFxHz0FDLQEVKY=" + }, + "model": { + "$ref": "AAAAAAFxHz0FDLQCqKM=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 152, + "top": 144, + "width": 10, + "height": 10 + }, + { + "_type": "UMLExtensionPointCompartmentView", + "_id": "AAAAAAFxHz0FDbQOu5E=", + "_parent": { + "$ref": "AAAAAAFxHz0FDLQEVKY=" + }, + "model": { + "$ref": "AAAAAAFxHz0FDLQCqKM=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 152, + "top": 144, + "width": 10, + "height": 10 + } + ], + "font": "Arial;13;0", + "containerChangeable": true, + "left": 792, + "top": 256, + "width": 115, + "height": 35, + "nameCompartment": { + "$ref": "AAAAAAFxHz0FDLQF0xA=" + }, + "suppressAttributes": true, + "suppressOperations": true, + "attributeCompartment": { + "$ref": "AAAAAAFxHz0FDbQKsIk=" + }, + "operationCompartment": { + "$ref": "AAAAAAFxHz0FDbQLCps=" + }, + "receptionCompartment": { + "$ref": "AAAAAAFxHz0FDbQMgTs=" + }, + "templateParameterCompartment": { + "$ref": "AAAAAAFxHz0FDbQNidA=" + }, + "extensionPointCompartment": { + "$ref": "AAAAAAFxHz0FDbQOu5E=" + } + }, + { + "_type": "UMLIncludeView", + "_id": "AAAAAAFxHz1v2rRYxRs=", + "_parent": { + "$ref": "AAAAAAFxHzFaKrAGXvE=" + }, + "model": { + "$ref": "AAAAAAFxHz1v2bRWjqA=" + }, + "subViews": [ + { + "_type": "EdgeLabelView", + "_id": "AAAAAAFxHz1v2rRZ9Zo=", + "_parent": { + "$ref": "AAAAAAFxHz1v2rRYxRs=" + }, + "model": { + "$ref": "AAAAAAFxHz1v2bRWjqA=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 672, + "top": 221, + "height": 13, + "alpha": 1.5707963267948966, + "distance": 15, + "hostEdge": { + "$ref": "AAAAAAFxHz1v2rRYxRs=" + }, + "edgePosition": 1 + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAFxHz1v2rRaQtk=", + "_parent": { + "$ref": "AAAAAAFxHz1v2rRYxRs=" + }, + "model": { + "$ref": "AAAAAAFxHz1v2bRWjqA=" + }, + "font": "Arial;13;0", + "left": 663, + "top": 232, + "width": 55.65625, + "height": 13, + "alpha": 0.8427367379499587, + "distance": 30.01666203960727, + "hostEdge": { + "$ref": "AAAAAAFxHz1v2rRYxRs=" + }, + "edgePosition": 1, + "text": "«include»" + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAFxHz1v2rRbAG4=", + "_parent": { + "$ref": "AAAAAAFxHz1v2rRYxRs=" + }, + "model": { + "$ref": "AAAAAAFxHz1v2bRWjqA=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 649, + "top": 240, + "height": 13, + "alpha": -1.5707963267948966, + "distance": 15, + "hostEdge": { + "$ref": "AAAAAAFxHz1v2rRYxRs=" + }, + "edgePosition": 1 + } + ], + "font": "Arial;13;0", + "head": { + "$ref": "AAAAAAFxHztRC7KYwEg=" + }, + "tail": { + "$ref": "AAAAAAFxHznUKLF1whY=" + }, + "lineStyle": 1, + "points": "647:219;676:255", + "showVisibility": true, + "nameLabel": { + "$ref": "AAAAAAFxHz1v2rRZ9Zo=" + }, + "stereotypeLabel": { + "$ref": "AAAAAAFxHz1v2rRaQtk=" + }, + "propertyLabel": { + "$ref": "AAAAAAFxHz1v2rRbAG4=" + } + }, + { + "_type": "UMLIncludeView", + "_id": "AAAAAAFxHz3WNrSYwaQ=", + "_parent": { + "$ref": "AAAAAAFxHzFaKrAGXvE=" + }, + "model": { + "$ref": "AAAAAAFxHz3WNrSWeVo=" + }, + "subViews": [ + { + "_type": "EdgeLabelView", + "_id": "AAAAAAFxHz3WNrSZMr8=", + "_parent": { + "$ref": "AAAAAAFxHz3WNrSYwaQ=" + }, + "model": { + "$ref": "AAAAAAFxHz3WNrSWeVo=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 766, + "top": 252, + "height": 13, + "alpha": 1.5707963267948966, + "distance": 15, + "hostEdge": { + "$ref": "AAAAAAFxHz3WNrSYwaQ=" + }, + "edgePosition": 1 + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAFxHz3WNrSajlk=", + "_parent": { + "$ref": "AAAAAAFxHz3WNrSYwaQ=" + }, + "model": { + "$ref": "AAAAAAFxHz3WNrSWeVo=" + }, + "font": "Arial;13;0", + "left": 740, + "top": 256, + "width": 55.65625, + "height": 13, + "alpha": 1.480135537954881, + "distance": 11.045361017187261, + "hostEdge": { + "$ref": "AAAAAAFxHz3WNrSYwaQ=" + }, + "edgePosition": 1, + "text": "«include»" + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAFxHz3WN7SbEJY=", + "_parent": { + "$ref": "AAAAAAFxHz3WNrSYwaQ=" + }, + "model": { + "$ref": "AAAAAAFxHz3WNrSWeVo=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 766, + "top": 282, + "height": 13, + "alpha": -1.5707963267948966, + "distance": 15, + "hostEdge": { + "$ref": "AAAAAAFxHz3WNrSYwaQ=" + }, + "edgePosition": 1 + } + ], + "font": "Arial;13;0", + "head": { + "$ref": "AAAAAAFxHz0FDLQEVKY=" + }, + "tail": { + "$ref": "AAAAAAFxHztRC7KYwEg=" + }, + "lineStyle": 1, + "points": "742:273;791:273", + "showVisibility": true, + "nameLabel": { + "$ref": "AAAAAAFxHz3WNrSZMr8=" + }, + "stereotypeLabel": { + "$ref": "AAAAAAFxHz3WNrSajlk=" + }, + "propertyLabel": { + "$ref": "AAAAAAFxHz3WN7SbEJY=" + } + }, + { + "_type": "UMLUseCaseView", + "_id": "AAAAAAFxHz4veLTryBw=", + "_parent": { + "$ref": "AAAAAAFxHzFaKrAGXvE=" + }, + "model": { + "$ref": "AAAAAAFxHz4veLTpqlw=" + }, + "subViews": [ + { + "_type": "UMLNameCompartmentView", + "_id": "AAAAAAFxHz4veLTsl6A=", + "_parent": { + "$ref": "AAAAAAFxHz4veLTryBw=" + }, + "model": { + "$ref": "AAAAAAFxHz4veLTpqlw=" + }, + "subViews": [ + { + "_type": "LabelView", + "_id": "AAAAAAFxHz4vebTtJlM=", + "_parent": { + "$ref": "AAAAAAFxHz4veLTsl6A=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 400, + "top": 240, + "height": 13 + }, + { + "_type": "LabelView", + "_id": "AAAAAAFxHz4vebTuu1s=", + "_parent": { + "$ref": "AAAAAAFxHz4veLTsl6A=" + }, + "font": "Arial;13;1", + "left": 945, + "top": 219.5, + "width": 124, + "height": 13, + "text": "Aumentar ganancia" + }, + { + "_type": "LabelView", + "_id": "AAAAAAFxHz4vebTvx9A=", + "_parent": { + "$ref": "AAAAAAFxHz4veLTsl6A=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 400, + "top": 240, + "width": 80.9072265625, + "height": 13, + "text": "(from Model1)" + }, + { + "_type": "LabelView", + "_id": "AAAAAAFxHz4vebTwFGU=", + "_parent": { + "$ref": "AAAAAAFxHz4veLTsl6A=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 400, + "top": 240, + "height": 13, + "horizontalAlignment": 1 + } + ], + "font": "Arial;13;0", + "left": 940, + "top": 212.5, + "width": 134, + "height": 25, + "stereotypeLabel": { + "$ref": "AAAAAAFxHz4vebTtJlM=" + }, + "nameLabel": { + "$ref": "AAAAAAFxHz4vebTuu1s=" + }, + "namespaceLabel": { + "$ref": "AAAAAAFxHz4vebTvx9A=" + }, + "propertyLabel": { + "$ref": "AAAAAAFxHz4vebTwFGU=" + } + }, + { + "_type": "UMLAttributeCompartmentView", + "_id": "AAAAAAFxHz4vebTxhQk=", + "_parent": { + "$ref": "AAAAAAFxHz4veLTryBw=" + }, + "model": { + "$ref": "AAAAAAFxHz4veLTpqlw=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 200, + "top": 120, + "width": 10, + "height": 10 + }, + { + "_type": "UMLOperationCompartmentView", + "_id": "AAAAAAFxHz4vebTyPV0=", + "_parent": { + "$ref": "AAAAAAFxHz4veLTryBw=" + }, + "model": { + "$ref": "AAAAAAFxHz4veLTpqlw=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 200, + "top": 120, + "width": 10, + "height": 10 + }, + { + "_type": "UMLReceptionCompartmentView", + "_id": "AAAAAAFxHz4vebTzFTY=", + "_parent": { + "$ref": "AAAAAAFxHz4veLTryBw=" + }, + "model": { + "$ref": "AAAAAAFxHz4veLTpqlw=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 200, + "top": 120, + "width": 10, + "height": 10 + }, + { + "_type": "UMLTemplateParameterCompartmentView", + "_id": "AAAAAAFxHz4verT0+UA=", + "_parent": { + "$ref": "AAAAAAFxHz4veLTryBw=" + }, + "model": { + "$ref": "AAAAAAFxHz4veLTpqlw=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 200, + "top": 120, + "width": 10, + "height": 10 + }, + { + "_type": "UMLExtensionPointCompartmentView", + "_id": "AAAAAAFxHz4verT1Uzw=", + "_parent": { + "$ref": "AAAAAAFxHz4veLTryBw=" + }, + "model": { + "$ref": "AAAAAAFxHz4veLTpqlw=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 200, + "top": 120, + "width": 10, + "height": 10 + } + ], + "font": "Arial;13;0", + "containerChangeable": true, + "left": 912, + "top": 208, + "width": 190, + "height": 35, + "nameCompartment": { + "$ref": "AAAAAAFxHz4veLTsl6A=" + }, + "suppressAttributes": true, + "suppressOperations": true, + "attributeCompartment": { + "$ref": "AAAAAAFxHz4vebTxhQk=" + }, + "operationCompartment": { + "$ref": "AAAAAAFxHz4vebTyPV0=" + }, + "receptionCompartment": { + "$ref": "AAAAAAFxHz4vebTzFTY=" + }, + "templateParameterCompartment": { + "$ref": "AAAAAAFxHz4verT0+UA=" + }, + "extensionPointCompartment": { + "$ref": "AAAAAAFxHz4verT1Uzw=" + } + }, + { + "_type": "UMLIncludeView", + "_id": "AAAAAAFxHz6j4LUv1Cw=", + "_parent": { + "$ref": "AAAAAAFxHzFaKrAGXvE=" + }, + "model": { + "$ref": "AAAAAAFxHz6j4LUtjSI=" + }, + "subViews": [ + { + "_type": "EdgeLabelView", + "_id": "AAAAAAFxHz6j4LUwsBk=", + "_parent": { + "$ref": "AAAAAAFxHz6j4LUv1Cw=" + }, + "model": { + "$ref": "AAAAAAFxHz6j4LUtjSI=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 922, + "top": 228, + "height": 13, + "alpha": 1.5707963267948966, + "distance": 15, + "hostEdge": { + "$ref": "AAAAAAFxHz6j4LUv1Cw=" + }, + "edgePosition": 1 + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAFxHz6j4LUxmIU=", + "_parent": { + "$ref": "AAAAAAFxHz6j4LUv1Cw=" + }, + "model": { + "$ref": "AAAAAAFxHz6j4LUtjSI=" + }, + "font": "Arial;13;0", + "left": 871, + "top": 240, + "width": 55.65625, + "height": 13, + "alpha": -3.539785020933215, + "distance": 28.160255680657446, + "hostEdge": { + "$ref": "AAAAAAFxHz6j4LUv1Cw=" + }, + "edgePosition": 1, + "text": "«include»" + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAFxHz6j4LUyo8U=", + "_parent": { + "$ref": "AAAAAAFxHz6j4LUv1Cw=" + }, + "model": { + "$ref": "AAAAAAFxHz6j4LUtjSI=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 931, + "top": 257, + "height": 13, + "alpha": -1.5707963267948966, + "distance": 15, + "hostEdge": { + "$ref": "AAAAAAFxHz6j4LUv1Cw=" + }, + "edgePosition": 1 + } + ], + "font": "Arial;13;0", + "head": { + "$ref": "AAAAAAFxHz4veLTryBw=" + }, + "tail": { + "$ref": "AAAAAAFxHz0FDLQEVKY=" + }, + "lineStyle": 1, + "points": "907:255;947:243", + "showVisibility": true, + "nameLabel": { + "$ref": "AAAAAAFxHz6j4LUwsBk=" + }, + "stereotypeLabel": { + "$ref": "AAAAAAFxHz6j4LUxmIU=" + }, + "propertyLabel": { + "$ref": "AAAAAAFxHz6j4LUyo8U=" + } + }, + { + "_type": "UMLNoteView", + "_id": "AAAAAAFxHz8FGLV0hck=", + "_parent": { + "$ref": "AAAAAAFxHzFaKrAGXvE=" + }, + "font": "Arial;13;0", + "left": 1040, + "top": 160, + "width": 177, + "height": 38, + "text": "Aumenta la ganancia a la Semana, al Día y al Més." + }, + { + "_type": "UMLNoteLinkView", + "_id": "AAAAAAFxHz99JLWOo5o=", + "_parent": { + "$ref": "AAAAAAFxHzFaKrAGXvE=" + }, + "font": "Arial;13;0", + "head": { + "$ref": "AAAAAAFxHz8FGLV0hck=" + }, + "tail": { + "$ref": "AAAAAAFxHz4veLTryBw=" + }, + "lineStyle": 1, + "points": "1053:207;1076:198" + }, + { + "_type": "UMLUseCaseView", + "_id": "AAAAAAFxH0DrI7Yc57w=", + "_parent": { + "$ref": "AAAAAAFxHzFaKrAGXvE=" + }, + "model": { + "$ref": "AAAAAAFxH0DrIrYam3g=" + }, + "subViews": [ + { + "_type": "UMLNameCompartmentView", + "_id": "AAAAAAFxH0DrJLYdQB4=", + "_parent": { + "$ref": "AAAAAAFxH0DrI7Yc57w=" + }, + "model": { + "$ref": "AAAAAAFxH0DrIrYam3g=" + }, + "subViews": [ + { + "_type": "LabelView", + "_id": "AAAAAAFxH0DrJLYem0E=", + "_parent": { + "$ref": "AAAAAAFxH0DrJLYdQB4=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 96, + "top": 352, + "height": 13 + }, + { + "_type": "LabelView", + "_id": "AAAAAAFxH0DrJLYfoBw=", + "_parent": { + "$ref": "AAAAAAFxH0DrJLYdQB4=" + }, + "font": "Arial;13;1", + "left": 454.5, + "top": 475.5, + "width": 110, + "height": 13, + "text": "Cambiar Precios" + }, + { + "_type": "LabelView", + "_id": "AAAAAAFxH0DrJLYghMQ=", + "_parent": { + "$ref": "AAAAAAFxH0DrJLYdQB4=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 96, + "top": 352, + "width": 80.9072265625, + "height": 13, + "text": "(from Model1)" + }, + { + "_type": "LabelView", + "_id": "AAAAAAFxH0DrJLYhOAk=", + "_parent": { + "$ref": "AAAAAAFxH0DrJLYdQB4=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 96, + "top": 352, + "height": 13, + "horizontalAlignment": 1 + } + ], + "font": "Arial;13;0", + "left": 449.5, + "top": 468.5, + "width": 120, + "height": 25, + "stereotypeLabel": { + "$ref": "AAAAAAFxH0DrJLYem0E=" + }, + "nameLabel": { + "$ref": "AAAAAAFxH0DrJLYfoBw=" + }, + "namespaceLabel": { + "$ref": "AAAAAAFxH0DrJLYghMQ=" + }, + "propertyLabel": { + "$ref": "AAAAAAFxH0DrJLYhOAk=" + } + }, + { + "_type": "UMLAttributeCompartmentView", + "_id": "AAAAAAFxH0DrJbYi6V4=", + "_parent": { + "$ref": "AAAAAAFxH0DrI7Yc57w=" + }, + "model": { + "$ref": "AAAAAAFxH0DrIrYam3g=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 48, + "top": 176, + "width": 10, + "height": 10 + }, + { + "_type": "UMLOperationCompartmentView", + "_id": "AAAAAAFxH0DrJbYjpEw=", + "_parent": { + "$ref": "AAAAAAFxH0DrI7Yc57w=" + }, + "model": { + "$ref": "AAAAAAFxH0DrIrYam3g=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 48, + "top": 176, + "width": 10, + "height": 10 + }, + { + "_type": "UMLReceptionCompartmentView", + "_id": "AAAAAAFxH0DrJbYkD5g=", + "_parent": { + "$ref": "AAAAAAFxH0DrI7Yc57w=" + }, + "model": { + "$ref": "AAAAAAFxH0DrIrYam3g=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 48, + "top": 176, + "width": 10, + "height": 10 + }, + { + "_type": "UMLTemplateParameterCompartmentView", + "_id": "AAAAAAFxH0DrJbYlOvQ=", + "_parent": { + "$ref": "AAAAAAFxH0DrI7Yc57w=" + }, + "model": { + "$ref": "AAAAAAFxH0DrIrYam3g=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 48, + "top": 176, + "width": 10, + "height": 10 + }, + { + "_type": "UMLExtensionPointCompartmentView", + "_id": "AAAAAAFxH0DrJbYmNqQ=", + "_parent": { + "$ref": "AAAAAAFxH0DrI7Yc57w=" + }, + "model": { + "$ref": "AAAAAAFxH0DrIrYam3g=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 48, + "top": 176, + "width": 10, + "height": 10 + } + ], + "font": "Arial;13;0", + "containerChangeable": true, + "left": 424, + "top": 464, + "width": 171, + "height": 35, + "nameCompartment": { + "$ref": "AAAAAAFxH0DrJLYdQB4=" + }, + "suppressAttributes": true, + "suppressOperations": true, + "attributeCompartment": { + "$ref": "AAAAAAFxH0DrJbYi6V4=" + }, + "operationCompartment": { + "$ref": "AAAAAAFxH0DrJbYjpEw=" + }, + "receptionCompartment": { + "$ref": "AAAAAAFxH0DrJbYkD5g=" + }, + "templateParameterCompartment": { + "$ref": "AAAAAAFxH0DrJbYlOvQ=" + }, + "extensionPointCompartment": { + "$ref": "AAAAAAFxH0DrJbYmNqQ=" + } + }, + { + "_type": "UMLAssociationView", + "_id": "AAAAAAFxH0FMYLZx6/U=", + "_parent": { + "$ref": "AAAAAAFxHzFaKrAGXvE=" + }, + "model": { + "$ref": "AAAAAAFxH0FMX7ZtpPo=" + }, + "subViews": [ + { + "_type": "EdgeLabelView", + "_id": "AAAAAAFxH0FMYLZy2FM=", + "_parent": { + "$ref": "AAAAAAFxH0FMYLZx6/U=" + }, + "model": { + "$ref": "AAAAAAFxH0FMX7ZtpPo=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 396, + "top": 490, + "height": 13, + "alpha": 1.5707963267948966, + "distance": 15, + "hostEdge": { + "$ref": "AAAAAAFxH0FMYLZx6/U=" + }, + "edgePosition": 1 + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAFxH0FMYbZzBN8=", + "_parent": { + "$ref": "AAAAAAFxH0FMYLZx6/U=" + }, + "model": { + "$ref": "AAAAAAFxH0FMX7ZtpPo=" + }, + "visible": null, + "font": "Arial;13;0", + "left": 392, + "top": 476, + "height": 13, + "alpha": 1.5707963267948966, + "distance": 30, + "hostEdge": { + "$ref": "AAAAAAFxH0FMYLZx6/U=" + }, + "edgePosition": 1 + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAFxH0FMYbZ0QB0=", + "_parent": { + "$ref": "AAAAAAFxH0FMYLZx6/U=" + }, + "model": { + "$ref": "AAAAAAFxH0FMX7ZtpPo=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 403, + "top": 519, + "height": 13, + "alpha": -1.5707963267948966, + "distance": 15, + "hostEdge": { + "$ref": "AAAAAAFxH0FMYLZx6/U=" + }, + "edgePosition": 1 + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAFxH0FMYbZ1oik=", + "_parent": { + "$ref": "AAAAAAFxH0FMYLZx6/U=" + }, + "model": { + "$ref": "AAAAAAFxH0FMX7ZuYHg=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 378, + "top": 495, + "height": 13, + "alpha": 0.5235987755982988, + "distance": 30, + "hostEdge": { + "$ref": "AAAAAAFxH0FMYLZx6/U=" + }, + "edgePosition": 2 + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAFxH0FMYbZ2CR0=", + "_parent": { + "$ref": "AAAAAAFxH0FMYLZx6/U=" + }, + "model": { + "$ref": "AAAAAAFxH0FMX7ZuYHg=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 376, + "top": 482, + "height": 13, + "alpha": 0.7853981633974483, + "distance": 40, + "hostEdge": { + "$ref": "AAAAAAFxH0FMYLZx6/U=" + }, + "edgePosition": 2 + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAFxH0FMYbZ3UUU=", + "_parent": { + "$ref": "AAAAAAFxH0FMYLZx6/U=" + }, + "model": { + "$ref": "AAAAAAFxH0FMX7ZuYHg=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 381, + "top": 523, + "height": 13, + "alpha": -0.5235987755982988, + "distance": 25, + "hostEdge": { + "$ref": "AAAAAAFxH0FMYLZx6/U=" + }, + "edgePosition": 2 + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAFxH0FMYbZ4Xb8=", + "_parent": { + "$ref": "AAAAAAFxH0FMYLZx6/U=" + }, + "model": { + "$ref": "AAAAAAFxH0FMX7ZvCKI=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 414, + "top": 485, + "height": 13, + "alpha": -0.5235987755982988, + "distance": 30, + "hostEdge": { + "$ref": "AAAAAAFxH0FMYLZx6/U=" + } + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAFxH0FMYrZ53mI=", + "_parent": { + "$ref": "AAAAAAFxH0FMYLZx6/U=" + }, + "model": { + "$ref": "AAAAAAFxH0FMX7ZvCKI=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 409, + "top": 473, + "height": 13, + "alpha": -0.7853981633974483, + "distance": 40, + "hostEdge": { + "$ref": "AAAAAAFxH0FMYLZx6/U=" + } + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAFxH0FMYrZ6Ahw=", + "_parent": { + "$ref": "AAAAAAFxH0FMYLZx6/U=" + }, + "model": { + "$ref": "AAAAAAFxH0FMX7ZvCKI=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 426, + "top": 510, + "height": 13, + "alpha": 0.5235987755982988, + "distance": 25, + "hostEdge": { + "$ref": "AAAAAAFxH0FMYLZx6/U=" + } + }, + { + "_type": "UMLQualifierCompartmentView", + "_id": "AAAAAAFxH0FMYrZ7O9c=", + "_parent": { + "$ref": "AAAAAAFxH0FMYLZx6/U=" + }, + "model": { + "$ref": "AAAAAAFxH0FMX7ZuYHg=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 72, + "top": 120, + "width": 10, + "height": 10 + }, + { + "_type": "UMLQualifierCompartmentView", + "_id": "AAAAAAFxH0FMYrZ8ZsU=", + "_parent": { + "$ref": "AAAAAAFxH0FMYLZx6/U=" + }, + "model": { + "$ref": "AAAAAAFxH0FMX7ZvCKI=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 72, + "top": 120, + "width": 10, + "height": 10 + } + ], + "font": "Arial;13;0", + "head": { + "$ref": "AAAAAAFxH0DrI7Yc57w=" + }, + "tail": { + "$ref": "AAAAAAFxHzF3wbAMxHM=" + }, + "lineStyle": 1, + "points": "357:523;444:499", + "showVisibility": true, + "nameLabel": { + "$ref": "AAAAAAFxH0FMYLZy2FM=" + }, + "stereotypeLabel": { + "$ref": "AAAAAAFxH0FMYbZzBN8=" + }, + "propertyLabel": { + "$ref": "AAAAAAFxH0FMYbZ0QB0=" + }, + "tailRoleNameLabel": { + "$ref": "AAAAAAFxH0FMYbZ1oik=" + }, + "tailPropertyLabel": { + "$ref": "AAAAAAFxH0FMYbZ2CR0=" + }, + "tailMultiplicityLabel": { + "$ref": "AAAAAAFxH0FMYbZ3UUU=" + }, + "headRoleNameLabel": { + "$ref": "AAAAAAFxH0FMYbZ4Xb8=" + }, + "headPropertyLabel": { + "$ref": "AAAAAAFxH0FMYrZ53mI=" + }, + "headMultiplicityLabel": { + "$ref": "AAAAAAFxH0FMYrZ6Ahw=" + }, + "tailQualifiersCompartment": { + "$ref": "AAAAAAFxH0FMYrZ7O9c=" + }, + "headQualifiersCompartment": { + "$ref": "AAAAAAFxH0FMYrZ8ZsU=" + } + }, + { + "_type": "UMLIncludeView", + "_id": "AAAAAAFxH0FkmrbBA7E=", + "_parent": { + "$ref": "AAAAAAFxHzFaKrAGXvE=" + }, + "model": { + "$ref": "AAAAAAFxH0Fkmra/SbY=" + }, + "subViews": [ + { + "_type": "EdgeLabelView", + "_id": "AAAAAAFxH0Fkm7bCyTA=", + "_parent": { + "$ref": "AAAAAAFxH0FkmrbBA7E=" + }, + "model": { + "$ref": "AAAAAAFxH0Fkmra/SbY=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 511, + "top": 355, + "height": 13, + "alpha": 1.5707963267948966, + "distance": 15, + "hostEdge": { + "$ref": "AAAAAAFxH0FkmrbBA7E=" + }, + "edgePosition": 1 + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAFxH0Fkm7bDBQw=", + "_parent": { + "$ref": "AAAAAAFxH0FkmrbBA7E=" + }, + "model": { + "$ref": "AAAAAAFxH0Fkmra/SbY=" + }, + "font": "Arial;13;0", + "left": 552, + "top": 375, + "width": 55.65625, + "height": 13, + "alpha": -0.14847829710191546, + "distance": 67.26812023536856, + "hostEdge": { + "$ref": "AAAAAAFxH0FkmrbBA7E=" + }, + "edgePosition": 1, + "text": "«include»" + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAFxH0Fkm7bEmb0=", + "_parent": { + "$ref": "AAAAAAFxH0FkmrbBA7E=" + }, + "model": { + "$ref": "AAAAAAFxH0Fkmra/SbY=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 512, + "top": 384, + "height": 13, + "alpha": -1.5707963267948966, + "distance": 15, + "hostEdge": { + "$ref": "AAAAAAFxH0FkmrbBA7E=" + }, + "edgePosition": 1 + } + ], + "font": "Arial;13;0", + "head": { + "$ref": "AAAAAAFxHzVyDbBoAzY=" + }, + "tail": { + "$ref": "AAAAAAFxH0DrI7Yc57w=" + }, + "lineStyle": 1, + "points": "510:463;512:376;799:359", + "showVisibility": true, + "nameLabel": { + "$ref": "AAAAAAFxH0Fkm7bCyTA=" + }, + "stereotypeLabel": { + "$ref": "AAAAAAFxH0Fkm7bDBQw=" + }, + "propertyLabel": { + "$ref": "AAAAAAFxH0Fkm7bEmb0=" + } + }, + { + "_type": "UMLUseCaseView", + "_id": "AAAAAAFxH0NIPLfoNxA=", + "_parent": { + "$ref": "AAAAAAFxHzFaKrAGXvE=" + }, + "model": { + "$ref": "AAAAAAFxH0NIPLfmxE0=" + }, + "subViews": [ + { + "_type": "UMLNameCompartmentView", + "_id": "AAAAAAFxH0NIPLfp6RA=", + "_parent": { + "$ref": "AAAAAAFxH0NIPLfoNxA=" + }, + "model": { + "$ref": "AAAAAAFxH0NIPLfmxE0=" + }, + "subViews": [ + { + "_type": "LabelView", + "_id": "AAAAAAFxH0NIPbfqZO0=", + "_parent": { + "$ref": "AAAAAAFxH0NIPLfp6RA=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 160, + "top": 176, + "height": 13 + }, + { + "_type": "LabelView", + "_id": "AAAAAAFxH0NIPbfrhLc=", + "_parent": { + "$ref": "AAAAAAFxH0NIPLfp6RA=" + }, + "font": "Arial;13;1", + "left": 685.5, + "top": 419.5, + "width": 146, + "height": 13, + "text": "Seleccionar Ingrediente" + }, + { + "_type": "LabelView", + "_id": "AAAAAAFxH0NIPbfsV3Q=", + "_parent": { + "$ref": "AAAAAAFxH0NIPLfp6RA=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 160, + "top": 176, + "width": 80.9072265625, + "height": 13, + "text": "(from Model1)" + }, + { + "_type": "LabelView", + "_id": "AAAAAAFxH0NIPbftF1E=", + "_parent": { + "$ref": "AAAAAAFxH0NIPLfp6RA=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 160, + "top": 176, + "height": 13, + "horizontalAlignment": 1 + } + ], + "font": "Arial;13;0", + "left": 680.5, + "top": 412.5, + "width": 156.66259765625, + "height": 25, + "stereotypeLabel": { + "$ref": "AAAAAAFxH0NIPbfqZO0=" + }, + "nameLabel": { + "$ref": "AAAAAAFxH0NIPbfrhLc=" + }, + "namespaceLabel": { + "$ref": "AAAAAAFxH0NIPbfsV3Q=" + }, + "propertyLabel": { + "$ref": "AAAAAAFxH0NIPbftF1E=" + } + }, + { + "_type": "UMLAttributeCompartmentView", + "_id": "AAAAAAFxH0NIPbfuaUg=", + "_parent": { + "$ref": "AAAAAAFxH0NIPLfoNxA=" + }, + "model": { + "$ref": "AAAAAAFxH0NIPLfmxE0=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 80, + "top": 88, + "width": 10, + "height": 10 + }, + { + "_type": "UMLOperationCompartmentView", + "_id": "AAAAAAFxH0NIPbfviUI=", + "_parent": { + "$ref": "AAAAAAFxH0NIPLfoNxA=" + }, + "model": { + "$ref": "AAAAAAFxH0NIPLfmxE0=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 80, + "top": 88, + "width": 10, + "height": 10 + }, + { + "_type": "UMLReceptionCompartmentView", + "_id": "AAAAAAFxH0NIPbfwHjo=", + "_parent": { + "$ref": "AAAAAAFxH0NIPLfoNxA=" + }, + "model": { + "$ref": "AAAAAAFxH0NIPLfmxE0=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 80, + "top": 88, + "width": 10, + "height": 10 + }, + { + "_type": "UMLTemplateParameterCompartmentView", + "_id": "AAAAAAFxH0NIPbfx+mo=", + "_parent": { + "$ref": "AAAAAAFxH0NIPLfoNxA=" + }, + "model": { + "$ref": "AAAAAAFxH0NIPLfmxE0=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 80, + "top": 88, + "width": 10, + "height": 10 + }, + { + "_type": "UMLExtensionPointCompartmentView", + "_id": "AAAAAAFxH0NIPrfyjTQ=", + "_parent": { + "$ref": "AAAAAAFxH0NIPLfoNxA=" + }, + "model": { + "$ref": "AAAAAAFxH0NIPLfmxE0=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 80, + "top": 88, + "width": 10, + "height": 10 + } + ], + "font": "Arial;13;0", + "containerChangeable": true, + "left": 648, + "top": 408, + "width": 221, + "height": 35, + "nameCompartment": { + "$ref": "AAAAAAFxH0NIPLfp6RA=" + }, + "suppressAttributes": true, + "suppressOperations": true, + "attributeCompartment": { + "$ref": "AAAAAAFxH0NIPbfuaUg=" + }, + "operationCompartment": { + "$ref": "AAAAAAFxH0NIPbfviUI=" + }, + "receptionCompartment": { + "$ref": "AAAAAAFxH0NIPbfwHjo=" + }, + "templateParameterCompartment": { + "$ref": "AAAAAAFxH0NIPbfx+mo=" + }, + "extensionPointCompartment": { + "$ref": "AAAAAAFxH0NIPrfyjTQ=" + } + }, + { + "_type": "UMLUseCaseView", + "_id": "AAAAAAFxH0Qwt7lFoR4=", + "_parent": { + "$ref": "AAAAAAFxHzFaKrAGXvE=" + }, + "model": { + "$ref": "AAAAAAFxH0Qwt7lDjj8=" + }, + "subViews": [ + { + "_type": "UMLNameCompartmentView", + "_id": "AAAAAAFxH0QwuLlGdpw=", + "_parent": { + "$ref": "AAAAAAFxH0Qwt7lFoR4=" + }, + "model": { + "$ref": "AAAAAAFxH0Qwt7lDjj8=" + }, + "subViews": [ + { + "_type": "LabelView", + "_id": "AAAAAAFxH0QwuLlHUj0=", + "_parent": { + "$ref": "AAAAAAFxH0QwuLlGdpw=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 112, + "top": 240, + "height": 13 + }, + { + "_type": "LabelView", + "_id": "AAAAAAFxH0QwuLlI4Lc=", + "_parent": { + "$ref": "AAAAAAFxH0QwuLlGdpw=" + }, + "font": "Arial;13;1", + "left": 691, + "top": 491.5, + "width": 133, + "height": 13, + "text": "Seleccionar Producto" + }, + { + "_type": "LabelView", + "_id": "AAAAAAFxH0QwuLlJR4Q=", + "_parent": { + "$ref": "AAAAAAFxH0QwuLlGdpw=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 112, + "top": 240, + "width": 80.9072265625, + "height": 13, + "text": "(from Model1)" + }, + { + "_type": "LabelView", + "_id": "AAAAAAFxH0QwuLlK6KM=", + "_parent": { + "$ref": "AAAAAAFxH0QwuLlGdpw=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 112, + "top": 240, + "height": 13, + "horizontalAlignment": 1 + } + ], + "font": "Arial;13;0", + "left": 686, + "top": 484.5, + "width": 143.64990234375, + "height": 25, + "stereotypeLabel": { + "$ref": "AAAAAAFxH0QwuLlHUj0=" + }, + "nameLabel": { + "$ref": "AAAAAAFxH0QwuLlI4Lc=" + }, + "namespaceLabel": { + "$ref": "AAAAAAFxH0QwuLlJR4Q=" + }, + "propertyLabel": { + "$ref": "AAAAAAFxH0QwuLlK6KM=" + } + }, + { + "_type": "UMLAttributeCompartmentView", + "_id": "AAAAAAFxH0QwuLlLUQA=", + "_parent": { + "$ref": "AAAAAAFxH0Qwt7lFoR4=" + }, + "model": { + "$ref": "AAAAAAFxH0Qwt7lDjj8=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 56, + "top": 120, + "width": 10, + "height": 10 + }, + { + "_type": "UMLOperationCompartmentView", + "_id": "AAAAAAFxH0QwuLlM1VA=", + "_parent": { + "$ref": "AAAAAAFxH0Qwt7lFoR4=" + }, + "model": { + "$ref": "AAAAAAFxH0Qwt7lDjj8=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 56, + "top": 120, + "width": 10, + "height": 10 + }, + { + "_type": "UMLReceptionCompartmentView", + "_id": "AAAAAAFxH0QwuLlN01w=", + "_parent": { + "$ref": "AAAAAAFxH0Qwt7lFoR4=" + }, + "model": { + "$ref": "AAAAAAFxH0Qwt7lDjj8=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 56, + "top": 120, + "width": 10, + "height": 10 + }, + { + "_type": "UMLTemplateParameterCompartmentView", + "_id": "AAAAAAFxH0QwuLlOPa8=", + "_parent": { + "$ref": "AAAAAAFxH0Qwt7lFoR4=" + }, + "model": { + "$ref": "AAAAAAFxH0Qwt7lDjj8=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 56, + "top": 120, + "width": 10, + "height": 10 + }, + { + "_type": "UMLExtensionPointCompartmentView", + "_id": "AAAAAAFxH0QwuLlPoAA=", + "_parent": { + "$ref": "AAAAAAFxH0Qwt7lFoR4=" + }, + "model": { + "$ref": "AAAAAAFxH0Qwt7lDjj8=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 56, + "top": 120, + "width": 10, + "height": 10 + } + ], + "font": "Arial;13;0", + "containerChangeable": true, + "left": 656, + "top": 480, + "width": 203, + "height": 35, + "nameCompartment": { + "$ref": "AAAAAAFxH0QwuLlGdpw=" + }, + "suppressAttributes": true, + "suppressOperations": true, + "attributeCompartment": { + "$ref": "AAAAAAFxH0QwuLlLUQA=" + }, + "operationCompartment": { + "$ref": "AAAAAAFxH0QwuLlM1VA=" + }, + "receptionCompartment": { + "$ref": "AAAAAAFxH0QwuLlN01w=" + }, + "templateParameterCompartment": { + "$ref": "AAAAAAFxH0QwuLlOPa8=" + }, + "extensionPointCompartment": { + "$ref": "AAAAAAFxH0QwuLlPoAA=" + } + }, + { + "_type": "UMLExtendView", + "_id": "AAAAAAFxH0SFDbmw6UM=", + "_parent": { + "$ref": "AAAAAAFxHzFaKrAGXvE=" + }, + "model": { + "$ref": "AAAAAAFxH0SFDLmuxck=" + }, + "subViews": [ + { + "_type": "EdgeLabelView", + "_id": "AAAAAAFxH0SFDbmxP8k=", + "_parent": { + "$ref": "AAAAAAFxH0SFDbmw6UM=" + }, + "model": { + "$ref": "AAAAAAFxH0SFDLmuxck=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 636, + "top": 461, + "height": 13, + "alpha": 1.5707963267948966, + "distance": 15, + "hostEdge": { + "$ref": "AAAAAAFxH0SFDbmw6UM=" + }, + "edgePosition": 1 + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAFxH0SFDbmyUtE=", + "_parent": { + "$ref": "AAAAAAFxH0SFDbmw6UM=" + }, + "model": { + "$ref": "AAAAAAFxH0SFDLmuxck=" + }, + "font": "Arial;13;0", + "left": 600, + "top": 431, + "width": 53.49169921875, + "height": 13, + "alpha": -1.357646364683308, + "distance": 16.55294535724685, + "hostEdge": { + "$ref": "AAAAAAFxH0SFDbmw6UM=" + }, + "edgePosition": 1, + "text": "«extend»" + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAFxH0SFDbmzmIM=", + "_parent": { + "$ref": "AAAAAAFxH0SFDbmw6UM=" + }, + "model": { + "$ref": "AAAAAAFxH0SFDLmuxck=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 629, + "top": 432, + "height": 13, + "alpha": -1.5707963267948966, + "distance": 15, + "hostEdge": { + "$ref": "AAAAAAFxH0SFDbmw6UM=" + }, + "edgePosition": 1 + } + ], + "font": "Arial;13;0", + "head": { + "$ref": "AAAAAAFxH0DrI7Yc57w=" + }, + "tail": { + "$ref": "AAAAAAFxH0NIPLfoNxA=" + }, + "lineStyle": 1, + "points": "678:443;589:463", + "showVisibility": true, + "nameLabel": { + "$ref": "AAAAAAFxH0SFDbmxP8k=" + }, + "stereotypeLabel": { + "$ref": "AAAAAAFxH0SFDbmyUtE=" + }, + "propertyLabel": { + "$ref": "AAAAAAFxH0SFDbmzmIM=" + } + }, + { + "_type": "UMLExtendView", + "_id": "AAAAAAFxH0SUr7nTBm0=", + "_parent": { + "$ref": "AAAAAAFxHzFaKrAGXvE=" + }, + "model": { + "$ref": "AAAAAAFxH0SUr7nRoUA=" + }, + "subViews": [ + { + "_type": "EdgeLabelView", + "_id": "AAAAAAFxH0SUr7nUHAU=", + "_parent": { + "$ref": "AAAAAAFxH0SUr7nTBm0=" + }, + "model": { + "$ref": "AAAAAAFxH0SUr7nRoUA=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 624, + "top": 496, + "height": 13, + "alpha": 1.5707963267948966, + "distance": 15, + "hostEdge": { + "$ref": "AAAAAAFxH0SUr7nTBm0=" + }, + "edgePosition": 1 + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAFxH0SUr7nVecw=", + "_parent": { + "$ref": "AAAAAAFxH0SUr7nTBm0=" + }, + "model": { + "$ref": "AAAAAAFxH0SUr7nRoUA=" + }, + "font": "Arial;13;0", + "left": 598, + "top": 496, + "width": 53.49169921875, + "height": 13, + "alpha": 1.5328105796465707, + "distance": 14.035668847618199, + "hostEdge": { + "$ref": "AAAAAAFxH0SUr7nTBm0=" + }, + "edgePosition": 1, + "text": "«extend»" + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAFxH0SUr7nWuz8=", + "_parent": { + "$ref": "AAAAAAFxH0SUr7nTBm0=" + }, + "model": { + "$ref": "AAAAAAFxH0SUr7nRoUA=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 625, + "top": 467, + "height": 13, + "alpha": -1.5707963267948966, + "distance": 15, + "hostEdge": { + "$ref": "AAAAAAFxH0SUr7nTBm0=" + }, + "edgePosition": 1 + } + ], + "font": "Arial;13;0", + "head": { + "$ref": "AAAAAAFxH0DrI7Yc57w=" + }, + "tail": { + "$ref": "AAAAAAFxH0Qwt7lFoR4=" + }, + "lineStyle": 1, + "points": "655:490;595:487", + "showVisibility": true, + "nameLabel": { + "$ref": "AAAAAAFxH0SUr7nUHAU=" + }, + "stereotypeLabel": { + "$ref": "AAAAAAFxH0SUr7nVecw=" + }, + "propertyLabel": { + "$ref": "AAAAAAFxH0SUr7nWuz8=" + } + }, + { + "_type": "UMLUseCaseView", + "_id": "AAAAAAFxH0TgdrplVrY=", + "_parent": { + "$ref": "AAAAAAFxHzFaKrAGXvE=" + }, + "model": { + "$ref": "AAAAAAFxH0TgdrpjyaE=" + }, + "subViews": [ + { + "_type": "UMLNameCompartmentView", + "_id": "AAAAAAFxH0Tgd7pm/qM=", + "_parent": { + "$ref": "AAAAAAFxH0TgdrplVrY=" + }, + "model": { + "$ref": "AAAAAAFxH0TgdrpjyaE=" + }, + "subViews": [ + { + "_type": "LabelView", + "_id": "AAAAAAFxH0Tgd7pnuco=", + "_parent": { + "$ref": "AAAAAAFxH0Tgd7pm/qM=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 48, + "top": 256, + "height": 13 + }, + { + "_type": "LabelView", + "_id": "AAAAAAFxH0Tgd7poKT8=", + "_parent": { + "$ref": "AAAAAAFxH0Tgd7pm/qM=" + }, + "font": "Arial;13;1", + "left": 923, + "top": 459.5, + "width": 93, + "height": 13, + "text": "Cambiar precio" + }, + { + "_type": "LabelView", + "_id": "AAAAAAFxH0Tgd7pp2g0=", + "_parent": { + "$ref": "AAAAAAFxH0Tgd7pm/qM=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 48, + "top": 256, + "width": 80.9072265625, + "height": 13, + "text": "(from Model1)" + }, + { + "_type": "LabelView", + "_id": "AAAAAAFxH0TgeLpqmg0=", + "_parent": { + "$ref": "AAAAAAFxH0Tgd7pm/qM=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 48, + "top": 256, + "height": 13, + "horizontalAlignment": 1 + } + ], + "font": "Arial;13;0", + "left": 918, + "top": 452.5, + "width": 104.6435546875, + "height": 25, + "stereotypeLabel": { + "$ref": "AAAAAAFxH0Tgd7pnuco=" + }, + "nameLabel": { + "$ref": "AAAAAAFxH0Tgd7poKT8=" + }, + "namespaceLabel": { + "$ref": "AAAAAAFxH0Tgd7pp2g0=" + }, + "propertyLabel": { + "$ref": "AAAAAAFxH0TgeLpqmg0=" + } + }, + { + "_type": "UMLAttributeCompartmentView", + "_id": "AAAAAAFxH0TgeLprikY=", + "_parent": { + "$ref": "AAAAAAFxH0TgdrplVrY=" + }, + "model": { + "$ref": "AAAAAAFxH0TgdrpjyaE=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 24, + "top": 128, + "width": 10, + "height": 10 + }, + { + "_type": "UMLOperationCompartmentView", + "_id": "AAAAAAFxH0TgeLpsXGc=", + "_parent": { + "$ref": "AAAAAAFxH0TgdrplVrY=" + }, + "model": { + "$ref": "AAAAAAFxH0TgdrpjyaE=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 24, + "top": 128, + "width": 10, + "height": 10 + }, + { + "_type": "UMLReceptionCompartmentView", + "_id": "AAAAAAFxH0Tgebpt5/w=", + "_parent": { + "$ref": "AAAAAAFxH0TgdrplVrY=" + }, + "model": { + "$ref": "AAAAAAFxH0TgdrpjyaE=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 24, + "top": 128, + "width": 10, + "height": 10 + }, + { + "_type": "UMLTemplateParameterCompartmentView", + "_id": "AAAAAAFxH0Tgebpusk0=", + "_parent": { + "$ref": "AAAAAAFxH0TgdrplVrY=" + }, + "model": { + "$ref": "AAAAAAFxH0TgdrpjyaE=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 24, + "top": 128, + "width": 10, + "height": 10 + }, + { + "_type": "UMLExtensionPointCompartmentView", + "_id": "AAAAAAFxH0TgebpvaAE=", + "_parent": { + "$ref": "AAAAAAFxH0TgdrplVrY=" + }, + "model": { + "$ref": "AAAAAAFxH0TgdrpjyaE=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 24, + "top": 128, + "width": 10, + "height": 10 + } + ], + "font": "Arial;13;0", + "containerChangeable": true, + "left": 896, + "top": 448, + "width": 147, + "height": 35, + "nameCompartment": { + "$ref": "AAAAAAFxH0Tgd7pm/qM=" + }, + "suppressAttributes": true, + "suppressOperations": true, + "attributeCompartment": { + "$ref": "AAAAAAFxH0TgeLprikY=" + }, + "operationCompartment": { + "$ref": "AAAAAAFxH0TgeLpsXGc=" + }, + "receptionCompartment": { + "$ref": "AAAAAAFxH0Tgebpt5/w=" + }, + "templateParameterCompartment": { + "$ref": "AAAAAAFxH0Tgebpusk0=" + }, + "extensionPointCompartment": { + "$ref": "AAAAAAFxH0TgebpvaAE=" + } + }, + { + "_type": "UMLIncludeView", + "_id": "AAAAAAFxH0WyGbsTzzA=", + "_parent": { + "$ref": "AAAAAAFxHzFaKrAGXvE=" + }, + "model": { + "$ref": "AAAAAAFxH0WyGbsRB24=" + }, + "subViews": [ + { + "_type": "EdgeLabelView", + "_id": "AAAAAAFxH0WyGbsUQ/k=", + "_parent": { + "$ref": "AAAAAAFxH0WyGbsTzzA=" + }, + "model": { + "$ref": "AAAAAAFxH0WyGbsRB24=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 876, + "top": 426, + "height": 13, + "alpha": 1.5707963267948966, + "distance": 15, + "hostEdge": { + "$ref": "AAAAAAFxH0WyGbsTzzA=" + }, + "edgePosition": 1 + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAFxH0WyGrsVZHk=", + "_parent": { + "$ref": "AAAAAAFxH0WyGbsTzzA=" + }, + "model": { + "$ref": "AAAAAAFxH0WyGbsRB24=" + }, + "font": "Arial;13;0", + "left": 864, + "top": 432, + "width": 55.65625, + "height": 13, + "alpha": 0.6751204063455963, + "distance": 19.235384061671343, + "hostEdge": { + "$ref": "AAAAAAFxH0WyGbsTzzA=" + }, + "edgePosition": 1, + "text": "«include»" + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAFxH0WyGrsWAYE=", + "_parent": { + "$ref": "AAAAAAFxH0WyGbsTzzA=" + }, + "model": { + "$ref": "AAAAAAFxH0WyGbsRB24=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 871, + "top": 455, + "height": 13, + "alpha": -1.5707963267948966, + "distance": 15, + "hostEdge": { + "$ref": "AAAAAAFxH0WyGbsTzzA=" + }, + "edgePosition": 1 + } + ], + "font": "Arial;13;0", + "head": { + "$ref": "AAAAAAFxH0TgdrplVrY=" + }, + "tail": { + "$ref": "AAAAAAFxH0NIPLfoNxA=" + }, + "lineStyle": 1, + "points": "853:443;895:451", + "showVisibility": true, + "nameLabel": { + "$ref": "AAAAAAFxH0WyGbsUQ/k=" + }, + "stereotypeLabel": { + "$ref": "AAAAAAFxH0WyGrsVZHk=" + }, + "propertyLabel": { + "$ref": "AAAAAAFxH0WyGrsWAYE=" + } + }, + { + "_type": "UMLIncludeView", + "_id": "AAAAAAFxH0XFT7tC7Pk=", + "_parent": { + "$ref": "AAAAAAFxHzFaKrAGXvE=" + }, + "model": { + "$ref": "AAAAAAFxH0XFT7tAgfU=" + }, + "subViews": [ + { + "_type": "EdgeLabelView", + "_id": "AAAAAAFxH0XFT7tDY/0=", + "_parent": { + "$ref": "AAAAAAFxH0XFT7tC7Pk=" + }, + "model": { + "$ref": "AAAAAAFxH0XFT7tAgfU=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 874, + "top": 458, + "height": 13, + "alpha": 1.5707963267948966, + "distance": 15, + "hostEdge": { + "$ref": "AAAAAAFxH0XFT7tC7Pk=" + }, + "edgePosition": 1 + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAFxH0XFT7tEzYQ=", + "_parent": { + "$ref": "AAAAAAFxH0XFT7tC7Pk=" + }, + "model": { + "$ref": "AAAAAAFxH0XFT7tAgfU=" + }, + "font": "Arial;13;0", + "left": 864, + "top": 487, + "width": 55.65625, + "height": 13, + "alpha": -0.9850154954271234, + "distance": 20.518284528683193, + "hostEdge": { + "$ref": "AAAAAAFxH0XFT7tC7Pk=" + }, + "edgePosition": 1, + "text": "«include»" + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAFxH0XFT7tFU5Y=", + "_parent": { + "$ref": "AAAAAAFxH0XFT7tC7Pk=" + }, + "model": { + "$ref": "AAAAAAFxH0XFT7tAgfU=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 879, + "top": 487, + "height": 13, + "alpha": -1.5707963267948966, + "distance": 15, + "hostEdge": { + "$ref": "AAAAAAFxH0XFT7tC7Pk=" + }, + "edgePosition": 1 + } + ], + "font": "Arial;13;0", + "head": { + "$ref": "AAAAAAFxH0TgdrplVrY=" + }, + "tail": { + "$ref": "AAAAAAFxH0Qwt7lFoR4=" + }, + "lineStyle": 1, + "points": "859:482;895:476", + "showVisibility": true, + "nameLabel": { + "$ref": "AAAAAAFxH0XFT7tDY/0=" + }, + "stereotypeLabel": { + "$ref": "AAAAAAFxH0XFT7tEzYQ=" + }, + "propertyLabel": { + "$ref": "AAAAAAFxH0XFT7tFU5Y=" + } + }, + { + "_type": "UMLUseCaseView", + "_id": "AAAAAAFxH0Z0urv/7Ss=", + "_parent": { + "$ref": "AAAAAAFxHzFaKrAGXvE=" + }, + "model": { + "$ref": "AAAAAAFxH0Z0urv9IXo=" + }, + "subViews": [ + { + "_type": "UMLNameCompartmentView", + "_id": "AAAAAAFxH0Z0u7wAwrA=", + "_parent": { + "$ref": "AAAAAAFxH0Z0urv/7Ss=" + }, + "model": { + "$ref": "AAAAAAFxH0Z0urv9IXo=" + }, + "subViews": [ + { + "_type": "LabelView", + "_id": "AAAAAAFxH0Z0u7wBg+o=", + "_parent": { + "$ref": "AAAAAAFxH0Z0u7wAwrA=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 112, + "top": 256, + "height": 13 + }, + { + "_type": "LabelView", + "_id": "AAAAAAFxH0Z0u7wCr6s=", + "_parent": { + "$ref": "AAAAAAFxH0Z0u7wAwrA=" + }, + "font": "Arial;13;1", + "left": 474, + "top": 619.5, + "width": 88, + "height": 13, + "text": "Ver Ganancias" + }, + { + "_type": "LabelView", + "_id": "AAAAAAFxH0Z0u7wDkBM=", + "_parent": { + "$ref": "AAAAAAFxH0Z0u7wAwrA=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 112, + "top": 256, + "width": 80.9072265625, + "height": 13, + "text": "(from Model1)" + }, + { + "_type": "LabelView", + "_id": "AAAAAAFxH0Z0u7wEwdE=", + "_parent": { + "$ref": "AAAAAAFxH0Z0u7wAwrA=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 112, + "top": 256, + "height": 13, + "horizontalAlignment": 1 + } + ], + "font": "Arial;13;0", + "left": 469, + "top": 612.5, + "width": 99.60986328125, + "height": 25, + "stereotypeLabel": { + "$ref": "AAAAAAFxH0Z0u7wBg+o=" + }, + "nameLabel": { + "$ref": "AAAAAAFxH0Z0u7wCr6s=" + }, + "namespaceLabel": { + "$ref": "AAAAAAFxH0Z0u7wDkBM=" + }, + "propertyLabel": { + "$ref": "AAAAAAFxH0Z0u7wEwdE=" + } + }, + { + "_type": "UMLAttributeCompartmentView", + "_id": "AAAAAAFxH0Z0u7wFo9Y=", + "_parent": { + "$ref": "AAAAAAFxH0Z0urv/7Ss=" + }, + "model": { + "$ref": "AAAAAAFxH0Z0urv9IXo=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 56, + "top": 128, + "width": 10, + "height": 10 + }, + { + "_type": "UMLOperationCompartmentView", + "_id": "AAAAAAFxH0Z0u7wGbrE=", + "_parent": { + "$ref": "AAAAAAFxH0Z0urv/7Ss=" + }, + "model": { + "$ref": "AAAAAAFxH0Z0urv9IXo=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 56, + "top": 128, + "width": 10, + "height": 10 + }, + { + "_type": "UMLReceptionCompartmentView", + "_id": "AAAAAAFxH0Z0u7wHvos=", + "_parent": { + "$ref": "AAAAAAFxH0Z0urv/7Ss=" + }, + "model": { + "$ref": "AAAAAAFxH0Z0urv9IXo=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 56, + "top": 128, + "width": 10, + "height": 10 + }, + { + "_type": "UMLTemplateParameterCompartmentView", + "_id": "AAAAAAFxH0Z0vLwI9jg=", + "_parent": { + "$ref": "AAAAAAFxH0Z0urv/7Ss=" + }, + "model": { + "$ref": "AAAAAAFxH0Z0urv9IXo=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 56, + "top": 128, + "width": 10, + "height": 10 + }, + { + "_type": "UMLExtensionPointCompartmentView", + "_id": "AAAAAAFxH0Z0vLwJwq4=", + "_parent": { + "$ref": "AAAAAAFxH0Z0urv/7Ss=" + }, + "model": { + "$ref": "AAAAAAFxH0Z0urv9IXo=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 56, + "top": 128, + "width": 10, + "height": 10 + } + ], + "font": "Arial;13;0", + "containerChangeable": true, + "left": 448, + "top": 608, + "width": 140, + "height": 35, + "nameCompartment": { + "$ref": "AAAAAAFxH0Z0u7wAwrA=" + }, + "suppressAttributes": true, + "suppressOperations": true, + "attributeCompartment": { + "$ref": "AAAAAAFxH0Z0u7wFo9Y=" + }, + "operationCompartment": { + "$ref": "AAAAAAFxH0Z0u7wGbrE=" + }, + "receptionCompartment": { + "$ref": "AAAAAAFxH0Z0u7wHvos=" + }, + "templateParameterCompartment": { + "$ref": "AAAAAAFxH0Z0vLwI9jg=" + }, + "extensionPointCompartment": { + "$ref": "AAAAAAFxH0Z0vLwJwq4=" + } + }, + { + "_type": "UMLAssociationView", + "_id": "AAAAAAFxH0bGqbx/IXQ=", + "_parent": { + "$ref": "AAAAAAFxHzFaKrAGXvE=" + }, + "model": { + "$ref": "AAAAAAFxH0bGqLx7o38=" + }, + "subViews": [ + { + "_type": "EdgeLabelView", + "_id": "AAAAAAFxH0bGqbyApOQ=", + "_parent": { + "$ref": "AAAAAAFxH0bGqbx/IXQ=" + }, + "model": { + "$ref": "AAAAAAFxH0bGqLx7o38=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 412, + "top": 570, + "height": 13, + "alpha": 1.5707963267948966, + "distance": 15, + "hostEdge": { + "$ref": "AAAAAAFxH0bGqbx/IXQ=" + }, + "edgePosition": 1 + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAFxH0bGqbyBVHk=", + "_parent": { + "$ref": "AAAAAAFxH0bGqbx/IXQ=" + }, + "model": { + "$ref": "AAAAAAFxH0bGqLx7o38=" + }, + "visible": null, + "font": "Arial;13;0", + "left": 416, + "top": 556, + "height": 13, + "alpha": 1.5707963267948966, + "distance": 30, + "hostEdge": { + "$ref": "AAAAAAFxH0bGqbx/IXQ=" + }, + "edgePosition": 1 + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAFxH0bGqryCOAo=", + "_parent": { + "$ref": "AAAAAAFxH0bGqbx/IXQ=" + }, + "model": { + "$ref": "AAAAAAFxH0bGqLx7o38=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 403, + "top": 599, + "height": 13, + "alpha": -1.5707963267948966, + "distance": 15, + "hostEdge": { + "$ref": "AAAAAAFxH0bGqbx/IXQ=" + }, + "edgePosition": 1 + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAFxH0bGqryDonw=", + "_parent": { + "$ref": "AAAAAAFxH0bGqbx/IXQ=" + }, + "model": { + "$ref": "AAAAAAFxH0bGqLx86Pg=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 386, + "top": 562, + "height": 13, + "alpha": 0.5235987755982988, + "distance": 30, + "hostEdge": { + "$ref": "AAAAAAFxH0bGqbx/IXQ=" + }, + "edgePosition": 2 + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAFxH0bGqryEcA8=", + "_parent": { + "$ref": "AAAAAAFxH0bGqbx/IXQ=" + }, + "model": { + "$ref": "AAAAAAFxH0bGqLx86Pg=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 392, + "top": 550, + "height": 13, + "alpha": 0.7853981633974483, + "distance": 40, + "hostEdge": { + "$ref": "AAAAAAFxH0bGqbx/IXQ=" + }, + "edgePosition": 2 + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAFxH0bGqryFdiI=", + "_parent": { + "$ref": "AAAAAAFxH0bGqbx/IXQ=" + }, + "model": { + "$ref": "AAAAAAFxH0bGqLx86Pg=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 373, + "top": 587, + "height": 13, + "alpha": -0.5235987755982988, + "distance": 25, + "hostEdge": { + "$ref": "AAAAAAFxH0bGqbx/IXQ=" + }, + "edgePosition": 2 + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAFxH0bGqryG5Ek=", + "_parent": { + "$ref": "AAAAAAFxH0bGqbx/IXQ=" + }, + "model": { + "$ref": "AAAAAAFxH0bGqLx9UTY=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 439, + "top": 578, + "height": 13, + "alpha": -0.5235987755982988, + "distance": 30, + "hostEdge": { + "$ref": "AAAAAAFxH0bGqbx/IXQ=" + } + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAFxH0bGqryHi7Y=", + "_parent": { + "$ref": "AAAAAAFxH0bGqbx/IXQ=" + }, + "model": { + "$ref": "AAAAAAFxH0bGqLx9UTY=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 441, + "top": 565, + "height": 13, + "alpha": -0.7853981633974483, + "distance": 40, + "hostEdge": { + "$ref": "AAAAAAFxH0bGqbx/IXQ=" + } + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAFxH0bGqryIYHg=", + "_parent": { + "$ref": "AAAAAAFxH0bGqbx/IXQ=" + }, + "model": { + "$ref": "AAAAAAFxH0bGqLx9UTY=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 435, + "top": 606, + "height": 13, + "alpha": 0.5235987755982988, + "distance": 25, + "hostEdge": { + "$ref": "AAAAAAFxH0bGqbx/IXQ=" + } + }, + { + "_type": "UMLQualifierCompartmentView", + "_id": "AAAAAAFxH0bGqryJeqM=", + "_parent": { + "$ref": "AAAAAAFxH0bGqbx/IXQ=" + }, + "model": { + "$ref": "AAAAAAFxH0bGqLx86Pg=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 72, + "top": 120, + "width": 10, + "height": 10 + }, + { + "_type": "UMLQualifierCompartmentView", + "_id": "AAAAAAFxH0bGqryKO4I=", + "_parent": { + "$ref": "AAAAAAFxH0bGqbx/IXQ=" + }, + "model": { + "$ref": "AAAAAAFxH0bGqLx9UTY=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 72, + "top": 120, + "width": 10, + "height": 10 + } + ], + "font": "Arial;13;0", + "head": { + "$ref": "AAAAAAFxH0Z0urv/7Ss=" + }, + "tail": { + "$ref": "AAAAAAFxHzF3wbAMxHM=" + }, + "lineStyle": 1, + "points": "357:575;460:607", + "showVisibility": true, + "nameLabel": { + "$ref": "AAAAAAFxH0bGqbyApOQ=" + }, + "stereotypeLabel": { + "$ref": "AAAAAAFxH0bGqbyBVHk=" + }, + "propertyLabel": { + "$ref": "AAAAAAFxH0bGqryCOAo=" + }, + "tailRoleNameLabel": { + "$ref": "AAAAAAFxH0bGqryDonw=" + }, + "tailPropertyLabel": { + "$ref": "AAAAAAFxH0bGqryEcA8=" + }, + "tailMultiplicityLabel": { + "$ref": "AAAAAAFxH0bGqryFdiI=" + }, + "headRoleNameLabel": { + "$ref": "AAAAAAFxH0bGqryG5Ek=" + }, + "headPropertyLabel": { + "$ref": "AAAAAAFxH0bGqryHi7Y=" + }, + "headMultiplicityLabel": { + "$ref": "AAAAAAFxH0bGqryIYHg=" + }, + "tailQualifiersCompartment": { + "$ref": "AAAAAAFxH0bGqryJeqM=" + }, + "headQualifiersCompartment": { + "$ref": "AAAAAAFxH0bGqryKO4I=" + } + }, + { + "_type": "UMLUseCaseView", + "_id": "AAAAAAFxH0bVFbzeaSk=", + "_parent": { + "$ref": "AAAAAAFxHzFaKrAGXvE=" + }, + "model": { + "$ref": "AAAAAAFxH0bVFbzcvok=" + }, + "subViews": [ + { + "_type": "UMLNameCompartmentView", + "_id": "AAAAAAFxH0bVFrzff2w=", + "_parent": { + "$ref": "AAAAAAFxH0bVFbzeaSk=" + }, + "model": { + "$ref": "AAAAAAFxH0bVFbzcvok=" + }, + "subViews": [ + { + "_type": "LabelView", + "_id": "AAAAAAFxH0bVFrzgYaU=", + "_parent": { + "$ref": "AAAAAAFxH0bVFrzff2w=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 64, + "top": 208, + "height": 13 + }, + { + "_type": "LabelView", + "_id": "AAAAAAFxH0bVFrzhR3k=", + "_parent": { + "$ref": "AAAAAAFxH0bVFrzff2w=" + }, + "font": "Arial;13;1", + "left": 735, + "top": 555.5, + "width": 151, + "height": 13, + "text": "Mostrar ganancia del día" + }, + { + "_type": "LabelView", + "_id": "AAAAAAFxH0bVFrziXcQ=", + "_parent": { + "$ref": "AAAAAAFxH0bVFrzff2w=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 64, + "top": 208, + "width": 80.9072265625, + "height": 13, + "text": "(from Model1)" + }, + { + "_type": "LabelView", + "_id": "AAAAAAFxH0bVFrzj4H0=", + "_parent": { + "$ref": "AAAAAAFxH0bVFrzff2w=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 64, + "top": 208, + "height": 13, + "horizontalAlignment": 1 + } + ], + "font": "Arial;13;0", + "left": 730, + "top": 548.5, + "width": 162.4326171875, + "height": 25, + "stereotypeLabel": { + "$ref": "AAAAAAFxH0bVFrzgYaU=" + }, + "nameLabel": { + "$ref": "AAAAAAFxH0bVFrzhR3k=" + }, + "namespaceLabel": { + "$ref": "AAAAAAFxH0bVFrziXcQ=" + }, + "propertyLabel": { + "$ref": "AAAAAAFxH0bVFrzj4H0=" + } + }, + { + "_type": "UMLAttributeCompartmentView", + "_id": "AAAAAAFxH0bVFrzkAcA=", + "_parent": { + "$ref": "AAAAAAFxH0bVFbzeaSk=" + }, + "model": { + "$ref": "AAAAAAFxH0bVFbzcvok=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 32, + "top": 104, + "width": 10, + "height": 10 + }, + { + "_type": "UMLOperationCompartmentView", + "_id": "AAAAAAFxH0bVFrzleBU=", + "_parent": { + "$ref": "AAAAAAFxH0bVFbzeaSk=" + }, + "model": { + "$ref": "AAAAAAFxH0bVFbzcvok=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 32, + "top": 104, + "width": 10, + "height": 10 + }, + { + "_type": "UMLReceptionCompartmentView", + "_id": "AAAAAAFxH0bVFrzmBxw=", + "_parent": { + "$ref": "AAAAAAFxH0bVFbzeaSk=" + }, + "model": { + "$ref": "AAAAAAFxH0bVFbzcvok=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 32, + "top": 104, + "width": 10, + "height": 10 + }, + { + "_type": "UMLTemplateParameterCompartmentView", + "_id": "AAAAAAFxH0bVF7znH+o=", + "_parent": { + "$ref": "AAAAAAFxH0bVFbzeaSk=" + }, + "model": { + "$ref": "AAAAAAFxH0bVFbzcvok=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 32, + "top": 104, + "width": 10, + "height": 10 + }, + { + "_type": "UMLExtensionPointCompartmentView", + "_id": "AAAAAAFxH0bVF7zoa1Y=", + "_parent": { + "$ref": "AAAAAAFxH0bVFbzeaSk=" + }, + "model": { + "$ref": "AAAAAAFxH0bVFbzcvok=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 32, + "top": 104, + "width": 10, + "height": 10 + } + ], + "font": "Arial;13;0", + "containerChangeable": true, + "left": 696, + "top": 544, + "width": 229, + "height": 35, + "nameCompartment": { + "$ref": "AAAAAAFxH0bVFrzff2w=" + }, + "suppressAttributes": true, + "suppressOperations": true, + "attributeCompartment": { + "$ref": "AAAAAAFxH0bVFrzkAcA=" + }, + "operationCompartment": { + "$ref": "AAAAAAFxH0bVFrzleBU=" + }, + "receptionCompartment": { + "$ref": "AAAAAAFxH0bVFrzmBxw=" + }, + "templateParameterCompartment": { + "$ref": "AAAAAAFxH0bVF7znH+o=" + }, + "extensionPointCompartment": { + "$ref": "AAAAAAFxH0bVF7zoa1Y=" + } + }, + { + "_type": "UMLUseCaseView", + "_id": "AAAAAAFxH0e+1b4UVqU=", + "_parent": { + "$ref": "AAAAAAFxHzFaKrAGXvE=" + }, + "model": { + "$ref": "AAAAAAFxH0e+1L4SoP8=" + }, + "subViews": [ + { + "_type": "UMLNameCompartmentView", + "_id": "AAAAAAFxH0e+1b4VQZQ=", + "_parent": { + "$ref": "AAAAAAFxH0e+1b4UVqU=" + }, + "model": { + "$ref": "AAAAAAFxH0e+1L4SoP8=" + }, + "subViews": [ + { + "_type": "LabelView", + "_id": "AAAAAAFxH0e+1b4WNPA=", + "_parent": { + "$ref": "AAAAAAFxH0e+1b4VQZQ=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 144, + "top": 208, + "height": 13 + }, + { + "_type": "LabelView", + "_id": "AAAAAAFxH0e+1b4XSt8=", + "_parent": { + "$ref": "AAAAAAFxH0e+1b4VQZQ=" + }, + "font": "Arial;13;1", + "left": 719, + "top": 619.5, + "width": 192, + "height": 13, + "text": "Mostrar ganancia de la semana" + }, + { + "_type": "LabelView", + "_id": "AAAAAAFxH0e+1b4YrYU=", + "_parent": { + "$ref": "AAAAAAFxH0e+1b4VQZQ=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 144, + "top": 208, + "width": 80.9072265625, + "height": 13, + "text": "(from Model1)" + }, + { + "_type": "LabelView", + "_id": "AAAAAAFxH0e+1b4ZYpE=", + "_parent": { + "$ref": "AAAAAAFxH0e+1b4VQZQ=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 144, + "top": 208, + "height": 13, + "horizontalAlignment": 1 + } + ], + "font": "Arial;13;0", + "left": 714, + "top": 612.5, + "width": 202.91162109375, + "height": 25, + "stereotypeLabel": { + "$ref": "AAAAAAFxH0e+1b4WNPA=" + }, + "nameLabel": { + "$ref": "AAAAAAFxH0e+1b4XSt8=" + }, + "namespaceLabel": { + "$ref": "AAAAAAFxH0e+1b4YrYU=" + }, + "propertyLabel": { + "$ref": "AAAAAAFxH0e+1b4ZYpE=" + } + }, + { + "_type": "UMLAttributeCompartmentView", + "_id": "AAAAAAFxH0e+1b4aDPk=", + "_parent": { + "$ref": "AAAAAAFxH0e+1b4UVqU=" + }, + "model": { + "$ref": "AAAAAAFxH0e+1L4SoP8=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 72, + "top": 104, + "width": 10, + "height": 10 + }, + { + "_type": "UMLOperationCompartmentView", + "_id": "AAAAAAFxH0e+1r4bHOQ=", + "_parent": { + "$ref": "AAAAAAFxH0e+1b4UVqU=" + }, + "model": { + "$ref": "AAAAAAFxH0e+1L4SoP8=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 72, + "top": 104, + "width": 10, + "height": 10 + }, + { + "_type": "UMLReceptionCompartmentView", + "_id": "AAAAAAFxH0e+1r4c3ig=", + "_parent": { + "$ref": "AAAAAAFxH0e+1b4UVqU=" + }, + "model": { + "$ref": "AAAAAAFxH0e+1L4SoP8=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 72, + "top": 104, + "width": 10, + "height": 10 + }, + { + "_type": "UMLTemplateParameterCompartmentView", + "_id": "AAAAAAFxH0e+1r4dp5U=", + "_parent": { + "$ref": "AAAAAAFxH0e+1b4UVqU=" + }, + "model": { + "$ref": "AAAAAAFxH0e+1L4SoP8=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 72, + "top": 104, + "width": 10, + "height": 10 + }, + { + "_type": "UMLExtensionPointCompartmentView", + "_id": "AAAAAAFxH0e+1r4eXn4=", + "_parent": { + "$ref": "AAAAAAFxH0e+1b4UVqU=" + }, + "model": { + "$ref": "AAAAAAFxH0e+1L4SoP8=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 72, + "top": 104, + "width": 10, + "height": 10 + } + ], + "font": "Arial;13;0", + "containerChangeable": true, + "left": 672, + "top": 608, + "width": 286, + "height": 35, + "nameCompartment": { + "$ref": "AAAAAAFxH0e+1b4VQZQ=" + }, + "suppressAttributes": true, + "suppressOperations": true, + "attributeCompartment": { + "$ref": "AAAAAAFxH0e+1b4aDPk=" + }, + "operationCompartment": { + "$ref": "AAAAAAFxH0e+1r4bHOQ=" + }, + "receptionCompartment": { + "$ref": "AAAAAAFxH0e+1r4c3ig=" + }, + "templateParameterCompartment": { + "$ref": "AAAAAAFxH0e+1r4dp5U=" + }, + "extensionPointCompartment": { + "$ref": "AAAAAAFxH0e+1r4eXn4=" + } + }, + { + "_type": "UMLUseCaseView", + "_id": "AAAAAAFxH0f6Ar6vjnI=", + "_parent": { + "$ref": "AAAAAAFxHzFaKrAGXvE=" + }, + "model": { + "$ref": "AAAAAAFxH0f6Ar6tiUc=" + }, + "subViews": [ + { + "_type": "UMLNameCompartmentView", + "_id": "AAAAAAFxH0f6Ar6wCKo=", + "_parent": { + "$ref": "AAAAAAFxH0f6Ar6vjnI=" + }, + "model": { + "$ref": "AAAAAAFxH0f6Ar6tiUc=" + }, + "subViews": [ + { + "_type": "LabelView", + "_id": "AAAAAAFxH0f6Ar6xf4E=", + "_parent": { + "$ref": "AAAAAAFxH0f6Ar6wCKo=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 64, + "top": 240, + "height": 13 + }, + { + "_type": "LabelView", + "_id": "AAAAAAFxH0f6Ar6yZ7Q=", + "_parent": { + "$ref": "AAAAAAFxH0f6Ar6wCKo=" + }, + "font": "Arial;13;1", + "left": 736.5, + "top": 683.5, + "width": 158, + "height": 13, + "text": "Mostrar ganancia del més" + }, + { + "_type": "LabelView", + "_id": "AAAAAAFxH0f6A76zaJ8=", + "_parent": { + "$ref": "AAAAAAFxH0f6Ar6wCKo=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 64, + "top": 240, + "width": 80.9072265625, + "height": 13, + "text": "(from Model1)" + }, + { + "_type": "LabelView", + "_id": "AAAAAAFxH0f6A760Apg=", + "_parent": { + "$ref": "AAAAAAFxH0f6Ar6wCKo=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 64, + "top": 240, + "height": 13, + "horizontalAlignment": 1 + } + ], + "font": "Arial;13;0", + "left": 731.5, + "top": 676.5, + "width": 169.6689453125, + "height": 25, + "stereotypeLabel": { + "$ref": "AAAAAAFxH0f6Ar6xf4E=" + }, + "nameLabel": { + "$ref": "AAAAAAFxH0f6Ar6yZ7Q=" + }, + "namespaceLabel": { + "$ref": "AAAAAAFxH0f6A76zaJ8=" + }, + "propertyLabel": { + "$ref": "AAAAAAFxH0f6A760Apg=" + } + }, + { + "_type": "UMLAttributeCompartmentView", + "_id": "AAAAAAFxH0f6A761iEQ=", + "_parent": { + "$ref": "AAAAAAFxH0f6Ar6vjnI=" + }, + "model": { + "$ref": "AAAAAAFxH0f6Ar6tiUc=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 32, + "top": 120, + "width": 10, + "height": 10 + }, + { + "_type": "UMLOperationCompartmentView", + "_id": "AAAAAAFxH0f6A762cOo=", + "_parent": { + "$ref": "AAAAAAFxH0f6Ar6vjnI=" + }, + "model": { + "$ref": "AAAAAAFxH0f6Ar6tiUc=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 32, + "top": 120, + "width": 10, + "height": 10 + }, + { + "_type": "UMLReceptionCompartmentView", + "_id": "AAAAAAFxH0f6A763Bao=", + "_parent": { + "$ref": "AAAAAAFxH0f6Ar6vjnI=" + }, + "model": { + "$ref": "AAAAAAFxH0f6Ar6tiUc=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 32, + "top": 120, + "width": 10, + "height": 10 + }, + { + "_type": "UMLTemplateParameterCompartmentView", + "_id": "AAAAAAFxH0f6A764ojM=", + "_parent": { + "$ref": "AAAAAAFxH0f6Ar6vjnI=" + }, + "model": { + "$ref": "AAAAAAFxH0f6Ar6tiUc=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 32, + "top": 120, + "width": 10, + "height": 10 + }, + { + "_type": "UMLExtensionPointCompartmentView", + "_id": "AAAAAAFxH0f6A765EU0=", + "_parent": { + "$ref": "AAAAAAFxH0f6Ar6vjnI=" + }, + "model": { + "$ref": "AAAAAAFxH0f6Ar6tiUc=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 32, + "top": 120, + "width": 10, + "height": 10 + } + ], + "font": "Arial;13;0", + "containerChangeable": true, + "left": 696, + "top": 672, + "width": 239, + "height": 35, + "nameCompartment": { + "$ref": "AAAAAAFxH0f6Ar6wCKo=" + }, + "suppressAttributes": true, + "suppressOperations": true, + "attributeCompartment": { + "$ref": "AAAAAAFxH0f6A761iEQ=" + }, + "operationCompartment": { + "$ref": "AAAAAAFxH0f6A762cOo=" + }, + "receptionCompartment": { + "$ref": "AAAAAAFxH0f6A763Bao=" + }, + "templateParameterCompartment": { + "$ref": "AAAAAAFxH0f6A764ojM=" + }, + "extensionPointCompartment": { + "$ref": "AAAAAAFxH0f6A765EU0=" + } + }, + { + "_type": "UMLUseCaseView", + "_id": "AAAAAAFxH0hhwL/Ak+c=", + "_parent": { + "$ref": "AAAAAAFxHzFaKrAGXvE=" + }, + "model": { + "$ref": "AAAAAAFxHzVyDbBm3Q0=" + }, + "subViews": [ + { + "_type": "UMLNameCompartmentView", + "_id": "AAAAAAFxH0hhwL/BwKg=", + "_parent": { + "$ref": "AAAAAAFxH0hhwL/Ak+c=" + }, + "model": { + "$ref": "AAAAAAFxHzVyDbBm3Q0=" + }, + "subViews": [ + { + "_type": "LabelView", + "_id": "AAAAAAFxH0hhwL/CMhc=", + "_parent": { + "$ref": "AAAAAAFxH0hhwL/BwKg=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 1130, + "top": 1082, + "height": 13 + }, + { + "_type": "LabelView", + "_id": "AAAAAAFxH0hhwL/DOO4=", + "_parent": { + "$ref": "AAAAAAFxH0hhwL/BwKg=" + }, + "font": "Arial;13;1", + "left": 831, + "top": 752.5, + "width": 65, + "height": 13, + "text": "Loguearse" + }, + { + "_type": "LabelView", + "_id": "AAAAAAFxH0hhwL/EqMw=", + "_parent": { + "$ref": "AAAAAAFxH0hhwL/BwKg=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 1130, + "top": 1082, + "width": 80.9072265625, + "height": 13, + "text": "(from Model1)" + }, + { + "_type": "LabelView", + "_id": "AAAAAAFxH0hhwL/F2IU=", + "_parent": { + "$ref": "AAAAAAFxH0hhwL/BwKg=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 1130, + "top": 1082, + "height": 13, + "horizontalAlignment": 1 + } + ], + "font": "Arial;13;0", + "left": 826, + "top": 745.5, + "width": 75.74267578125, + "height": 25, + "stereotypeLabel": { + "$ref": "AAAAAAFxH0hhwL/CMhc=" + }, + "nameLabel": { + "$ref": "AAAAAAFxH0hhwL/DOO4=" + }, + "namespaceLabel": { + "$ref": "AAAAAAFxH0hhwL/EqMw=" + }, + "propertyLabel": { + "$ref": "AAAAAAFxH0hhwL/F2IU=" + } + }, + { + "_type": "UMLAttributeCompartmentView", + "_id": "AAAAAAFxH0hhwL/Gwdg=", + "_parent": { + "$ref": "AAAAAAFxH0hhwL/Ak+c=" + }, + "model": { + "$ref": "AAAAAAFxHzVyDbBm3Q0=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 720, + "top": 696, + "width": 10, + "height": 10 + }, + { + "_type": "UMLOperationCompartmentView", + "_id": "AAAAAAFxH0hhwL/HZLg=", + "_parent": { + "$ref": "AAAAAAFxH0hhwL/Ak+c=" + }, + "model": { + "$ref": "AAAAAAFxHzVyDbBm3Q0=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 720, + "top": 696, + "width": 10, + "height": 10 + }, + { + "_type": "UMLReceptionCompartmentView", + "_id": "AAAAAAFxH0hhwL/Isyc=", + "_parent": { + "$ref": "AAAAAAFxH0hhwL/Ak+c=" + }, + "model": { + "$ref": "AAAAAAFxHzVyDbBm3Q0=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 720, + "top": 696, + "width": 10, + "height": 10 + }, + { + "_type": "UMLTemplateParameterCompartmentView", + "_id": "AAAAAAFxH0hhwL/JT6k=", + "_parent": { + "$ref": "AAAAAAFxH0hhwL/Ak+c=" + }, + "model": { + "$ref": "AAAAAAFxHzVyDbBm3Q0=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 720, + "top": 696, + "width": 10, + "height": 10 + }, + { + "_type": "UMLExtensionPointCompartmentView", + "_id": "AAAAAAFxH0hhwL/KLtk=", + "_parent": { + "$ref": "AAAAAAFxH0hhwL/Ak+c=" + }, + "model": { + "$ref": "AAAAAAFxHzVyDbBm3Q0=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 720, + "top": 696, + "width": 10, + "height": 10 + } + ], + "font": "Arial;13;0", + "containerChangeable": true, + "left": 810, + "top": 738, + "width": 107, + "height": 41, + "nameCompartment": { + "$ref": "AAAAAAFxH0hhwL/BwKg=" + }, + "suppressAttributes": true, + "suppressOperations": true, + "attributeCompartment": { + "$ref": "AAAAAAFxH0hhwL/Gwdg=" + }, + "operationCompartment": { + "$ref": "AAAAAAFxH0hhwL/HZLg=" + }, + "receptionCompartment": { + "$ref": "AAAAAAFxH0hhwL/Isyc=" + }, + "templateParameterCompartment": { + "$ref": "AAAAAAFxH0hhwL/JT6k=" + }, + "extensionPointCompartment": { + "$ref": "AAAAAAFxH0hhwL/KLtk=" + } + }, + { + "_type": "UMLUseCaseView", + "_id": "AAAAAAFxH0hhwb/L2aM=", + "_parent": { + "$ref": "AAAAAAFxHzFaKrAGXvE=" + }, + "model": { + "$ref": "AAAAAAFxHzrLDrIWkI0=" + }, + "subViews": [ + { + "_type": "UMLNameCompartmentView", + "_id": "AAAAAAFxH0hhwb/M0Xs=", + "_parent": { + "$ref": "AAAAAAFxH0hhwb/L2aM=" + }, + "model": { + "$ref": "AAAAAAFxHzrLDrIWkI0=" + }, + "subViews": [ + { + "_type": "LabelView", + "_id": "AAAAAAFxH0hhwb/NYHE=", + "_parent": { + "$ref": "AAAAAAFxH0hhwb/M0Xs=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 810, + "top": 746, + "height": 13 + }, + { + "_type": "LabelView", + "_id": "AAAAAAFxH0hhwb/OB+M=", + "_parent": { + "$ref": "AAAAAAFxH0hhwb/M0Xs=" + }, + "font": "Arial;13;1", + "left": 984, + "top": 749.5, + "width": 71, + "height": 13, + "text": "Registrarse" + }, + { + "_type": "LabelView", + "_id": "AAAAAAFxH0hhwb/Py1o=", + "_parent": { + "$ref": "AAAAAAFxH0hhwb/M0Xs=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 810, + "top": 746, + "width": 80.9072265625, + "height": 13, + "text": "(from Model1)" + }, + { + "_type": "LabelView", + "_id": "AAAAAAFxH0hhwb/Qvbo=", + "_parent": { + "$ref": "AAAAAAFxH0hhwb/M0Xs=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 810, + "top": 746, + "height": 13, + "horizontalAlignment": 1 + } + ], + "font": "Arial;13;0", + "left": 979, + "top": 742.5, + "width": 81.5380859375, + "height": 25, + "stereotypeLabel": { + "$ref": "AAAAAAFxH0hhwb/NYHE=" + }, + "nameLabel": { + "$ref": "AAAAAAFxH0hhwb/OB+M=" + }, + "namespaceLabel": { + "$ref": "AAAAAAFxH0hhwb/Py1o=" + }, + "propertyLabel": { + "$ref": "AAAAAAFxH0hhwb/Qvbo=" + } + }, + { + "_type": "UMLAttributeCompartmentView", + "_id": "AAAAAAFxH0hhwb/REpE=", + "_parent": { + "$ref": "AAAAAAFxH0hhwb/L2aM=" + }, + "model": { + "$ref": "AAAAAAFxHzrLDrIWkI0=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 450, + "top": 522, + "width": 10, + "height": 10 + }, + { + "_type": "UMLOperationCompartmentView", + "_id": "AAAAAAFxH0hhwb/S4cM=", + "_parent": { + "$ref": "AAAAAAFxH0hhwb/L2aM=" + }, + "model": { + "$ref": "AAAAAAFxHzrLDrIWkI0=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 450, + "top": 522, + "width": 10, + "height": 10 + }, + { + "_type": "UMLReceptionCompartmentView", + "_id": "AAAAAAFxH0hhwb/TfLI=", + "_parent": { + "$ref": "AAAAAAFxH0hhwb/L2aM=" + }, + "model": { + "$ref": "AAAAAAFxHzrLDrIWkI0=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 450, + "top": 522, + "width": 10, + "height": 10 + }, + { + "_type": "UMLTemplateParameterCompartmentView", + "_id": "AAAAAAFxH0hhwb/UV4o=", + "_parent": { + "$ref": "AAAAAAFxH0hhwb/L2aM=" + }, + "model": { + "$ref": "AAAAAAFxHzrLDrIWkI0=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 450, + "top": 522, + "width": 10, + "height": 10 + }, + { + "_type": "UMLExtensionPointCompartmentView", + "_id": "AAAAAAFxH0hhwb/VE0o=", + "_parent": { + "$ref": "AAAAAAFxH0hhwb/L2aM=" + }, + "model": { + "$ref": "AAAAAAFxHzrLDrIWkI0=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 450, + "top": 522, + "width": 10, + "height": 10 + } + ], + "font": "Arial;13;0", + "containerChangeable": true, + "left": 962, + "top": 738, + "width": 115, + "height": 35, + "nameCompartment": { + "$ref": "AAAAAAFxH0hhwb/M0Xs=" + }, + "suppressAttributes": true, + "suppressOperations": true, + "attributeCompartment": { + "$ref": "AAAAAAFxH0hhwb/REpE=" + }, + "operationCompartment": { + "$ref": "AAAAAAFxH0hhwb/S4cM=" + }, + "receptionCompartment": { + "$ref": "AAAAAAFxH0hhwb/TfLI=" + }, + "templateParameterCompartment": { + "$ref": "AAAAAAFxH0hhwb/UV4o=" + }, + "extensionPointCompartment": { + "$ref": "AAAAAAFxH0hhwb/VE0o=" + } + }, + { + "_type": "UMLIncludeView", + "_id": "AAAAAAFxH0hhwb/WVVM=", + "_parent": { + "$ref": "AAAAAAFxHzFaKrAGXvE=" + }, + "model": { + "$ref": "AAAAAAFxHzrtNbJQo/w=" + }, + "subViews": [ + { + "_type": "EdgeLabelView", + "_id": "AAAAAAFxH0hhwb/X4wo=", + "_parent": { + "$ref": "AAAAAAFxH0hhwb/WVVM=" + }, + "model": { + "$ref": "AAAAAAFxHzrtNbJQo/w=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 939, + "top": 735, + "height": 13, + "alpha": 1.5707963267948966, + "distance": 15, + "hostEdge": { + "$ref": "AAAAAAFxH0hhwb/WVVM=" + }, + "edgePosition": 1 + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAFxH0hhwb/Y6/A=", + "_parent": { + "$ref": "AAAAAAFxH0hhwb/WVVM=" + }, + "model": { + "$ref": "AAAAAAFxHzrtNbJQo/w=" + }, + "font": "Arial;13;0", + "left": 912, + "top": 738, + "width": 55.65625, + "height": 13, + "alpha": 1.5707954934615633, + "distance": 12, + "hostEdge": { + "$ref": "AAAAAAFxH0hhwb/WVVM=" + }, + "edgePosition": 1, + "text": "«include»" + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAFxH0hhwb/Z7cI=", + "_parent": { + "$ref": "AAAAAAFxH0hhwb/WVVM=" + }, + "model": { + "$ref": "AAAAAAFxHzrtNbJQo/w=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 939, + "top": 765, + "height": 13, + "alpha": -1.5707963267948966, + "distance": 15, + "hostEdge": { + "$ref": "AAAAAAFxH0hhwb/WVVM=" + }, + "edgePosition": 1 + } + ], + "font": "Arial;13;0", + "head": { + "$ref": "AAAAAAFxH0hhwb/L2aM=" + }, + "tail": { + "$ref": "AAAAAAFxH0hhwL/Ak+c=" + }, + "lineStyle": 1, + "points": "917:757;961:756", + "showVisibility": true, + "nameLabel": { + "$ref": "AAAAAAFxH0hhwb/X4wo=" + }, + "stereotypeLabel": { + "$ref": "AAAAAAFxH0hhwb/Y6/A=" + }, + "propertyLabel": { + "$ref": "AAAAAAFxH0hhwb/Z7cI=" + } + }, + { + "_type": "UMLIncludeView", + "_id": "AAAAAAFxH0rwPcB6uto=", + "_parent": { + "$ref": "AAAAAAFxHzFaKrAGXvE=" + }, + "model": { + "$ref": "AAAAAAFxH0rwPcB4PJY=" + }, + "subViews": [ + { + "_type": "EdgeLabelView", + "_id": "AAAAAAFxH0rwPcB7lP0=", + "_parent": { + "$ref": "AAAAAAFxH0rwPcB6uto=" + }, + "model": { + "$ref": "AAAAAAFxH0rwPcB4PJY=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 520, + "top": 715, + "height": 13, + "alpha": 1.5707963267948966, + "distance": 15, + "hostEdge": { + "$ref": "AAAAAAFxH0rwPcB6uto=" + }, + "edgePosition": 1 + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAFxH0rwPcB8I0g=", + "_parent": { + "$ref": "AAAAAAFxH0rwPcB6uto=" + }, + "model": { + "$ref": "AAAAAAFxH0rwPcB4PJY=" + }, + "font": "Arial;13;0", + "left": 528, + "top": 720, + "width": 55.65625, + "height": 13, + "alpha": 0.34394904985017277, + "distance": 36.40054944640259, + "hostEdge": { + "$ref": "AAAAAAFxH0rwPcB6uto=" + }, + "edgePosition": 1, + "text": "«include»" + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAFxH0rwPcB9rcU=", + "_parent": { + "$ref": "AAAAAAFxH0rwPcB6uto=" + }, + "model": { + "$ref": "AAAAAAFxH0rwPcB4PJY=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 519, + "top": 744, + "height": 13, + "alpha": -1.5707963267948966, + "distance": 15, + "hostEdge": { + "$ref": "AAAAAAFxH0rwPcB6uto=" + }, + "edgePosition": 1 + } + ], + "font": "Arial;13;0", + "head": { + "$ref": "AAAAAAFxH0hhwL/Ak+c=" + }, + "tail": { + "$ref": "AAAAAAFxH0Z0urv/7Ss=" + }, + "lineStyle": 1, + "points": "517:643;520:736;809:755", + "showVisibility": true, + "nameLabel": { + "$ref": "AAAAAAFxH0rwPcB7lP0=" + }, + "stereotypeLabel": { + "$ref": "AAAAAAFxH0rwPcB8I0g=" + }, + "propertyLabel": { + "$ref": "AAAAAAFxH0rwPcB9rcU=" + } + }, + { + "_type": "UMLExtendView", + "_id": "AAAAAAFxH0uC08GL3vE=", + "_parent": { + "$ref": "AAAAAAFxHzFaKrAGXvE=" + }, + "model": { + "$ref": "AAAAAAFxH0uC0sGJP10=" + }, + "subViews": [ + { + "_type": "EdgeLabelView", + "_id": "AAAAAAFxH0uC08GM7u4=", + "_parent": { + "$ref": "AAAAAAFxH0uC08GL3vE=" + }, + "model": { + "$ref": "AAAAAAFxH0uC0sGJP10=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 616, + "top": 566, + "height": 13, + "alpha": 1.5707963267948966, + "distance": 15, + "hostEdge": { + "$ref": "AAAAAAFxH0uC08GL3vE=" + }, + "edgePosition": 1 + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAFxH0uC08GNysE=", + "_parent": { + "$ref": "AAAAAAFxH0uC08GL3vE=" + }, + "model": { + "$ref": "AAAAAAFxH0uC0sGJP10=" + }, + "font": "Arial;13;0", + "left": 616, + "top": 544, + "width": 53.49169921875, + "height": 13, + "alpha": 2.808829177359832, + "distance": 35.4400902933387, + "hostEdge": { + "$ref": "AAAAAAFxH0uC08GL3vE=" + }, + "edgePosition": 1, + "text": "«extend»" + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAFxH0uC08GOaBo=", + "_parent": { + "$ref": "AAAAAAFxH0uC08GL3vE=" + }, + "model": { + "$ref": "AAAAAAFxH0uC0sGJP10=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 599, + "top": 541, + "height": 13, + "alpha": -1.5707963267948966, + "distance": 15, + "hostEdge": { + "$ref": "AAAAAAFxH0uC08GL3vE=" + }, + "edgePosition": 1 + } + ], + "font": "Arial;13;0", + "head": { + "$ref": "AAAAAAFxH0Z0urv/7Ss=" + }, + "tail": { + "$ref": "AAAAAAFxH0bVFbzeaSk=" + }, + "lineStyle": 1, + "points": "695:560;608:560;542:607", + "showVisibility": true, + "nameLabel": { + "$ref": "AAAAAAFxH0uC08GM7u4=" + }, + "stereotypeLabel": { + "$ref": "AAAAAAFxH0uC08GNysE=" + }, + "propertyLabel": { + "$ref": "AAAAAAFxH0uC08GOaBo=" + } + }, + { + "_type": "UMLExtendView", + "_id": "AAAAAAFxH0udpsG3iSc=", + "_parent": { + "$ref": "AAAAAAFxHzFaKrAGXvE=" + }, + "model": { + "$ref": "AAAAAAFxH0udpsG1zsI=" + }, + "subViews": [ + { + "_type": "EdgeLabelView", + "_id": "AAAAAAFxH0udpsG4Sug=", + "_parent": { + "$ref": "AAAAAAFxH0udpsG3iSc=" + }, + "model": { + "$ref": "AAAAAAFxH0udpsG1zsI=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 628, + "top": 634, + "height": 13, + "alpha": 1.5707963267948966, + "distance": 15, + "hostEdge": { + "$ref": "AAAAAAFxH0udpsG3iSc=" + }, + "edgePosition": 1 + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAFxH0udpsG5Yjk=", + "_parent": { + "$ref": "AAAAAAFxH0udpsG3iSc=" + }, + "model": { + "$ref": "AAAAAAFxH0udpsG1zsI=" + }, + "font": "Arial;13;0", + "left": 607, + "top": 612, + "width": 53.49169921875, + "height": 13, + "alpha": 4.047943489675325, + "distance": 7.810249675906654, + "hostEdge": { + "$ref": "AAAAAAFxH0udpsG3iSc=" + }, + "edgePosition": 1, + "text": "«extend»" + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAFxH0udpsG6HQg=", + "_parent": { + "$ref": "AAAAAAFxH0udpsG3iSc=" + }, + "model": { + "$ref": "AAAAAAFxH0udpsG1zsI=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 629, + "top": 604, + "height": 13, + "alpha": -1.5707963267948966, + "distance": 15, + "hostEdge": { + "$ref": "AAAAAAFxH0udpsG3iSc=" + }, + "edgePosition": 1 + } + ], + "font": "Arial;13;0", + "head": { + "$ref": "AAAAAAFxH0Z0urv/7Ss=" + }, + "tail": { + "$ref": "AAAAAAFxH0e+1b4UVqU=" + }, + "lineStyle": 1, + "points": "671:625;588:625", + "showVisibility": true, + "nameLabel": { + "$ref": "AAAAAAFxH0udpsG4Sug=" + }, + "stereotypeLabel": { + "$ref": "AAAAAAFxH0udpsG5Yjk=" + }, + "propertyLabel": { + "$ref": "AAAAAAFxH0udpsG6HQg=" + } + }, + { + "_type": "UMLExtendView", + "_id": "AAAAAAFxH0ulIsHjNW0=", + "_parent": { + "$ref": "AAAAAAFxHzFaKrAGXvE=" + }, + "model": { + "$ref": "AAAAAAFxH0ulIsHhtkc=" + }, + "subViews": [ + { + "_type": "EdgeLabelView", + "_id": "AAAAAAFxH0ulIsHkWwg=", + "_parent": { + "$ref": "AAAAAAFxH0ulIsHjNW0=" + }, + "model": { + "$ref": "AAAAAAFxH0ulIsHhtkc=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 599, + "top": 694, + "height": 13, + "alpha": 1.5707963267948966, + "distance": 15, + "hostEdge": { + "$ref": "AAAAAAFxH0ulIsHjNW0=" + }, + "edgePosition": 1 + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAFxH0ulJcHlP0w=", + "_parent": { + "$ref": "AAAAAAFxH0ulIsHjNW0=" + }, + "model": { + "$ref": "AAAAAAFxH0ulIsHhtkc=" + }, + "font": "Arial;13;0", + "left": 616, + "top": 672, + "width": 53.49169921875, + "height": 13, + "alpha": 4.033188751294276, + "distance": 35.4400902933387, + "hostEdge": { + "$ref": "AAAAAAFxH0ulIsHjNW0=" + }, + "edgePosition": 1, + "text": "«extend»" + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAFxH0ulJcHmJ54=", + "_parent": { + "$ref": "AAAAAAFxH0ulIsHjNW0=" + }, + "model": { + "$ref": "AAAAAAFxH0ulIsHhtkc=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 616, + "top": 669, + "height": 13, + "alpha": -1.5707963267948966, + "distance": 15, + "hostEdge": { + "$ref": "AAAAAAFxH0ulIsHjNW0=" + }, + "edgePosition": 1 + } + ], + "font": "Arial;13;0", + "head": { + "$ref": "AAAAAAFxH0Z0urv/7Ss=" + }, + "tail": { + "$ref": "AAAAAAFxH0f6Ar6vjnI=" + }, + "lineStyle": 1, + "points": "695:688;608:688;543:643", + "showVisibility": true, + "nameLabel": { + "$ref": "AAAAAAFxH0ulIsHkWwg=" + }, + "stereotypeLabel": { + "$ref": "AAAAAAFxH0ulJcHlP0w=" + }, + "propertyLabel": { + "$ref": "AAAAAAFxH0ulJcHmJ54=" + } + }, + { + "_type": "UMLUseCaseView", + "_id": "AAAAAAFxH02KhsVUr6Q=", + "_parent": { + "$ref": "AAAAAAFxHzFaKrAGXvE=" + }, + "model": { + "$ref": "AAAAAAFxH02KhcVSWc0=" + }, + "subViews": [ + { + "_type": "UMLNameCompartmentView", + "_id": "AAAAAAFxH02Kh8VV3f8=", + "_parent": { + "$ref": "AAAAAAFxH02KhsVUr6Q=" + }, + "model": { + "$ref": "AAAAAAFxH02KhcVSWc0=" + }, + "subViews": [ + { + "_type": "LabelView", + "_id": "AAAAAAFxH02Kh8VWe+Y=", + "_parent": { + "$ref": "AAAAAAFxH02Kh8VV3f8=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 176, + "top": 368, + "height": 13 + }, + { + "_type": "LabelView", + "_id": "AAAAAAFxH02Kh8VXwW4=", + "_parent": { + "$ref": "AAAAAAFxH02Kh8VV3f8=" + }, + "font": "Arial;13;1", + "left": 489, + "top": 867.5, + "width": 84, + "height": 13, + "text": "Mostrar ticket" + }, + { + "_type": "LabelView", + "_id": "AAAAAAFxH02Kh8VYNIY=", + "_parent": { + "$ref": "AAAAAAFxH02Kh8VV3f8=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 176, + "top": 368, + "width": 80.9072265625, + "height": 13, + "text": "(from Model1)" + }, + { + "_type": "LabelView", + "_id": "AAAAAAFxH02Kh8VZm/s=", + "_parent": { + "$ref": "AAAAAAFxH02Kh8VV3f8=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 176, + "top": 368, + "height": 13, + "horizontalAlignment": 1 + } + ], + "font": "Arial;13;0", + "left": 484, + "top": 860.5, + "width": 95.2490234375, + "height": 25, + "stereotypeLabel": { + "$ref": "AAAAAAFxH02Kh8VWe+Y=" + }, + "nameLabel": { + "$ref": "AAAAAAFxH02Kh8VXwW4=" + }, + "namespaceLabel": { + "$ref": "AAAAAAFxH02Kh8VYNIY=" + }, + "propertyLabel": { + "$ref": "AAAAAAFxH02Kh8VZm/s=" + } + }, + { + "_type": "UMLAttributeCompartmentView", + "_id": "AAAAAAFxH02Kh8VaA0U=", + "_parent": { + "$ref": "AAAAAAFxH02KhsVUr6Q=" + }, + "model": { + "$ref": "AAAAAAFxH02KhcVSWc0=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 88, + "top": 184, + "width": 10, + "height": 10 + }, + { + "_type": "UMLOperationCompartmentView", + "_id": "AAAAAAFxH02Kh8VbI1k=", + "_parent": { + "$ref": "AAAAAAFxH02KhsVUr6Q=" + }, + "model": { + "$ref": "AAAAAAFxH02KhcVSWc0=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 88, + "top": 184, + "width": 10, + "height": 10 + }, + { + "_type": "UMLReceptionCompartmentView", + "_id": "AAAAAAFxH02Kh8VcVSc=", + "_parent": { + "$ref": "AAAAAAFxH02KhsVUr6Q=" + }, + "model": { + "$ref": "AAAAAAFxH02KhcVSWc0=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 88, + "top": 184, + "width": 10, + "height": 10 + }, + { + "_type": "UMLTemplateParameterCompartmentView", + "_id": "AAAAAAFxH02Kh8VdRTI=", + "_parent": { + "$ref": "AAAAAAFxH02KhsVUr6Q=" + }, + "model": { + "$ref": "AAAAAAFxH02KhcVSWc0=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 88, + "top": 184, + "width": 10, + "height": 10 + }, + { + "_type": "UMLExtensionPointCompartmentView", + "_id": "AAAAAAFxH02Kh8Ve1Mo=", + "_parent": { + "$ref": "AAAAAAFxH02KhsVUr6Q=" + }, + "model": { + "$ref": "AAAAAAFxH02KhcVSWc0=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 88, + "top": 184, + "width": 10, + "height": 10 + } + ], + "font": "Arial;13;0", + "containerChangeable": true, + "left": 464, + "top": 856, + "width": 134, + "height": 35, + "nameCompartment": { + "$ref": "AAAAAAFxH02Kh8VV3f8=" + }, + "suppressAttributes": true, + "suppressOperations": true, + "attributeCompartment": { + "$ref": "AAAAAAFxH02Kh8VaA0U=" + }, + "operationCompartment": { + "$ref": "AAAAAAFxH02Kh8VbI1k=" + }, + "receptionCompartment": { + "$ref": "AAAAAAFxH02Kh8VcVSc=" + }, + "templateParameterCompartment": { + "$ref": "AAAAAAFxH02Kh8VdRTI=" + }, + "extensionPointCompartment": { + "$ref": "AAAAAAFxH02Kh8Ve1Mo=" + } + }, + { + "_type": "UMLAssociationView", + "_id": "AAAAAAFxH0247cWovoU=", + "_parent": { + "$ref": "AAAAAAFxHzFaKrAGXvE=" + }, + "model": { + "$ref": "AAAAAAFxH0247MWkszY=" + }, + "subViews": [ + { + "_type": "EdgeLabelView", + "_id": "AAAAAAFxH0247cWpVyU=", + "_parent": { + "$ref": "AAAAAAFxH0247cWovoU=" + }, + "model": { + "$ref": "AAAAAAFxH0247MWkszY=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 422, + "top": 707, + "height": 13, + "alpha": 1.5707963267948966, + "distance": 15, + "hostEdge": { + "$ref": "AAAAAAFxH0247cWovoU=" + }, + "edgePosition": 1 + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAFxH0247cWqy9o=", + "_parent": { + "$ref": "AAAAAAFxH0247cWovoU=" + }, + "model": { + "$ref": "AAAAAAFxH0247MWkszY=" + }, + "visible": null, + "font": "Arial;13;0", + "left": 434, + "top": 698, + "height": 13, + "alpha": 1.5707963267948966, + "distance": 30, + "hostEdge": { + "$ref": "AAAAAAFxH0247cWovoU=" + }, + "edgePosition": 1 + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAFxH0247cWra3Y=", + "_parent": { + "$ref": "AAAAAAFxH0247cWovoU=" + }, + "model": { + "$ref": "AAAAAAFxH0247MWkszY=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 399, + "top": 726, + "height": 13, + "alpha": -1.5707963267948966, + "distance": 15, + "hostEdge": { + "$ref": "AAAAAAFxH0247cWovoU=" + }, + "edgePosition": 1 + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAFxH0247cWsj7w=", + "_parent": { + "$ref": "AAAAAAFxH0247cWovoU=" + }, + "model": { + "$ref": "AAAAAAFxH0247MWlZDc=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 333, + "top": 596, + "height": 13, + "alpha": 0.5235987755982988, + "distance": 30, + "hostEdge": { + "$ref": "AAAAAAFxH0247cWovoU=" + }, + "edgePosition": 2 + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAFxH0247cWtEo0=", + "_parent": { + "$ref": "AAAAAAFxH0247cWovoU=" + }, + "model": { + "$ref": "AAAAAAFxH0247MWlZDc=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 345, + "top": 590, + "height": 13, + "alpha": 0.7853981633974483, + "distance": 40, + "hostEdge": { + "$ref": "AAAAAAFxH0247cWovoU=" + }, + "edgePosition": 2 + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAFxH0247cWuRMU=", + "_parent": { + "$ref": "AAAAAAFxH0247cWovoU=" + }, + "model": { + "$ref": "AAAAAAFxH0247MWlZDc=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 309, + "top": 610, + "height": 13, + "alpha": -0.5235987755982988, + "distance": 25, + "hostEdge": { + "$ref": "AAAAAAFxH0247cWovoU=" + }, + "edgePosition": 2 + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAFxH0247cWvKB8=", + "_parent": { + "$ref": "AAAAAAFxH0247cWovoU=" + }, + "model": { + "$ref": "AAAAAAFxH0247MWmOvs=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 511, + "top": 819, + "height": 13, + "alpha": -0.5235987755982988, + "distance": 30, + "hostEdge": { + "$ref": "AAAAAAFxH0247cWovoU=" + } + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAFxH0247cWweVE=", + "_parent": { + "$ref": "AAAAAAFxH0247cWovoU=" + }, + "model": { + "$ref": "AAAAAAFxH0247MWmOvs=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 520, + "top": 809, + "height": 13, + "alpha": -0.7853981633974483, + "distance": 40, + "hostEdge": { + "$ref": "AAAAAAFxH0247cWovoU=" + } + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAFxH0247cWxsG4=", + "_parent": { + "$ref": "AAAAAAFxH0247cWovoU=" + }, + "model": { + "$ref": "AAAAAAFxH0247MWmOvs=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 492, + "top": 839, + "height": 13, + "alpha": 0.5235987755982988, + "distance": 25, + "hostEdge": { + "$ref": "AAAAAAFxH0247cWovoU=" + } + }, + { + "_type": "UMLQualifierCompartmentView", + "_id": "AAAAAAFxH0247cWyN3g=", + "_parent": { + "$ref": "AAAAAAFxH0247cWovoU=" + }, + "model": { + "$ref": "AAAAAAFxH0247MWlZDc=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 72, + "top": 120, + "width": 10, + "height": 10 + }, + { + "_type": "UMLQualifierCompartmentView", + "_id": "AAAAAAFxH0247cWzkj4=", + "_parent": { + "$ref": "AAAAAAFxH0247cWovoU=" + }, + "model": { + "$ref": "AAAAAAFxH0247MWmOvs=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 72, + "top": 120, + "width": 10, + "height": 10 + } + ], + "font": "Arial;13;0", + "head": { + "$ref": "AAAAAAFxH02KhsVUr6Q=" + }, + "tail": { + "$ref": "AAAAAAFxHzF3wbAMxHM=" + }, + "lineStyle": 1, + "points": "306:592;516:855", + "showVisibility": true, + "nameLabel": { + "$ref": "AAAAAAFxH0247cWpVyU=" + }, + "stereotypeLabel": { + "$ref": "AAAAAAFxH0247cWqy9o=" + }, + "propertyLabel": { + "$ref": "AAAAAAFxH0247cWra3Y=" + }, + "tailRoleNameLabel": { + "$ref": "AAAAAAFxH0247cWsj7w=" + }, + "tailPropertyLabel": { + "$ref": "AAAAAAFxH0247cWtEo0=" + }, + "tailMultiplicityLabel": { + "$ref": "AAAAAAFxH0247cWuRMU=" + }, + "headRoleNameLabel": { + "$ref": "AAAAAAFxH0247cWvKB8=" + }, + "headPropertyLabel": { + "$ref": "AAAAAAFxH0247cWweVE=" + }, + "headMultiplicityLabel": { + "$ref": "AAAAAAFxH0247cWxsG4=" + }, + "tailQualifiersCompartment": { + "$ref": "AAAAAAFxH0247cWyN3g=" + }, + "headQualifiersCompartment": { + "$ref": "AAAAAAFxH0247cWzkj4=" + } + }, + { + "_type": "UMLIncludeView", + "_id": "AAAAAAFxH04LNMac5a8=", + "_parent": { + "$ref": "AAAAAAFxHzFaKrAGXvE=" + }, + "model": { + "$ref": "AAAAAAFxH04LNMaakic=" + }, + "subViews": [ + { + "_type": "EdgeLabelView", + "_id": "AAAAAAFxH04LNMadSaQ=", + "_parent": { + "$ref": "AAAAAAFxH04LNMac5a8=" + }, + "model": { + "$ref": "AAAAAAFxH04LNMaakic=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 526, + "top": 771, + "height": 13, + "alpha": 1.5707963267948966, + "distance": 15, + "hostEdge": { + "$ref": "AAAAAAFxH04LNMac5a8=" + }, + "edgePosition": 1 + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAFxH04LNMaeSdc=", + "_parent": { + "$ref": "AAAAAAFxH04LNMac5a8=" + }, + "model": { + "$ref": "AAAAAAFxH04LNMaakic=" + }, + "font": "Arial;13;0", + "left": 544, + "top": 791, + "width": 55.65625, + "height": 13, + "alpha": -0.24147847386909144, + "distance": 43.41658669218482, + "hostEdge": { + "$ref": "AAAAAAFxH04LNMac5a8=" + }, + "edgePosition": 1, + "text": "«include»" + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAFxH04LNMafHOM=", + "_parent": { + "$ref": "AAAAAAFxH04LNMac5a8=" + }, + "model": { + "$ref": "AAAAAAFxH04LNMaakic=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 529, + "top": 800, + "height": 13, + "alpha": -1.5707963267948966, + "distance": 15, + "hostEdge": { + "$ref": "AAAAAAFxH04LNMac5a8=" + }, + "edgePosition": 1 + } + ], + "font": "Arial;13;0", + "head": { + "$ref": "AAAAAAFxH0hhwL/Ak+c=" + }, + "tail": { + "$ref": "AAAAAAFxH02KhsVUr6Q=" + }, + "lineStyle": 1, + "points": "530:855;528:792;809:763", + "showVisibility": true, + "nameLabel": { + "$ref": "AAAAAAFxH04LNMadSaQ=" + }, + "stereotypeLabel": { + "$ref": "AAAAAAFxH04LNMaeSdc=" + }, + "propertyLabel": { + "$ref": "AAAAAAFxH04LNMafHOM=" + } + }, + { + "_type": "UMLUseCaseView", + "_id": "AAAAAAFxH05ps8d7Dok=", + "_parent": { + "$ref": "AAAAAAFxHzFaKrAGXvE=" + }, + "model": { + "$ref": "AAAAAAFxH05pssd5fGM=" + }, + "subViews": [ + { + "_type": "UMLNameCompartmentView", + "_id": "AAAAAAFxH05ps8d8Mig=", + "_parent": { + "$ref": "AAAAAAFxH05ps8d7Dok=" + }, + "model": { + "$ref": "AAAAAAFxH05pssd5fGM=" + }, + "subViews": [ + { + "_type": "LabelView", + "_id": "AAAAAAFxH05ptMd9KTY=", + "_parent": { + "$ref": "AAAAAAFxH05ps8d8Mig=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 144, + "top": 240, + "height": 13 + }, + { + "_type": "LabelView", + "_id": "AAAAAAFxH05ptMd+HMQ=", + "_parent": { + "$ref": "AAAAAAFxH05ps8d8Mig=" + }, + "font": "Arial;13;1", + "left": 750.5, + "top": 867.5, + "width": 73, + "height": 13, + "text": "Elegir ticket" + }, + { + "_type": "LabelView", + "_id": "AAAAAAFxH05ptMd/jSc=", + "_parent": { + "$ref": "AAAAAAFxH05ps8d8Mig=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 144, + "top": 240, + "width": 80.9072265625, + "height": 13, + "text": "(from Model1)" + }, + { + "_type": "LabelView", + "_id": "AAAAAAFxH05ptMeA2dE=", + "_parent": { + "$ref": "AAAAAAFxH05ps8d8Mig=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 144, + "top": 240, + "height": 13, + "horizontalAlignment": 1 + } + ], + "font": "Arial;13;0", + "left": 745.5, + "top": 860.5, + "width": 83.6962890625, + "height": 25, + "stereotypeLabel": { + "$ref": "AAAAAAFxH05ptMd9KTY=" + }, + "nameLabel": { + "$ref": "AAAAAAFxH05ptMd+HMQ=" + }, + "namespaceLabel": { + "$ref": "AAAAAAFxH05ptMd/jSc=" + }, + "propertyLabel": { + "$ref": "AAAAAAFxH05ptMeA2dE=" + } + }, + { + "_type": "UMLAttributeCompartmentView", + "_id": "AAAAAAFxH05ptMeB6Zs=", + "_parent": { + "$ref": "AAAAAAFxH05ps8d7Dok=" + }, + "model": { + "$ref": "AAAAAAFxH05pssd5fGM=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 72, + "top": 120, + "width": 10, + "height": 10 + }, + { + "_type": "UMLOperationCompartmentView", + "_id": "AAAAAAFxH05ptMeCv1Y=", + "_parent": { + "$ref": "AAAAAAFxH05ps8d7Dok=" + }, + "model": { + "$ref": "AAAAAAFxH05pssd5fGM=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 72, + "top": 120, + "width": 10, + "height": 10 + }, + { + "_type": "UMLReceptionCompartmentView", + "_id": "AAAAAAFxH05ptMeD0Z8=", + "_parent": { + "$ref": "AAAAAAFxH05ps8d7Dok=" + }, + "model": { + "$ref": "AAAAAAFxH05pssd5fGM=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 72, + "top": 120, + "width": 10, + "height": 10 + }, + { + "_type": "UMLTemplateParameterCompartmentView", + "_id": "AAAAAAFxH05ptMeEsiE=", + "_parent": { + "$ref": "AAAAAAFxH05ps8d7Dok=" + }, + "model": { + "$ref": "AAAAAAFxH05pssd5fGM=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 72, + "top": 120, + "width": 10, + "height": 10 + }, + { + "_type": "UMLExtensionPointCompartmentView", + "_id": "AAAAAAFxH05ptMeF5lA=", + "_parent": { + "$ref": "AAAAAAFxH05ps8d7Dok=" + }, + "model": { + "$ref": "AAAAAAFxH05pssd5fGM=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 72, + "top": 120, + "width": 10, + "height": 10 + } + ], + "font": "Arial;13;0", + "containerChangeable": true, + "left": 728, + "top": 856, + "width": 118, + "height": 35, + "nameCompartment": { + "$ref": "AAAAAAFxH05ps8d8Mig=" + }, + "suppressAttributes": true, + "suppressOperations": true, + "attributeCompartment": { + "$ref": "AAAAAAFxH05ptMeB6Zs=" + }, + "operationCompartment": { + "$ref": "AAAAAAFxH05ptMeCv1Y=" + }, + "receptionCompartment": { + "$ref": "AAAAAAFxH05ptMeD0Z8=" + }, + "templateParameterCompartment": { + "$ref": "AAAAAAFxH05ptMeEsiE=" + }, + "extensionPointCompartment": { + "$ref": "AAAAAAFxH05ptMeF5lA=" + } + }, + { + "_type": "UMLIncludeView", + "_id": "AAAAAAFxH07CucfZ6g4=", + "_parent": { + "$ref": "AAAAAAFxHzFaKrAGXvE=" + }, + "model": { + "$ref": "AAAAAAFxH07CuMfXJEw=" + }, + "subViews": [ + { + "_type": "EdgeLabelView", + "_id": "AAAAAAFxH07CucfaRe8=", + "_parent": { + "$ref": "AAAAAAFxH07CucfZ6g4=" + }, + "model": { + "$ref": "AAAAAAFxH07CuMfXJEw=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 662, + "top": 852, + "height": 13, + "alpha": 1.5707963267948966, + "distance": 15, + "hostEdge": { + "$ref": "AAAAAAFxH07CucfZ6g4=" + }, + "edgePosition": 1 + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAFxH07CucfbYv4=", + "_parent": { + "$ref": "AAAAAAFxH07CucfZ6g4=" + }, + "model": { + "$ref": "AAAAAAFxH07CuMfXJEw=" + }, + "font": "Arial;13;0", + "left": 635, + "top": 856, + "width": 55.65625, + "height": 13, + "alpha": 1.5707954177039876, + "distance": 11, + "hostEdge": { + "$ref": "AAAAAAFxH07CucfZ6g4=" + }, + "edgePosition": 1, + "text": "«include»" + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAFxH07Cucfcypk=", + "_parent": { + "$ref": "AAAAAAFxH07CucfZ6g4=" + }, + "model": { + "$ref": "AAAAAAFxH07CuMfXJEw=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 662, + "top": 882, + "height": 13, + "alpha": -1.5707963267948966, + "distance": 15, + "hostEdge": { + "$ref": "AAAAAAFxH07CucfZ6g4=" + }, + "edgePosition": 1 + } + ], + "font": "Arial;13;0", + "head": { + "$ref": "AAAAAAFxH05ps8d7Dok=" + }, + "tail": { + "$ref": "AAAAAAFxH02KhsVUr6Q=" + }, + "lineStyle": 1, + "points": "598:873;727:873", + "showVisibility": true, + "nameLabel": { + "$ref": "AAAAAAFxH07CucfaRe8=" + }, + "stereotypeLabel": { + "$ref": "AAAAAAFxH07CucfbYv4=" + }, + "propertyLabel": { + "$ref": "AAAAAAFxH07Cucfcypk=" + } + }, + { + "_type": "UMLUseCaseView", + "_id": "AAAAAAFxH09A7sjQNEQ=", + "_parent": { + "$ref": "AAAAAAFxHzFaKrAGXvE=" + }, + "model": { + "$ref": "AAAAAAFxH09A7sjOaYs=" + }, + "subViews": [ + { + "_type": "UMLNameCompartmentView", + "_id": "AAAAAAFxH09A7sjR9Vw=", + "_parent": { + "$ref": "AAAAAAFxH09A7sjQNEQ=" + }, + "model": { + "$ref": "AAAAAAFxH09A7sjOaYs=" + }, + "subViews": [ + { + "_type": "LabelView", + "_id": "AAAAAAFxH09A7sjSDFI=", + "_parent": { + "$ref": "AAAAAAFxH09A7sjR9Vw=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 144, + "top": 256, + "height": 13 + }, + { + "_type": "LabelView", + "_id": "AAAAAAFxH09A78jTwTE=", + "_parent": { + "$ref": "AAAAAAFxH09A7sjR9Vw=" + }, + "font": "Arial;13;1", + "left": 1117.5, + "top": 510, + "width": 107, + "height": 13, + "text": "Realizar pedido" + }, + { + "_type": "LabelView", + "_id": "AAAAAAFxH09A78jUA7s=", + "_parent": { + "$ref": "AAAAAAFxH09A7sjR9Vw=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 144, + "top": 256, + "width": 80.9072265625, + "height": 13, + "text": "(from Model1)" + }, + { + "_type": "LabelView", + "_id": "AAAAAAFxH09A78jVYXs=", + "_parent": { + "$ref": "AAAAAAFxH09A7sjR9Vw=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 144, + "top": 256, + "height": 13, + "horizontalAlignment": 1 + } + ], + "font": "Arial;13;0", + "left": 1112.5, + "top": 503, + "width": 117, + "height": 25, + "stereotypeLabel": { + "$ref": "AAAAAAFxH09A7sjSDFI=" + }, + "nameLabel": { + "$ref": "AAAAAAFxH09A78jTwTE=" + }, + "namespaceLabel": { + "$ref": "AAAAAAFxH09A78jUA7s=" + }, + "propertyLabel": { + "$ref": "AAAAAAFxH09A78jVYXs=" + } + }, + { + "_type": "UMLAttributeCompartmentView", + "_id": "AAAAAAFxH09A78jWJHs=", + "_parent": { + "$ref": "AAAAAAFxH09A7sjQNEQ=" + }, + "model": { + "$ref": "AAAAAAFxH09A7sjOaYs=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 72, + "top": 128, + "width": 10, + "height": 10 + }, + { + "_type": "UMLOperationCompartmentView", + "_id": "AAAAAAFxH09A78jXUss=", + "_parent": { + "$ref": "AAAAAAFxH09A7sjQNEQ=" + }, + "model": { + "$ref": "AAAAAAFxH09A7sjOaYs=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 72, + "top": 128, + "width": 10, + "height": 10 + }, + { + "_type": "UMLReceptionCompartmentView", + "_id": "AAAAAAFxH09A78jYbJk=", + "_parent": { + "$ref": "AAAAAAFxH09A7sjQNEQ=" + }, + "model": { + "$ref": "AAAAAAFxH09A7sjOaYs=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 72, + "top": 128, + "width": 10, + "height": 10 + }, + { + "_type": "UMLTemplateParameterCompartmentView", + "_id": "AAAAAAFxH09A78jZQdA=", + "_parent": { + "$ref": "AAAAAAFxH09A7sjQNEQ=" + }, + "model": { + "$ref": "AAAAAAFxH09A7sjOaYs=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 72, + "top": 128, + "width": 10, + "height": 10 + }, + { + "_type": "UMLExtensionPointCompartmentView", + "_id": "AAAAAAFxH09A78jaDF0=", + "_parent": { + "$ref": "AAAAAAFxH09A7sjQNEQ=" + }, + "model": { + "$ref": "AAAAAAFxH09A7sjOaYs=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 72, + "top": 128, + "width": 10, + "height": 10 + } + ], + "font": "Arial;13;0", + "containerChangeable": true, + "left": 1088, + "top": 496, + "width": 166, + "height": 40, + "nameCompartment": { + "$ref": "AAAAAAFxH09A7sjR9Vw=" + }, + "suppressAttributes": true, + "suppressOperations": true, + "attributeCompartment": { + "$ref": "AAAAAAFxH09A78jWJHs=" + }, + "operationCompartment": { + "$ref": "AAAAAAFxH09A78jXUss=" + }, + "receptionCompartment": { + "$ref": "AAAAAAFxH09A78jYbJk=" + }, + "templateParameterCompartment": { + "$ref": "AAAAAAFxH09A78jZQdA=" + }, + "extensionPointCompartment": { + "$ref": "AAAAAAFxH09A78jaDF0=" + } + }, + { + "_type": "UMLAssociationView", + "_id": "AAAAAAFxH09pSMlITNg=", + "_parent": { + "$ref": "AAAAAAFxHzFaKrAGXvE=" + }, + "model": { + "$ref": "AAAAAAFxH09pR8lEuKo=" + }, + "subViews": [ + { + "_type": "EdgeLabelView", + "_id": "AAAAAAFxH09pSMlJ0JY=", + "_parent": { + "$ref": "AAAAAAFxH09pSMlITNg=" + }, + "model": { + "$ref": "AAAAAAFxH09pR8lEuKo=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 1305, + "top": 489, + "height": 13, + "alpha": 1.5707963267948966, + "distance": 15, + "hostEdge": { + "$ref": "AAAAAAFxH09pSMlITNg=" + }, + "edgePosition": 1 + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAFxH09pSMlKmuk=", + "_parent": { + "$ref": "AAAAAAFxH09pSMlITNg=" + }, + "model": { + "$ref": "AAAAAAFxH09pR8lEuKo=" + }, + "visible": null, + "font": "Arial;13;0", + "left": 1305, + "top": 474, + "height": 13, + "alpha": 1.5707963267948966, + "distance": 30, + "hostEdge": { + "$ref": "AAAAAAFxH09pSMlITNg=" + }, + "edgePosition": 1 + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAFxH09pSMlL1Ng=", + "_parent": { + "$ref": "AAAAAAFxH09pSMlITNg=" + }, + "model": { + "$ref": "AAAAAAFxH09pR8lEuKo=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 1306, + "top": 518, + "height": 13, + "alpha": -1.5707963267948966, + "distance": 15, + "hostEdge": { + "$ref": "AAAAAAFxH09pSMlITNg=" + }, + "edgePosition": 1 + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAFxH09pSMlMJ+g=", + "_parent": { + "$ref": "AAAAAAFxH09pSMlITNg=" + }, + "model": { + "$ref": "AAAAAAFxH09pR8lFYIc=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 1279, + "top": 490, + "height": 13, + "alpha": 0.5235987755982988, + "distance": 30, + "hostEdge": { + "$ref": "AAAAAAFxH09pSMlITNg=" + }, + "edgePosition": 2 + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAFxH09pSMlNPXA=", + "_parent": { + "$ref": "AAAAAAFxH09pSMlITNg=" + }, + "model": { + "$ref": "AAAAAAFxH09pR8lFYIc=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 1281, + "top": 476, + "height": 13, + "alpha": 0.7853981633974483, + "distance": 40, + "hostEdge": { + "$ref": "AAAAAAFxH09pSMlITNg=" + }, + "edgePosition": 2 + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAFxH09pSMlO/yU=", + "_parent": { + "$ref": "AAAAAAFxH09pSMlITNg=" + }, + "model": { + "$ref": "AAAAAAFxH09pR8lFYIc=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 1275, + "top": 517, + "height": 13, + "alpha": -0.5235987755982988, + "distance": 25, + "hostEdge": { + "$ref": "AAAAAAFxH09pSMlITNg=" + }, + "edgePosition": 2 + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAFxH09pSMlP+LQ=", + "_parent": { + "$ref": "AAAAAAFxH09pSMlITNg=" + }, + "model": { + "$ref": "AAAAAAFxH09pR8lGxp0=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 1332, + "top": 488, + "height": 13, + "alpha": -0.5235987755982988, + "distance": 30, + "hostEdge": { + "$ref": "AAAAAAFxH09pSMlITNg=" + } + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAFxH09pSMlQvlM=", + "_parent": { + "$ref": "AAAAAAFxH09pSMlITNg=" + }, + "model": { + "$ref": "AAAAAAFxH09pR8lGxp0=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 1329, + "top": 475, + "height": 13, + "alpha": -0.7853981633974483, + "distance": 40, + "hostEdge": { + "$ref": "AAAAAAFxH09pSMlITNg=" + } + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAFxH09pSclR0fA=", + "_parent": { + "$ref": "AAAAAAFxH09pSMlITNg=" + }, + "model": { + "$ref": "AAAAAAFxH09pR8lGxp0=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 1337, + "top": 516, + "height": 13, + "alpha": 0.5235987755982988, + "distance": 25, + "hostEdge": { + "$ref": "AAAAAAFxH09pSMlITNg=" + } + }, + { + "_type": "UMLQualifierCompartmentView", + "_id": "AAAAAAFxH09pSclSBk0=", + "_parent": { + "$ref": "AAAAAAFxH09pSMlITNg=" + }, + "model": { + "$ref": "AAAAAAFxH09pR8lFYIc=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 72, + "top": 120, + "width": 10, + "height": 10 + }, + { + "_type": "UMLQualifierCompartmentView", + "_id": "AAAAAAFxH09pSclT+X8=", + "_parent": { + "$ref": "AAAAAAFxH09pSMlITNg=" + }, + "model": { + "$ref": "AAAAAAFxH09pR8lGxp0=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 72, + "top": 120, + "width": 10, + "height": 10 + } + ], + "font": "Arial;13;0", + "head": { + "$ref": "AAAAAAFxHzHYobA2OSg=" + }, + "tail": { + "$ref": "AAAAAAFxH09A7sjQNEQ=" + }, + "lineStyle": 1, + "points": "1254:512;1359:509", + "showVisibility": true, + "nameLabel": { + "$ref": "AAAAAAFxH09pSMlJ0JY=" + }, + "stereotypeLabel": { + "$ref": "AAAAAAFxH09pSMlKmuk=" + }, + "propertyLabel": { + "$ref": "AAAAAAFxH09pSMlL1Ng=" + }, + "tailRoleNameLabel": { + "$ref": "AAAAAAFxH09pSMlMJ+g=" + }, + "tailPropertyLabel": { + "$ref": "AAAAAAFxH09pSMlNPXA=" + }, + "tailMultiplicityLabel": { + "$ref": "AAAAAAFxH09pSMlO/yU=" + }, + "headRoleNameLabel": { + "$ref": "AAAAAAFxH09pSMlP+LQ=" + }, + "headPropertyLabel": { + "$ref": "AAAAAAFxH09pSMlQvlM=" + }, + "headMultiplicityLabel": { + "$ref": "AAAAAAFxH09pSclR0fA=" + }, + "tailQualifiersCompartment": { + "$ref": "AAAAAAFxH09pSclSBk0=" + }, + "headQualifiersCompartment": { + "$ref": "AAAAAAFxH09pSclT+X8=" + } + }, + { + "_type": "UMLUseCaseView", + "_id": "AAAAAAFxH0/XTMsdFL4=", + "_parent": { + "$ref": "AAAAAAFxHzFaKrAGXvE=" + }, + "model": { + "$ref": "AAAAAAFxH0/XS8sbLkw=" + }, + "subViews": [ + { + "_type": "UMLNameCompartmentView", + "_id": "AAAAAAFxH0/XTMseG4g=", + "_parent": { + "$ref": "AAAAAAFxH0/XTMsdFL4=" + }, + "model": { + "$ref": "AAAAAAFxH0/XS8sbLkw=" + }, + "subViews": [ + { + "_type": "LabelView", + "_id": "AAAAAAFxH0/XTMsfMw8=", + "_parent": { + "$ref": "AAAAAAFxH0/XTMseG4g=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 80, + "top": 272, + "height": 13 + }, + { + "_type": "LabelView", + "_id": "AAAAAAFxH0/XTMsg8hY=", + "_parent": { + "$ref": "AAAAAAFxH0/XTMseG4g=" + }, + "font": "Arial;13;1", + "left": 1140, + "top": 627.5, + "width": 62, + "height": 13, + "text": "Pagar" + }, + { + "_type": "LabelView", + "_id": "AAAAAAFxH0/XTMsh+x8=", + "_parent": { + "$ref": "AAAAAAFxH0/XTMseG4g=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 80, + "top": 272, + "width": 80.9072265625, + "height": 13, + "text": "(from Model1)" + }, + { + "_type": "LabelView", + "_id": "AAAAAAFxH0/XTMsiDrI=", + "_parent": { + "$ref": "AAAAAAFxH0/XTMseG4g=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 80, + "top": 272, + "height": 13, + "horizontalAlignment": 1 + } + ], + "font": "Arial;13;0", + "left": 1135, + "top": 620.5, + "width": 72, + "height": 25, + "stereotypeLabel": { + "$ref": "AAAAAAFxH0/XTMsfMw8=" + }, + "nameLabel": { + "$ref": "AAAAAAFxH0/XTMsg8hY=" + }, + "namespaceLabel": { + "$ref": "AAAAAAFxH0/XTMsh+x8=" + }, + "propertyLabel": { + "$ref": "AAAAAAFxH0/XTMsiDrI=" + } + }, + { + "_type": "UMLAttributeCompartmentView", + "_id": "AAAAAAFxH0/XTMsjPtA=", + "_parent": { + "$ref": "AAAAAAFxH0/XTMsdFL4=" + }, + "model": { + "$ref": "AAAAAAFxH0/XS8sbLkw=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 40, + "top": 136, + "width": 10, + "height": 10 + }, + { + "_type": "UMLOperationCompartmentView", + "_id": "AAAAAAFxH0/XTMskERc=", + "_parent": { + "$ref": "AAAAAAFxH0/XTMsdFL4=" + }, + "model": { + "$ref": "AAAAAAFxH0/XS8sbLkw=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 40, + "top": 136, + "width": 10, + "height": 10 + }, + { + "_type": "UMLReceptionCompartmentView", + "_id": "AAAAAAFxH0/XTMslzqU=", + "_parent": { + "$ref": "AAAAAAFxH0/XTMsdFL4=" + }, + "model": { + "$ref": "AAAAAAFxH0/XS8sbLkw=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 40, + "top": 136, + "width": 10, + "height": 10 + }, + { + "_type": "UMLTemplateParameterCompartmentView", + "_id": "AAAAAAFxH0/XTcsm5Qk=", + "_parent": { + "$ref": "AAAAAAFxH0/XTMsdFL4=" + }, + "model": { + "$ref": "AAAAAAFxH0/XS8sbLkw=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 40, + "top": 136, + "width": 10, + "height": 10 + }, + { + "_type": "UMLExtensionPointCompartmentView", + "_id": "AAAAAAFxH0/XTcsnz9g=", + "_parent": { + "$ref": "AAAAAAFxH0/XTMsdFL4=" + }, + "model": { + "$ref": "AAAAAAFxH0/XS8sbLkw=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 40, + "top": 136, + "width": 10, + "height": 10 + } + ], + "font": "Arial;13;0", + "containerChangeable": true, + "left": 1120, + "top": 616, + "width": 102, + "height": 35, + "nameCompartment": { + "$ref": "AAAAAAFxH0/XTMseG4g=" + }, + "suppressAttributes": true, + "suppressOperations": true, + "attributeCompartment": { + "$ref": "AAAAAAFxH0/XTMsjPtA=" + }, + "operationCompartment": { + "$ref": "AAAAAAFxH0/XTMskERc=" + }, + "receptionCompartment": { + "$ref": "AAAAAAFxH0/XTMslzqU=" + }, + "templateParameterCompartment": { + "$ref": "AAAAAAFxH0/XTcsm5Qk=" + }, + "extensionPointCompartment": { + "$ref": "AAAAAAFxH0/XTcsnz9g=" + } + }, + { + "_type": "UMLIncludeView", + "_id": "AAAAAAFxH1BcMcwuVUg=", + "_parent": { + "$ref": "AAAAAAFxHzFaKrAGXvE=" + }, + "model": { + "$ref": "AAAAAAFxH1BcMcwsrcA=" + }, + "subViews": [ + { + "_type": "EdgeLabelView", + "_id": "AAAAAAFxH1BcMcwv6XI=", + "_parent": { + "$ref": "AAAAAAFxH1BcMcwuVUg=" + }, + "model": { + "$ref": "AAAAAAFxH1BcMcwsrcA=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 1184, + "top": 568, + "height": 13, + "alpha": 1.5707963267948966, + "distance": 15, + "hostEdge": { + "$ref": "AAAAAAFxH1BcMcwuVUg=" + }, + "edgePosition": 1 + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAFxH1BcMcwwcKg=", + "_parent": { + "$ref": "AAAAAAFxH1BcMcwuVUg=" + }, + "model": { + "$ref": "AAAAAAFxH1BcMcwsrcA=" + }, + "font": "Arial;13;0", + "left": 1172, + "top": 568, + "width": 55.65625, + "height": 13, + "alpha": 1.5707963267948966, + "distance": 30, + "hostEdge": { + "$ref": "AAAAAAFxH1BcMcwuVUg=" + }, + "edgePosition": 1, + "text": "«include»" + }, + { + "_type": "EdgeLabelView", + "_id": "AAAAAAFxH1BcMcwxqxA=", + "_parent": { + "$ref": "AAAAAAFxH1BcMcwuVUg=" + }, + "model": { + "$ref": "AAAAAAFxH1BcMcwsrcA=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 1155, + "top": 569, + "height": 13, + "alpha": -1.5707963267948966, + "distance": 15, + "hostEdge": { + "$ref": "AAAAAAFxH1BcMcwuVUg=" + }, + "edgePosition": 1 + } + ], + "font": "Arial;13;0", + "head": { + "$ref": "AAAAAAFxH0/XTMsdFL4=" + }, + "tail": { + "$ref": "AAAAAAFxH09A7sjQNEQ=" + }, + "lineStyle": 1, + "points": "1170:536;1170:615", + "showVisibility": true, + "nameLabel": { + "$ref": "AAAAAAFxH1BcMcwv6XI=" + }, + "stereotypeLabel": { + "$ref": "AAAAAAFxH1BcMcwwcKg=" + }, + "propertyLabel": { + "$ref": "AAAAAAFxH1BcMcwxqxA=" + } + }, + { + "_type": "UMLUseCaseSubjectView", + "_id": "AAAAAAFxH1GrW8zGSmc=", + "_parent": { + "$ref": "AAAAAAFxHzFaKrAGXvE=" + }, + "model": { + "$ref": "AAAAAAFxH1GrWszEaOk=" + }, + "subViews": [ + { + "_type": "UMLNameCompartmentView", + "_id": "AAAAAAFxH1GrfszHXsI=", + "_parent": { + "$ref": "AAAAAAFxH1GrW8zGSmc=" + }, + "model": { + "$ref": "AAAAAAFxH1GrWszEaOk=" + }, + "subViews": [ + { + "_type": "LabelView", + "_id": "AAAAAAFxH1GrfszIiW4=", + "_parent": { + "$ref": "AAAAAAFxH1GrfszHXsI=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 144, + "top": 240, + "height": 13 + }, + { + "_type": "LabelView", + "_id": "AAAAAAFxH1GrfszJ7Y4=", + "_parent": { + "$ref": "AAAAAAFxH1GrfszHXsI=" + }, + "font": "Arial;13;1", + "left": 397, + "top": 87, + "width": 878, + "height": 13, + "text": "Programa Punto de venta \"LA MARQUESITERÃA\"" + }, + { + "_type": "LabelView", + "_id": "AAAAAAFxH1GrfszKW2o=", + "_parent": { + "$ref": "AAAAAAFxH1GrfszHXsI=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 144, + "top": 240, + "width": 80.9072265625, + "height": 13, + "text": "(from Model1)" + }, + { + "_type": "LabelView", + "_id": "AAAAAAFxH1GrfszLoFY=", + "_parent": { + "$ref": "AAAAAAFxH1GrfszHXsI=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 144, + "top": 240, + "height": 13, + "horizontalAlignment": 1 + } + ], + "font": "Arial;13;0", + "left": 392, + "top": 80, + "width": 888, + "height": 25, + "stereotypeLabel": { + "$ref": "AAAAAAFxH1GrfszIiW4=" + }, + "nameLabel": { + "$ref": "AAAAAAFxH1GrfszJ7Y4=" + }, + "namespaceLabel": { + "$ref": "AAAAAAFxH1GrfszKW2o=" + }, + "propertyLabel": { + "$ref": "AAAAAAFxH1GrfszLoFY=" + } + } + ], + "font": "Arial;13;0", + "left": 392, + "top": 80, + "width": 888, + "height": 840, + "nameCompartment": { + "$ref": "AAAAAAFxH1GrfszHXsI=" + } + }, + { + "_type": "UMLUseCaseSubjectView", + "_id": "AAAAAAFxH1LCFc3hqF8=", + "_parent": { + "$ref": "AAAAAAFxHzFaKrAGXvE=" + }, + "model": { + "$ref": "AAAAAAFxH1LCFM3fcis=" + }, + "subViews": [ + { + "_type": "UMLNameCompartmentView", + "_id": "AAAAAAFxH1LCFc3iu+g=", + "_parent": { + "$ref": "AAAAAAFxH1LCFc3hqF8=" + }, + "model": { + "$ref": "AAAAAAFxH1LCFM3fcis=" + }, + "subViews": [ + { + "_type": "LabelView", + "_id": "AAAAAAFxH1LCFs3j3D0=", + "_parent": { + "$ref": "AAAAAAFxH1LCFc3iu+g=" + }, + "visible": false, + "font": "Arial;13;0", + "height": 13 + }, + { + "_type": "LabelView", + "_id": "AAAAAAFxH1LCFs3k8NY=", + "_parent": { + "$ref": "AAAAAAFxH1LCFc3iu+g=" + }, + "font": "Arial;13;1", + "left": 133, + "top": 87, + "width": 254, + "height": 13, + "text": "." + }, + { + "_type": "LabelView", + "_id": "AAAAAAFxH1LCFs3lIcU=", + "_parent": { + "$ref": "AAAAAAFxH1LCFc3iu+g=" + }, + "visible": false, + "font": "Arial;13;0", + "width": 80.9072265625, + "height": 13, + "text": "(from Model1)" + }, + { + "_type": "LabelView", + "_id": "AAAAAAFxH1LCFs3m4YI=", + "_parent": { + "$ref": "AAAAAAFxH1LCFc3iu+g=" + }, + "visible": false, + "font": "Arial;13;0", + "height": 13, + "horizontalAlignment": 1 + } + ], + "font": "Arial;13;0", + "left": 128, + "top": 80, + "width": 264, + "height": 25, + "stereotypeLabel": { + "$ref": "AAAAAAFxH1LCFs3j3D0=" + }, + "nameLabel": { + "$ref": "AAAAAAFxH1LCFs3k8NY=" + }, + "namespaceLabel": { + "$ref": "AAAAAAFxH1LCFs3lIcU=" + }, + "propertyLabel": { + "$ref": "AAAAAAFxH1LCFs3m4YI=" + } + } + ], + "font": "Arial;13;0", + "left": 128, + "top": 80, + "width": 264, + "height": 840, + "nameCompartment": { + "$ref": "AAAAAAFxH1LCFc3iu+g=" + } + }, + { + "_type": "UMLUseCaseSubjectView", + "_id": "AAAAAAFxH1Mn+M8/tjQ=", + "_parent": { + "$ref": "AAAAAAFxHzFaKrAGXvE=" + }, + "model": { + "$ref": "AAAAAAFxH1LCFM3fcis=" + }, + "subViews": [ + { + "_type": "UMLNameCompartmentView", + "_id": "AAAAAAFxH1Mn+M9Ak2Y=", + "_parent": { + "$ref": "AAAAAAFxH1Mn+M8/tjQ=" + }, + "model": { + "$ref": "AAAAAAFxH1LCFM3fcis=" + }, + "subViews": [ + { + "_type": "LabelView", + "_id": "AAAAAAFxH1Mn+M9BxXk=", + "_parent": { + "$ref": "AAAAAAFxH1Mn+M9Ak2Y=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 1587, + "top": -169, + "height": 13 + }, + { + "_type": "LabelView", + "_id": "AAAAAAFxH1Mn+M9ClmM=", + "_parent": { + "$ref": "AAAAAAFxH1Mn+M9Ak2Y=" + }, + "font": "Arial;13;1", + "left": 1285, + "top": 87, + "width": 254, + "height": 13, + "text": "." + }, + { + "_type": "LabelView", + "_id": "AAAAAAFxH1Mn+M9DXUM=", + "_parent": { + "$ref": "AAAAAAFxH1Mn+M9Ak2Y=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 1587, + "top": -169, + "width": 80.9072265625, + "height": 13, + "text": "(from Model1)" + }, + { + "_type": "LabelView", + "_id": "AAAAAAFxH1Mn+M9EU8Y=", + "_parent": { + "$ref": "AAAAAAFxH1Mn+M9Ak2Y=" + }, + "visible": false, + "font": "Arial;13;0", + "left": 1587, + "top": -169, + "height": 13, + "horizontalAlignment": 1 + } + ], + "font": "Arial;13;0", + "left": 1280, + "top": 80, + "width": 264, + "height": 25, + "stereotypeLabel": { + "$ref": "AAAAAAFxH1Mn+M9BxXk=" + }, + "nameLabel": { + "$ref": "AAAAAAFxH1Mn+M9ClmM=" + }, + "namespaceLabel": { + "$ref": "AAAAAAFxH1Mn+M9DXUM=" + }, + "propertyLabel": { + "$ref": "AAAAAAFxH1Mn+M9EU8Y=" + } + } + ], + "font": "Arial;13;0", + "left": 1280, + "top": 80, + "width": 264, + "height": 840, + "nameCompartment": { + "$ref": "AAAAAAFxH1Mn+M9Ak2Y=" + } + } + ] + }, + { + "_type": "UMLActor", + "_id": "AAAAAAFxHzF3wLAKATg=", + "_parent": { + "$ref": "AAAAAAFxHzFaKLAFx/M=" + }, + "name": "Administrador o Vendedor", + "ownedElements": [ + { + "_type": "UMLAssociation", + "_id": "AAAAAAFxHzYmxLDIleo=", + "_parent": { + "$ref": "AAAAAAFxHzF3wLAKATg=" + }, + "end1": { + "_type": "UMLAssociationEnd", + "_id": "AAAAAAFxHzYmxLDJafM=", + "_parent": { + "$ref": "AAAAAAFxHzYmxLDIleo=" + }, + "reference": { + "$ref": "AAAAAAFxHzF3wLAKATg=" + } + }, + "end2": { + "_type": "UMLAssociationEnd", + "_id": "AAAAAAFxHzYmxLDK4uA=", + "_parent": { + "$ref": "AAAAAAFxHzYmxLDIleo=" + }, + "reference": { + "$ref": "AAAAAAFxHzXarbCYYJQ=" + } + } + }, + { + "_type": "UMLAssociation", + "_id": "AAAAAAFxH0FMX7ZtpPo=", + "_parent": { + "$ref": "AAAAAAFxHzF3wLAKATg=" + }, + "end1": { + "_type": "UMLAssociationEnd", + "_id": "AAAAAAFxH0FMX7ZuYHg=", + "_parent": { + "$ref": "AAAAAAFxH0FMX7ZtpPo=" + }, + "reference": { + "$ref": "AAAAAAFxHzF3wLAKATg=" + } + }, + "end2": { + "_type": "UMLAssociationEnd", + "_id": "AAAAAAFxH0FMX7ZvCKI=", + "_parent": { + "$ref": "AAAAAAFxH0FMX7ZtpPo=" + }, + "reference": { + "$ref": "AAAAAAFxH0DrIrYam3g=" + } + } + }, + { + "_type": "UMLAssociation", + "_id": "AAAAAAFxH0bGqLx7o38=", + "_parent": { + "$ref": "AAAAAAFxHzF3wLAKATg=" + }, + "end1": { + "_type": "UMLAssociationEnd", + "_id": "AAAAAAFxH0bGqLx86Pg=", + "_parent": { + "$ref": "AAAAAAFxH0bGqLx7o38=" + }, + "reference": { + "$ref": "AAAAAAFxHzF3wLAKATg=" + } + }, + "end2": { + "_type": "UMLAssociationEnd", + "_id": "AAAAAAFxH0bGqLx9UTY=", + "_parent": { + "$ref": "AAAAAAFxH0bGqLx7o38=" + }, + "reference": { + "$ref": "AAAAAAFxH0Z0urv9IXo=" + } + } + }, + { + "_type": "UMLAssociation", + "_id": "AAAAAAFxH0247MWkszY=", + "_parent": { + "$ref": "AAAAAAFxHzF3wLAKATg=" + }, + "end1": { + "_type": "UMLAssociationEnd", + "_id": "AAAAAAFxH0247MWlZDc=", + "_parent": { + "$ref": "AAAAAAFxH0247MWkszY=" + }, + "reference": { + "$ref": "AAAAAAFxHzF3wLAKATg=" + } + }, + "end2": { + "_type": "UMLAssociationEnd", + "_id": "AAAAAAFxH0247MWmOvs=", + "_parent": { + "$ref": "AAAAAAFxH0247MWkszY=" + }, + "reference": { + "$ref": "AAAAAAFxH02KhcVSWc0=" + } + } + } + ] + }, + { + "_type": "UMLActor", + "_id": "AAAAAAFxHzHYobA0p4M=", + "_parent": { + "$ref": "AAAAAAFxHzFaKLAFx/M=" + }, + "name": "Cliente" + }, + { + "_type": "UMLUseCase", + "_id": "AAAAAAFxHzVyDbBm3Q0=", + "_parent": { + "$ref": "AAAAAAFxHzFaKLAFx/M=" + }, + "name": "Loguearse", + "ownedElements": [ + { + "_type": "UMLInclude", + "_id": "AAAAAAFxHzrtNbJQo/w=", + "_parent": { + "$ref": "AAAAAAFxHzVyDbBm3Q0=" + }, + "source": { + "$ref": "AAAAAAFxHzVyDbBm3Q0=" + }, + "target": { + "$ref": "AAAAAAFxHzrLDrIWkI0=" + } + } + ] + }, + { + "_type": "UMLUseCase", + "_id": "AAAAAAFxHzXarbCYYJQ=", + "_parent": { + "$ref": "AAAAAAFxHzFaKLAFx/M=" + }, + "name": "Vender", + "ownedElements": [ + { + "_type": "UMLInclude", + "_id": "AAAAAAFxHzZHGLELyh4=", + "_parent": { + "$ref": "AAAAAAFxHzXarbCYYJQ=" + }, + "source": { + "$ref": "AAAAAAFxHzXarbCYYJQ=" + }, + "target": { + "$ref": "AAAAAAFxHzVyDbBm3Q0=" + } + }, + { + "_type": "UMLInclude", + "_id": "AAAAAAFxHzo5irHMpiA=", + "_parent": { + "$ref": "AAAAAAFxHzXarbCYYJQ=" + }, + "source": { + "$ref": "AAAAAAFxHzXarbCYYJQ=" + }, + "target": { + "$ref": "AAAAAAFxHznUKLFzCGI=" + } + } + ] + }, + { + "_type": "UMLUseCase", + "_id": "AAAAAAFxHznUKLFzCGI=", + "_parent": { + "$ref": "AAAAAAFxHzFaKLAFx/M=" + }, + "name": "Seleccionar productos", + "ownedElements": [ + { + "_type": "UMLInclude", + "_id": "AAAAAAFxHz1v2bRWjqA=", + "_parent": { + "$ref": "AAAAAAFxHznUKLFzCGI=" + }, + "source": { + "$ref": "AAAAAAFxHznUKLFzCGI=" + }, + "target": { + "$ref": "AAAAAAFxHztRCrKWVMM=" + } + } + ] + }, + { + "_type": "UMLUseCase", + "_id": "AAAAAAFxHzrLDrIWkI0=", + "_parent": { + "$ref": "AAAAAAFxHzFaKLAFx/M=" + }, + "name": "Registrarse" + }, + { + "_type": "UMLUseCase", + "_id": "AAAAAAFxHztRCrKWVMM=", + "_parent": { + "$ref": "AAAAAAFxHzFaKLAFx/M=" + }, + "name": "Cobrar", + "ownedElements": [ + { + "_type": "UMLInclude", + "_id": "AAAAAAFxHz3WNrSWeVo=", + "_parent": { + "$ref": "AAAAAAFxHztRCrKWVMM=" + }, + "source": { + "$ref": "AAAAAAFxHztRCrKWVMM=" + }, + "target": { + "$ref": "AAAAAAFxHz0FDLQCqKM=" + } + } + ] + }, + { + "_type": "UMLUseCase", + "_id": "AAAAAAFxHzu4i7L5cvQ=", + "_parent": { + "$ref": "AAAAAAFxHzFaKLAFx/M=" + }, + "name": "Seleccionar ingredientes", + "ownedElements": [ + { + "_type": "UMLExtend", + "_id": "AAAAAAFxHzyzBbNupmk=", + "_parent": { + "$ref": "AAAAAAFxHzu4i7L5cvQ=" + }, + "source": { + "$ref": "AAAAAAFxHzu4i7L5cvQ=" + }, + "target": { + "$ref": "AAAAAAFxHznUKLFzCGI=" + } + } + ] + }, + { + "_type": "UMLUseCase", + "_id": "AAAAAAFxHz0FDLQCqKM=", + "_parent": { + "$ref": "AAAAAAFxHzFaKLAFx/M=" + }, + "name": "Crear ticket", + "ownedElements": [ + { + "_type": "UMLInclude", + "_id": "AAAAAAFxHz6j4LUtjSI=", + "_parent": { + "$ref": "AAAAAAFxHz0FDLQCqKM=" + }, + "source": { + "$ref": "AAAAAAFxHz0FDLQCqKM=" + }, + "target": { + "$ref": "AAAAAAFxHz4veLTpqlw=" + } + } + ] + }, + { + "_type": "UMLUseCase", + "_id": "AAAAAAFxHz4veLTpqlw=", + "_parent": { + "$ref": "AAAAAAFxHzFaKLAFx/M=" + }, + "name": "Aumentar ganancia" + }, + { + "_type": "UMLUseCase", + "_id": "AAAAAAFxH0DrIrYam3g=", + "_parent": { + "$ref": "AAAAAAFxHzFaKLAFx/M=" + }, + "name": "Cambiar Precios", + "ownedElements": [ + { + "_type": "UMLInclude", + "_id": "AAAAAAFxH0Fkmra/SbY=", + "_parent": { + "$ref": "AAAAAAFxH0DrIrYam3g=" + }, + "source": { + "$ref": "AAAAAAFxH0DrIrYam3g=" + }, + "target": { + "$ref": "AAAAAAFxHzVyDbBm3Q0=" + } + } + ] + }, + { + "_type": "UMLUseCase", + "_id": "AAAAAAFxH0NIPLfmxE0=", + "_parent": { + "$ref": "AAAAAAFxHzFaKLAFx/M=" + }, + "name": "Seleccionar Ingrediente", + "ownedElements": [ + { + "_type": "UMLExtend", + "_id": "AAAAAAFxH0SFDLmuxck=", + "_parent": { + "$ref": "AAAAAAFxH0NIPLfmxE0=" + }, + "source": { + "$ref": "AAAAAAFxH0NIPLfmxE0=" + }, + "target": { + "$ref": "AAAAAAFxH0DrIrYam3g=" + } + }, + { + "_type": "UMLInclude", + "_id": "AAAAAAFxH0WyGbsRB24=", + "_parent": { + "$ref": "AAAAAAFxH0NIPLfmxE0=" + }, + "source": { + "$ref": "AAAAAAFxH0NIPLfmxE0=" + }, + "target": { + "$ref": "AAAAAAFxH0TgdrpjyaE=" + } + } + ] + }, + { + "_type": "UMLUseCase", + "_id": "AAAAAAFxH0Qwt7lDjj8=", + "_parent": { + "$ref": "AAAAAAFxHzFaKLAFx/M=" + }, + "name": "Seleccionar Producto", + "ownedElements": [ + { + "_type": "UMLExtend", + "_id": "AAAAAAFxH0SUr7nRoUA=", + "_parent": { + "$ref": "AAAAAAFxH0Qwt7lDjj8=" + }, + "source": { + "$ref": "AAAAAAFxH0Qwt7lDjj8=" + }, + "target": { + "$ref": "AAAAAAFxH0DrIrYam3g=" + } + }, + { + "_type": "UMLInclude", + "_id": "AAAAAAFxH0XFT7tAgfU=", + "_parent": { + "$ref": "AAAAAAFxH0Qwt7lDjj8=" + }, + "source": { + "$ref": "AAAAAAFxH0Qwt7lDjj8=" + }, + "target": { + "$ref": "AAAAAAFxH0TgdrpjyaE=" + } + } + ] + }, + { + "_type": "UMLUseCase", + "_id": "AAAAAAFxH0TgdrpjyaE=", + "_parent": { + "$ref": "AAAAAAFxHzFaKLAFx/M=" + }, + "name": "Cambiar precio" + }, + { + "_type": "UMLUseCase", + "_id": "AAAAAAFxH0Z0urv9IXo=", + "_parent": { + "$ref": "AAAAAAFxHzFaKLAFx/M=" + }, + "name": "Ver Ganancias", + "ownedElements": [ + { + "_type": "UMLInclude", + "_id": "AAAAAAFxH0rwPcB4PJY=", + "_parent": { + "$ref": "AAAAAAFxH0Z0urv9IXo=" + }, + "source": { + "$ref": "AAAAAAFxH0Z0urv9IXo=" + }, + "target": { + "$ref": "AAAAAAFxHzVyDbBm3Q0=" + } + } + ] + }, + { + "_type": "UMLUseCase", + "_id": "AAAAAAFxH0bVFbzcvok=", + "_parent": { + "$ref": "AAAAAAFxHzFaKLAFx/M=" + }, + "name": "Mostrar ganancia del día", + "ownedElements": [ + { + "_type": "UMLExtend", + "_id": "AAAAAAFxH0uC0sGJP10=", + "_parent": { + "$ref": "AAAAAAFxH0bVFbzcvok=" + }, + "source": { + "$ref": "AAAAAAFxH0bVFbzcvok=" + }, + "target": { + "$ref": "AAAAAAFxH0Z0urv9IXo=" + } + } + ] + }, + { + "_type": "UMLUseCase", + "_id": "AAAAAAFxH0e+1L4SoP8=", + "_parent": { + "$ref": "AAAAAAFxHzFaKLAFx/M=" + }, + "name": "Mostrar ganancia de la semana", + "ownedElements": [ + { + "_type": "UMLExtend", + "_id": "AAAAAAFxH0udpsG1zsI=", + "_parent": { + "$ref": "AAAAAAFxH0e+1L4SoP8=" + }, + "source": { + "$ref": "AAAAAAFxH0e+1L4SoP8=" + }, + "target": { + "$ref": "AAAAAAFxH0Z0urv9IXo=" + } + } + ] + }, + { + "_type": "UMLUseCase", + "_id": "AAAAAAFxH0f6Ar6tiUc=", + "_parent": { + "$ref": "AAAAAAFxHzFaKLAFx/M=" + }, + "name": "Mostrar ganancia del més", + "ownedElements": [ + { + "_type": "UMLExtend", + "_id": "AAAAAAFxH0ulIsHhtkc=", + "_parent": { + "$ref": "AAAAAAFxH0f6Ar6tiUc=" + }, + "source": { + "$ref": "AAAAAAFxH0f6Ar6tiUc=" + }, + "target": { + "$ref": "AAAAAAFxH0Z0urv9IXo=" + } + } + ] + }, + { + "_type": "UMLUseCase", + "_id": "AAAAAAFxH02KhcVSWc0=", + "_parent": { + "$ref": "AAAAAAFxHzFaKLAFx/M=" + }, + "name": "Mostrar ticket", + "ownedElements": [ + { + "_type": "UMLInclude", + "_id": "AAAAAAFxH04LNMaakic=", + "_parent": { + "$ref": "AAAAAAFxH02KhcVSWc0=" + }, + "source": { + "$ref": "AAAAAAFxH02KhcVSWc0=" + }, + "target": { + "$ref": "AAAAAAFxHzVyDbBm3Q0=" + } + }, + { + "_type": "UMLInclude", + "_id": "AAAAAAFxH07CuMfXJEw=", + "_parent": { + "$ref": "AAAAAAFxH02KhcVSWc0=" + }, + "source": { + "$ref": "AAAAAAFxH02KhcVSWc0=" + }, + "target": { + "$ref": "AAAAAAFxH05pssd5fGM=" + } + } + ] + }, + { + "_type": "UMLUseCase", + "_id": "AAAAAAFxH05pssd5fGM=", + "_parent": { + "$ref": "AAAAAAFxHzFaKLAFx/M=" + }, + "name": "Elegir ticket" + }, + { + "_type": "UMLUseCase", + "_id": "AAAAAAFxH09A7sjOaYs=", + "_parent": { + "$ref": "AAAAAAFxHzFaKLAFx/M=" + }, + "name": "Realizar pedido", + "ownedElements": [ + { + "_type": "UMLAssociation", + "_id": "AAAAAAFxH09pR8lEuKo=", + "_parent": { + "$ref": "AAAAAAFxH09A7sjOaYs=" + }, + "end1": { + "_type": "UMLAssociationEnd", + "_id": "AAAAAAFxH09pR8lFYIc=", + "_parent": { + "$ref": "AAAAAAFxH09pR8lEuKo=" + }, + "reference": { + "$ref": "AAAAAAFxH09A7sjOaYs=" + } + }, + "end2": { + "_type": "UMLAssociationEnd", + "_id": "AAAAAAFxH09pR8lGxp0=", + "_parent": { + "$ref": "AAAAAAFxH09pR8lEuKo=" + }, + "reference": { + "$ref": "AAAAAAFxHzHYobA0p4M=" + } + } + }, + { + "_type": "UMLInclude", + "_id": "AAAAAAFxH1BcMcwsrcA=", + "_parent": { + "$ref": "AAAAAAFxH09A7sjOaYs=" + }, + "source": { + "$ref": "AAAAAAFxH09A7sjOaYs=" + }, + "target": { + "$ref": "AAAAAAFxH0/XS8sbLkw=" + } + } + ] + }, + { + "_type": "UMLUseCase", + "_id": "AAAAAAFxH0+XG8o9y9s=", + "_parent": { + "$ref": "AAAAAAFxHzFaKLAFx/M=" + }, + "name": "Pagar pedido" + }, + { + "_type": "UMLUseCase", + "_id": "AAAAAAFxH0/XS8sbLkw=", + "_parent": { + "$ref": "AAAAAAFxHzFaKLAFx/M=" + }, + "name": "Pagar" + }, + { + "_type": "UMLUseCaseSubject", + "_id": "AAAAAAFxH1GrWszEaOk=", + "_parent": { + "$ref": "AAAAAAFxHzFaKLAFx/M=" + }, + "name": "Programa Punto de venta \"LA MARQUESITERÃA\"" + }, + { + "_type": "UMLUseCaseSubject", + "_id": "AAAAAAFxH1LCFM3fcis=", + "_parent": { + "$ref": "AAAAAAFxHzFaKLAFx/M=" + }, + "name": "." + }, + { + "_type": "UMLUseCaseSubject", + "_id": "AAAAAAFxH1Luec5TXtk=", + "_parent": { + "$ref": "AAAAAAFxHzFaKLAFx/M=" + }, + "name": "UseCaseSubject1" + } + ] + } + ] +} \ No newline at end of file diff --git a/Equipo NetCode/Propuesta de Proyecto Final/Diagrama/Modularidad.png b/Equipo NetCode/Propuesta de Proyecto Final/Diagrama/Modularidad.png new file mode 100644 index 0000000..c04d3fa Binary files /dev/null and b/Equipo NetCode/Propuesta de Proyecto Final/Diagrama/Modularidad.png differ diff --git "a/Equipo NetCode/Propuesta de Proyecto Final/Documentos/ENTREGA FINAL/Cartel Cient\303\255fico_NetCode.pdf" "b/Equipo NetCode/Propuesta de Proyecto Final/Documentos/ENTREGA FINAL/Cartel Cient\303\255fico_NetCode.pdf" new file mode 100644 index 0000000..75446db Binary files /dev/null and "b/Equipo NetCode/Propuesta de Proyecto Final/Documentos/ENTREGA FINAL/Cartel Cient\303\255fico_NetCode.pdf" differ diff --git "a/Equipo NetCode/Propuesta de Proyecto Final/Documentos/ENTREGA FINAL/Escala de Valoraci\303\263n - Entrega de proyecto final - Heteroevaluaci\303\263n.pdf" "b/Equipo NetCode/Propuesta de Proyecto Final/Documentos/ENTREGA FINAL/Escala de Valoraci\303\263n - Entrega de proyecto final - Heteroevaluaci\303\263n.pdf" new file mode 100644 index 0000000..935fd0d Binary files /dev/null and "b/Equipo NetCode/Propuesta de Proyecto Final/Documentos/ENTREGA FINAL/Escala de Valoraci\303\263n - Entrega de proyecto final - Heteroevaluaci\303\263n.pdf" differ diff --git a/Equipo NetCode/Propuesta de Proyecto Final/Documentos/ENTREGA FINAL/Final_NetCode.docx b/Equipo NetCode/Propuesta de Proyecto Final/Documentos/ENTREGA FINAL/Final_NetCode.docx new file mode 100644 index 0000000..0b3c306 Binary files /dev/null and b/Equipo NetCode/Propuesta de Proyecto Final/Documentos/ENTREGA FINAL/Final_NetCode.docx differ diff --git a/Equipo NetCode/Propuesta de Proyecto Final/Documentos/ENTREGA FINAL/Final_NetCode.pdf b/Equipo NetCode/Propuesta de Proyecto Final/Documentos/ENTREGA FINAL/Final_NetCode.pdf new file mode 100644 index 0000000..c4d1315 Binary files /dev/null and b/Equipo NetCode/Propuesta de Proyecto Final/Documentos/ENTREGA FINAL/Final_NetCode.pdf differ diff --git a/Equipo NetCode/Propuesta de Proyecto Final/Documentos/PRIMERA ENTREGA/Lista de Cotejo - Propuesta de proyecto final.pdf b/Equipo NetCode/Propuesta de Proyecto Final/Documentos/PRIMERA ENTREGA/Lista de Cotejo - Propuesta de proyecto final.pdf new file mode 100644 index 0000000..44b7322 Binary files /dev/null and b/Equipo NetCode/Propuesta de Proyecto Final/Documentos/PRIMERA ENTREGA/Lista de Cotejo - Propuesta de proyecto final.pdf differ diff --git a/Equipo NetCode/Propuesta de Proyecto Final/Documentos/PRIMERA ENTREGA/Propuesta_NetCode.docx b/Equipo NetCode/Propuesta de Proyecto Final/Documentos/PRIMERA ENTREGA/Propuesta_NetCode.docx new file mode 100644 index 0000000..a39b981 Binary files /dev/null and b/Equipo NetCode/Propuesta de Proyecto Final/Documentos/PRIMERA ENTREGA/Propuesta_NetCode.docx differ diff --git a/Equipo NetCode/Propuesta de Proyecto Final/Documentos/PRIMERA ENTREGA/Propuesta_NetCode.pdf b/Equipo NetCode/Propuesta de Proyecto Final/Documentos/PRIMERA ENTREGA/Propuesta_NetCode.pdf new file mode 100644 index 0000000..7ca888d Binary files /dev/null and b/Equipo NetCode/Propuesta de Proyecto Final/Documentos/PRIMERA ENTREGA/Propuesta_NetCode.pdf differ diff --git a/Equipo NetCode/Propuesta de Proyecto Final/Documentos/SEGUNDA ENTREGA/2 Lista de Cotejo - Avances de proyecto final.pdf b/Equipo NetCode/Propuesta de Proyecto Final/Documentos/SEGUNDA ENTREGA/2 Lista de Cotejo - Avances de proyecto final.pdf new file mode 100644 index 0000000..67ed954 Binary files /dev/null and b/Equipo NetCode/Propuesta de Proyecto Final/Documentos/SEGUNDA ENTREGA/2 Lista de Cotejo - Avances de proyecto final.pdf differ diff --git a/Equipo NetCode/Propuesta de Proyecto Final/Documentos/SEGUNDA ENTREGA/Avances_NetCode.docx b/Equipo NetCode/Propuesta de Proyecto Final/Documentos/SEGUNDA ENTREGA/Avances_NetCode.docx new file mode 100644 index 0000000..1775540 Binary files /dev/null and b/Equipo NetCode/Propuesta de Proyecto Final/Documentos/SEGUNDA ENTREGA/Avances_NetCode.docx differ diff --git a/Equipo NetCode/Propuesta de Proyecto Final/Documentos/SEGUNDA ENTREGA/Avances_NetCode.pdf b/Equipo NetCode/Propuesta de Proyecto Final/Documentos/SEGUNDA ENTREGA/Avances_NetCode.pdf new file mode 100644 index 0000000..394fff9 Binary files /dev/null and b/Equipo NetCode/Propuesta de Proyecto Final/Documentos/SEGUNDA ENTREGA/Avances_NetCode.pdf differ diff --git a/Equipo NetCode/Propuesta de Proyecto Final/Precios/PrecioBaseEsquite.txt b/Equipo NetCode/Propuesta de Proyecto Final/Precios/PrecioBaseEsquite.txt new file mode 100644 index 0000000..b9b6cfa --- /dev/null +++ b/Equipo NetCode/Propuesta de Proyecto Final/Precios/PrecioBaseEsquite.txt @@ -0,0 +1 @@ +35.00 \ No newline at end of file diff --git a/Equipo NetCode/Propuesta de Proyecto Final/Precios/PrecioBaseMarquesita.txt b/Equipo NetCode/Propuesta de Proyecto Final/Precios/PrecioBaseMarquesita.txt new file mode 100644 index 0000000..b9b6cfa --- /dev/null +++ b/Equipo NetCode/Propuesta de Proyecto Final/Precios/PrecioBaseMarquesita.txt @@ -0,0 +1 @@ +35.00 \ No newline at end of file diff --git a/Equipo NetCode/Propuesta de Proyecto Final/Precios/PrecioBaseTostiEsquite.txt b/Equipo NetCode/Propuesta de Proyecto Final/Precios/PrecioBaseTostiEsquite.txt new file mode 100644 index 0000000..b9b6cfa --- /dev/null +++ b/Equipo NetCode/Propuesta de Proyecto Final/Precios/PrecioBaseTostiEsquite.txt @@ -0,0 +1 @@ +35.00 \ No newline at end of file diff --git a/Equipo NetCode/Propuesta de Proyecto Final/Precios/PrecioIngredientesMarquesitas.txt b/Equipo NetCode/Propuesta de Proyecto Final/Precios/PrecioIngredientesMarquesitas.txt new file mode 100644 index 0000000..893a999 --- /dev/null +++ b/Equipo NetCode/Propuesta de Proyecto Final/Precios/PrecioIngredientesMarquesitas.txt @@ -0,0 +1 @@ +6.00 \ No newline at end of file diff --git a/Equipo NetCode/Propuesta de Proyecto Final/Precios/PrecioRefrescos.txt b/Equipo NetCode/Propuesta de Proyecto Final/Precios/PrecioRefrescos.txt new file mode 100644 index 0000000..3f3b9e5 --- /dev/null +++ b/Equipo NetCode/Propuesta de Proyecto Final/Precios/PrecioRefrescos.txt @@ -0,0 +1 @@ +25.00 \ No newline at end of file diff --git a/Equipo NetCode/Propuesta de Proyecto Final/Precios/PrecioToppings.txt b/Equipo NetCode/Propuesta de Proyecto Final/Precios/PrecioToppings.txt new file mode 100644 index 0000000..893a999 --- /dev/null +++ b/Equipo NetCode/Propuesta de Proyecto Final/Precios/PrecioToppings.txt @@ -0,0 +1 @@ +6.00 \ No newline at end of file diff --git a/Equipo NetCode/Propuesta de Proyecto Final/Precios/PreciosAguas.txt b/Equipo NetCode/Propuesta de Proyecto Final/Precios/PreciosAguas.txt new file mode 100644 index 0000000..b3b9d14 --- /dev/null +++ b/Equipo NetCode/Propuesta de Proyecto Final/Precios/PreciosAguas.txt @@ -0,0 +1 @@ +15.00 \ No newline at end of file diff --git "a/Equipo NetCode/Propuesta de Proyecto Final/PuntoDeVentaLaMarquesiter\303\255a.cpp" "b/Equipo NetCode/Propuesta de Proyecto Final/PuntoDeVentaLaMarquesiter\303\255a.cpp" new file mode 100644 index 0000000..e1f074a --- /dev/null +++ "b/Equipo NetCode/Propuesta de Proyecto Final/PuntoDeVentaLaMarquesiter\303\255a.cpp" @@ -0,0 +1,2124 @@ +#include //FUNCIÓN PARA ENTRADAS Y SALIDAS +#include //Para las acentuaciones +#include //Conversión de tipos de datos +#include // permite strcmp y strcpy. +#include //Para obtener fecha y hora de la computadora + +/* +Nombre: PARCIAL 1. ALUMNOS DE PROGRAMACIÓN ESTRUCTURADA +Descripción: TODOS LOS DETALLES ESTÁ EN EL DOCUMENTO +Autores: Victor Enrique Cauich Davalos & Alan Josue Barón Pat +Version: 1.0 +Fecha: 20/04/2020 +*/ + +//PROTOTIPOS DE LAS FUNCIONES A USAR +void ValidarUsuario(); +void Cambio(char Cadena[], int Tam); +void Cambio2(char Cadena[], int Tam); +void MenuAdministrador(char Nombres[20], char Apellidos[20]); +void MenuTrabajador(char Nombres[20], char Apellidos[20]); +void CrearVenta(char Nombres[20], char Apellidos[20]); +int IngresarMarquesitas(); +int IngresarIngredientes(); +int IngresarEsquites(); +int IngresarTostiesquites(); +int IngresarToppings(); +int IngresarRefrescos(); +int IngresarAguas(); +double CalcularPrecioMarquesitas(int Cant); +double CalcularPrecioIngredientes(int Cant); +double CalcularPrecioEsquites(int Cant); +double CalcularPrecioTostiesquites(int Cant); +double CalcularPrecioToppings(int Cant); +double CalcularPrecioRefrescos(int Cant); +double CalcularPrecioAguas(int Cant); +void VerTicket(); +void VerGanancias(); +void GananciasDia(); +void GananciasSemana(); +void GananciasMes(); +int CalcularFecha(int *D, int *M, int *A); +void CambiarPrecios(); +void CambiarPrecioMarquesitas(); +void CambiarPrecioIngredientes(); +void CambiarPrecioEsquites(); +void CambiarPrecioTostiEsquites(); +void CambiarPrecioToppings(); +void CambiarPrecioRefrescos(); +void CambiarPrecioAguas(); +double ValidarPrecio(); +void AgregarTrabajador(); +void EliminarTrabajador(); + +//----------------------------FUNCIÓN MAIN------------------------- +int main (){ + setlocale(LC_ALL,"");//Se aplica la función de la biblioteca locale para que se puedan imprimir acentuaciones... + + //SOLO LLAMAMOS A LA FUNCIÓN PARA QUE EL USUARIO PUEDA INTENTAR ACCEDER + ValidarUsuario(); + + system("cls"); + printf("Que tenga buen día..."); + + printf("\n\n\nTeclea ENTER para salir por favor..."); + fflush(stdin); + getchar(); + return 0; +} +//----------------Función para cambiar final de una Cadena--------- +void Cambio(char Cadena[], int Tam) +{ + //NOSOTROS USAMOS fgets para leer, y para no tener problemas, usamos esta + //función para cambiar el \n del fgets a un \0. + for(int i = 0; i < Tam; i++) + { + if(Cadena[i] == '\n')//Se recorre cada carácter del array hasta llegar al \n + { + Cadena[i] = '\0';//Aqu+i cambiamos el \n a \0 + } + } +} +//----------------Función para cambiar final de una Cadena--------- +void Cambio2(char Cadena[]) +{ + for(int i = 0; i < 10; i++) + { + if(Cadena[i] == ' ') + { + Cadena[i] = '\0'; + i = 10; + }else + { + if(Cadena[i] == '\0') + { + i = 10; + }else + { + if(i+1 == 10) + { + Cadena[i] = '\0'; + } + } + } + } +} +//--------------------Validando usuario y contraseña--------------- +void ValidarUsuario() +{ + system("cls");//Esta función nos sirve para borrar la consola en Windows + + //DECLARAMOS LAS VARIABLES QUE NOS VAN A SERVIR + FILE *LOGIN; + char *token; + char Usuario[16]; + char Contrasenia[16]; + char Nombres[21]; + char Apellidos[21]; + bool Val = false; + int Val1; + char Aux[80]; + int S; + + //IMPRIMIMOS EL LOGIN + printf("%15s", "LOGIN"); + printf("\n\n%5s%s", "", "USUARIO: "); + fgets(Usuario, 16, stdin);//fgets va a tomar información por el consolador pero solo 16 carácteres + fflush(stdin);//Limpiamos el scaner del consolador + Cambio(Usuario, 16);//Llamamos a la función antes mencionada Cambio para cambiar el salto de linea que nos da fgets + printf("\n%2s%s", "", "CONTRASEÑA: "); + fgets(Contrasenia, 16, stdin);//fgets va a tomar información por el consolador pero solo 16 carácteres + fflush(stdin);//Limpiamos el scaner del consolador + Cambio(Contrasenia, 16);//Llamamos a la función antes mencionada Cambio para cambiar el salto de linea que nos da fgets + + //Se abre un archivo y se guarda en el apuntador FILE + LOGIN = fopen("Datos/LOGIN.txt", "r"); + if(LOGIN == NULL)//SI NO LE DEVOLVIÓ NADA AL APUNTADOR ES DECIR, SI EL ARCHIVO NO EXITEN ENTRA A LAS SENTENCIAS + { + //SE IMPRIME QUE HUBO UN ERROR + system("cls"); + printf("¡¡ERROR!!"); + printf("\nEL ARCHIVO NO EXISTE..."); + printf("\n\n\nTeclea ENTER para salir por favor..."); + fflush(stdin); + getchar(); + exit(-1);//SE CIERRA EL PROGRAMA + } + + //SI ES QUE SI SE PUDO ABRIR CORRECTAMENTE EL ARCHIVO ENTONCES... + rewind(LOGIN);//Se sitúa el cursor de lectura/escritura al principio del archivo + fgets(Aux, 80, LOGIN);//Se ignora la primera fila del archivo + while(!feof(LOGIN) && Val == false) //Mientras no se termine el archivo y no se encuentre los datos del usuario, no sale del while + { + fgets(Aux, 80, LOGIN);//Se va tomando cada fila del archivo + token = strtok(Aux, ",");//Se realizan token con separación de "," + + if(token != NULL){//Si a el token le devuelven nada o "NULL" no entra a las sentencias en el if + + if(strcmp(Usuario, token) == 0)//Comparamos el primer dato del la linea con el usuario que se ingresó, si coincide entra en las sentencias de if + { + token = strtok(NULL, ",");//Se toma el siente apartado de la fila + + if(strcmp(Contrasenia, token) == 0)//Comparamos el segundo dato del la linea con la contraseña que se ingresó, si coincide entra en las sentencias de if + { + Val = true;//Se confirma que ya que encontró el usuario, para que ya no continue con el if + + token = strtok(NULL, ",");//Se toma el siguiente dato de la linea + + if(strcmp("1", token) == 0)//Se verifica si es administrador o no + { + Val1 = 1;//Si es administrador, se pobe que Val1 es igual a 1 para saber y nos sirva mas adelante + }else + { + Val1 = 0;//Si NO es administrador, se pobe que Val1 es igual a 0 para saber y nos sirva mas adelante + } + + token = strtok(NULL, ",");//Se toma el siguiente valor de la linea que son los Nombres del usuario + strcpy(Nombres, token);//Se agregan al Array Nombres + token = strtok(NULL, ",");//Se toma el siguiente valor de la linea que son sus Apellidos del usuario + strcpy(Apellidos, token);//Se agregan al Array Apellidos + } + } + } + } + + + fclose(LOGIN);//SE CIERRA EK ARCHIVO PARA NO PERDER DATOS O QUE SUCEDA ALGÚN ERROR + + if(Val == true)//Se verifica que se hayan encontrados los datos del usuario que intenta acceder, si Val es true significa que si se encontró, así que si es así, entra en las sentecias del if + { + + if(Val1 == 1)//Aquí se verifica si el usuario que accedió es Administrador, por eso si Val1 es 1 entonces entra a la senetncia del if + { + MenuAdministrador(Nombres, Apellidos);//Se manda al usuario al menú de un administrador, llamando a la función MenuAdministrador + }else//Sino es administrador, entonces entra a la siguiente sentencia + { + MenuTrabajador(Nombres, Apellidos);//Se manda al usuario al menú de un Trabajador, llamando a la función MenuTrabajador + } + + }else//Si no se encontró la información de usuario y contraseña se entra a las siguientes sentencias + { + do + { //Todas las siguientes sentencias se ejecutaran mientras se realiza una pregunta y no se ingrese alguna de las dos opciones aceptables + system("cls");//Se limpia la pantalla de la consola + printf("USUARIO O CONTRASEÑA INCORRECTAS, ¿DESEA SEGUIR INTENTANDO?"); + printf("\n1. SI."); + printf("\n2. NO."); + printf("\nIngrese el número de la selección que quiera elegir: "); + scanf("%d", &S); + fflush(stdin); + if(S != 1 && S != 2)//Si no se selecciona ninguna de las dos opciones manda el siguienmte mensaje + { + printf("\n\nERROR, INGRESE UNA OPCIÓN DADA..."); + printf("\n\n\nTeclea ENTER para continuar, por favor..."); + fflush(stdin); + getchar(); + } + }while(S != 1 && S != 2); + + if(S == 1)//Si se quiere seguir intentando para acceder al sistema se leen las siguientes sentencias + { + fflush(stdin); + ValidarUsuario();//Se va llamando a la misma función hasta que se encuentre algún usuario o ya no se quiera seguir intentando + } + } +} +//-------------------------Menú del Trabajador--------------------- +void MenuTrabajador(char Nombres[21], char Apellidos[21]) +{ + int Seleccion; + do//Se ejecuta el menú hasta que ya se quiera salir del sistema + { + //Se imprime el menú de un Trabajador + system("cls"); + printf("%15s%-15s", "BIENVENIDO: ", Nombres); + printf("\n%15s%-15s", "MENÚ DE T", "RABAJADOR"); + printf("\n1. Nueva Venta."); + printf("\n2. Ver Ticket."); + printf("\n3. Ver Ganancias."); + printf("\n4. SALIR."); + printf("\nIngrese el número de la opción \nque desee realizar, por favor: "); + scanf("%d", &Seleccion);//Se lee la opción + fflush(stdin); + + //Conforme se realiza la selección se va llamando a la función que realice la selección + switch(Seleccion) + { + case 1: + CrearVenta(Nombres, Apellidos); + break; + case 2: + VerTicket(); + break; + case 3: + VerGanancias(); + break; + case 4: + system("cls"); + printf("Que tenga buen día..."); + printf("\n\n\nTeclea ENTER para salir por favor..."); + fflush(stdin); + getchar(); + exit(1); + break; + default: + system("cls"); + printf("ERROR, SELECCIÓN INVALIDA..."); + printf("\nIntente de nuevo, por favor."); + printf("\nTeclea ENTER para continuar, por favor..."); + fflush(stdin); + getchar(); + MenuTrabajador(Nombres, Apellidos); + break; + } + }while(Seleccion != 4); +} +//-----------------------Menú del Administrador-------------------- +void MenuAdministrador(char Nombres[21], char Apellidos[21]) +{ + int Seleccion; + do//Se ejecuta el menú hasta que ya se quiera salir del sistema + { + //Se imprime el menú de un Trabajador + system("cls"); + printf("%15s%-15s", "BIENVENIDO: ", Nombres); + printf("\n%15s%-15s", "MENÚ DE AD", "MINISTRADOR"); + printf("\n1. Nueva Venta."); + printf("\n2. Ver Ticket."); + printf("\n3. Ver Ganancias."); + printf("\n4. Cambiar Precios."); + printf("\n5. Agregar Trabajador."); + printf("\n6. Eliminar Trabajador."); + printf("\n7. SALIR."); + printf("\nIngrese el número de la opción \nque desee realizar, por favor: "); + scanf("%d", &Seleccion);//Se lee la opción + fflush(stdin); + + //Conforme se realiza la selección se va llamando a la función que realice la selección + switch(Seleccion) + { + case 1: + CrearVenta(Nombres, Apellidos); + break; + case 2: + VerTicket(); + break; + case 3: + VerGanancias(); + break; + case 4: + CambiarPrecios(); + break; + case 5: + AgregarTrabajador(); + break; + case 6: + EliminarTrabajador(); + break; + case 7: + system("cls"); + printf("Que tenga buen día..."); + printf("\n\n\nTeclea ENTER para salir por favor..."); + fflush(stdin); + getchar(); + exit(1); + break; + default: + system("cls"); + printf("ERROR, SELECCIÓN INVALIDA..."); + printf("\nIntente de nuevo, por favor."); + printf("\nTeclea ENTER para continuar, por favor..."); + fflush(stdin); + getchar(); + MenuAdministrador(Nombres, Apellidos); + break; + } + }while(Seleccion != 7); +} +//---------------------Función para crear una venta---------------- +void CrearVenta(char Nombres[21], char Apellidos[21]) +{ + //SE INICIALIZAN LAS VARIABLES DE LAS CANTIDADESS DE CADA INGREDIENTE + int CantMarquesitas = 0, CantIngredientes = 0, CantEsquites = 0, CantToppings = 0, CantTostiesquites = 0; + int CantRefrescos = 0, CantAguas = 0, Seleccion = 0; + bool Val = false; + + do//SE EJECUTA EL MENÚ MIENTRAS QUE NO SE DIGA QUE YA ESTÁ LISTO EL PEDIDO O SI SE QUIERE CANCELAR + { + fflush(stdin); + system("cls"); + printf("%15s", "SELECCIÓN DE PRODUCTOS"); + printf("\n1. Ingresar Cantidad de Marquesitas."); + printf("\n2. Ingresar Cantidad de Ingredientes de Marquesitas."); + printf("\n3. Ingresar Cantidad de Esquites."); + printf("\n4. Ingresar Cantidad de Tostiesquites."); + printf("\n5. Ingresar Cantidad de Toppings."); + printf("\n6. Ingresar Cantidad de Refrecos."); + printf("\n7. Ingresar Cantidad de Aguas."); + printf("\n8. LISTO."); + printf("\n9. CANCELAR."); + printf("\nIngrese el número de la opción que desee realizar, \npor favor: "); + scanf("%d", &Seleccion); + fflush(stdin); + system("cls"); + switch(Seleccion)//dDeependiendo de la seleccion que se realice se llama a la función correspondiente para agregar la cantidad de producto + { + /*En el caso de agregar marquesitas e ingredientes, no se podrán agregar ingredientes si no se tiene agregado al menos 1 marquesita, se valida*/ + case 1: + CantMarquesitas = IngresarMarquesitas(); + if(CantMarquesitas == 0) + { + CantIngredientes = 0; + } + break; + case 2: + if(CantMarquesitas < 1) + { + printf("ERROR, DEBE AGREGAR AL MENOS 1 MARQUESITA..."); + printf("\nTeclea ENTER para continuar, por favor..."); + fflush(stdin); + getchar(); + }else + { + CantIngredientes = IngresarIngredientes(); + } + break; + case 3: + CantEsquites = IngresarEsquites(); + break; + case 4: + CantTostiesquites = IngresarTostiesquites(); + break; + case 5: + CantToppings = IngresarToppings(); + break; + case 6: + CantRefrescos = IngresarRefrescos(); + break; + case 7: + CantAguas = IngresarAguas(); + break; + case 8: + //Se valida que se tenga agregado al menos 1 producto + if(CantMarquesitas == 0) + { + if(CantEsquites == 0) + { + if(CantTostiesquites == 0) + { + if(CantToppings == 0) + { + if(CantRefrescos == 0) + { + if(CantAguas == 0) + { + Seleccion = 10; + printf("ERROR, PARA COMPLETAR LA VENTA, \nDEBE HABER AL MENOS UN PRODUCTO COMPRADO..."); + printf("\nIntente de nuevo, por favor."); + printf("\nTeclea ENTER para continuar, por favor..."); + fflush(stdin); + getchar(); + } + } + } + } + } + } + break; + case 9: + break; + default: + printf("ERROR, SELECCIÓN INVALIDA..."); + printf("\nIntente de nuevo, por favor."); + printf("\nTeclea ENTER para continuar, por favor..."); + fflush(stdin); + getchar(); + break; + } + }while(Seleccion != 8 && Seleccion != 9); + + + if(Seleccion != 9) + { + //SE INICIALIZAN LAS VARIABLES QUE NOS SIRVEN + int NumTicket; + char Aux[15]; + FILE *Ultimo; + char *token; + + //SE ABRE EL ARCHIVO QUE SE SOLITA PARA SABER CUÁL ES EL ULTIMO TICKET + Ultimo = fopen("Tickets/UltimoNoTicket.txt", "r"); + + if(Ultimo == NULL)//SI SUCEDE ALGÚN ERROR SE CIERRA EL PROGRAMA + { + system("cls"); + printf("¡¡ERROR!!"); + printf("\nEL ARCHIVO NO EXISTE..."); + printf("\n\n\nTeclea ENTER para salir, por favor..."); + fflush(stdin); + getchar(); + exit(-1); + } + + rewind(Ultimo); + fgets(Aux, 15, Ultimo); + fclose(Ultimo); + + NumTicket = atoi(Aux) + 1; + + //YA QUE SE TOMÓ EL NÚMERO DEL ULTIMO TICKET SE SOBREESCRIBE PONIENDO CUÁL ES EL NUEVO ULTIMO NÚMERO DE TICKET + Ultimo = fopen("Tickets/UltimoNoTicket.txt", "w"); + if(Ultimo == NULL) + { + system("cls"); + printf("¡¡ERROR!!"); + printf("\nEL ARCHIVO NO EXISTE..."); + printf("\n\n\nTeclea ENTER para salir, por favor..."); + fflush(stdin); + getchar(); + exit(-1); + } + fprintf(Ultimo, "%d", NumTicket); + fclose(Ultimo);//SE CIERRA EL ARCHIVO PARA QUE SE GUARDE TODO + + //SE INICIALIZAN NUEVAS VARIABLES QUE NOS SERVIRAN + char TOTALF[10]; + char NombreTicket[25]; + char NombreTicket2[35] = "Tickets/"; + sprintf(NombreTicket, "%d", NumTicket); + strcat(NombreTicket, ".txt"); + strcat(NombreTicket2, NombreTicket); + + FILE *NewTicket; + + //SE CREA UN NUEVO ARCHIVO DEL NUEVO TICKET + NewTicket = fopen(NombreTicket2, "w"); + if(NewTicket == NULL) + { + system("cls"); + printf("¡¡ERROR!!"); + printf("\nEL ARCHIVO NO EXISTE..."); + printf("\n\n\nTeclea ENTER para salir, por favor..."); + fflush(stdin); + getchar(); + exit(-1); + } + + //USAMOS LOS VALORES DE LA HORA Y FECHA DEL MOMENTO EN EL QUE SE ESTÁ CREANDO EL NUEVO TICKET PARA LUEGO AGREGARLO AL ARCHIVO .TXT + time_t FechaActual; + time(&FechaActual); + struct tm *MiFecha = localtime(&FechaActual); + + //SE VA ESCRIBIENDO EN EL NUEVO TICKET + fprintf(NewTicket, "%15s%-15s", "LA MARQU", "ESITERÍA"); + fprintf(NewTicket, "\n%15s%-15d", "TICKET #", NumTicket); + fprintf(NewTicket, "\n------------------------------"); + + Cambio2(Nombres); + Cambio2(Apellidos); + + fprintf(NewTicket, "\nAtendió: %s %s", Nombres, Apellidos); + fprintf(NewTicket, "\nFecha: %d/%d/%d", MiFecha->tm_mday, MiFecha->tm_mon + 1, MiFecha->tm_year + 1900); + + //SE VALIDA PARA QUE SE ESCRIA BIEN LA HORA + if(MiFecha->tm_hour < 10) + { + if(MiFecha->tm_min < 10) + { + if(MiFecha->tm_sec < 10) + { + fprintf(NewTicket, "\nHora: 0%d:0%d:0%d", MiFecha->tm_hour, MiFecha->tm_min, MiFecha->tm_sec); + }else + { + fprintf(NewTicket, "\nHora: 0%d:0%d:%d", MiFecha->tm_hour, MiFecha->tm_min, MiFecha->tm_sec); + } + }else + { + if(MiFecha->tm_sec < 10) + { + fprintf(NewTicket, "\nHora: 0%d:%d:0%d", MiFecha->tm_hour, MiFecha->tm_min, MiFecha->tm_sec); + }else + { + fprintf(NewTicket, "\nHora: 0%d:%d:%d", MiFecha->tm_hour, MiFecha->tm_min, MiFecha->tm_sec); + } + } + }else + { + if(MiFecha->tm_min < 10) + { + if(MiFecha->tm_sec < 10) + { + fprintf(NewTicket, "\nHora: %d:0%d:0%d", MiFecha->tm_hour, MiFecha->tm_min, MiFecha->tm_sec); + }else + { + fprintf(NewTicket, "\nHora: %d:0%d:%d", MiFecha->tm_hour, MiFecha->tm_min, MiFecha->tm_sec); + } + }else + { + if(MiFecha->tm_sec < 10) + { + fprintf(NewTicket, "\nHora: %d:%d:0%d", MiFecha->tm_hour, MiFecha->tm_min, MiFecha->tm_sec); + }else + { + fprintf(NewTicket, "\nHora: %d:%d:%d", MiFecha->tm_hour, MiFecha->tm_min, MiFecha->tm_sec); + } + } + } + + //SE AGREGAN A CONTINUACIÓN LOS DATOS DE LOS PRODUCTOS QUE SOLICITA EL CLIENTE + fprintf(NewTicket, "\n------------------------------"); + fprintf(NewTicket, "\n%-15s%-5s%10s", "Productos:", "Cant:", "Precio:"); + fprintf(NewTicket, "\n------------------------------"); + + double PrecioMarquesitas, PrecioIngredientes, PrecioEsquites, PrecioToppings, PrecioTostiesquites; + double PrecioRefrescos, PrecioAguas, TOTAL = 0; + + //SE VA CALCULANDO LOS PRECIOS DE CADA PRODUCTO EN SUS RESPECTIVAS FUNCIONES + for(int i = 1; i <= 7; i++) + { + switch(i) + { + case 1: + if(CantMarquesitas > 0) + { + PrecioMarquesitas = CalcularPrecioMarquesitas(CantMarquesitas); + fprintf(NewTicket, "\n%-15s%-5d%10.2lf", "Marquesitas", CantMarquesitas, PrecioMarquesitas); + fprintf(NewTicket, "\n------------------------------"); + TOTAL = TOTAL + PrecioMarquesitas; + } + break; + case 2: + if(CantIngredientes > 0) + { + PrecioIngredientes = CalcularPrecioIngredientes(CantIngredientes); + fprintf(NewTicket, "\n%-15s%-5d%10.2lf", "Ingredientes", CantIngredientes, PrecioIngredientes); + fprintf(NewTicket, "\n------------------------------"); + TOTAL = TOTAL + PrecioIngredientes; + } + break; + case 3: + if(CantEsquites > 0) + { + PrecioEsquites = CalcularPrecioEsquites(CantEsquites); + fprintf(NewTicket, "\n%-15s%-5d%10.2lf", "Esquites", CantEsquites, PrecioEsquites); + fprintf(NewTicket, "\n------------------------------"); + TOTAL = TOTAL + PrecioEsquites; + } + break; + case 4: + if(CantTostiesquites > 0) + { + PrecioTostiesquites = CalcularPrecioTostiesquites(CantTostiesquites); + fprintf(NewTicket, "\n%-15s%-5d%10.2lf", "Tostiesquites", CantTostiesquites, PrecioTostiesquites); + fprintf(NewTicket, "\n------------------------------"); + TOTAL = TOTAL + PrecioTostiesquites; + } + break; + case 5: + if(CantToppings > 0) + { + PrecioToppings = CalcularPrecioToppings(CantToppings); + fprintf(NewTicket, "\n%-15s%-5d%10.2lf", "Toppings", CantToppings, PrecioToppings); + fprintf(NewTicket, "\n------------------------------"); + TOTAL = TOTAL + PrecioToppings; + } + break; + case 6: + if(CantRefrescos > 0) + { + PrecioRefrescos = CalcularPrecioRefrescos(CantRefrescos); + fprintf(NewTicket, "\n%-15s%-5d%10.2lf", "Refrescos", CantRefrescos, PrecioRefrescos); + fprintf(NewTicket, "\n------------------------------"); + TOTAL = TOTAL + PrecioRefrescos; + } + break; + case 7: + if(CantAguas > 0) + { + PrecioAguas = CalcularPrecioAguas(CantAguas); + fprintf(NewTicket, "\n%-15s%-5d%10.2lf", "Aguas", CantAguas, PrecioAguas); + fprintf(NewTicket, "\n------------------------------"); + TOTAL = TOTAL + PrecioAguas; + } + break; + default: + printf("ERROR, SELECCIÓN INVALIDA..."); + printf("\nIntente de nuevo, por favor."); + printf("\nTeclea ENTER para continuar, por favor..."); + fflush(stdin); + getchar(); + break; + } + } + //SE INGRESA EL PRECIO TOTAL + sprintf(TOTALF, "$%.2lf", TOTAL); + fprintf(NewTicket, "\n%20s%10s", "TOTAL:", TOTALF); + fclose(NewTicket); + }else + { + //SI SE CAMCELÓ EL PEDIDO SE REGRESA AL MENÚ + system("cls"); + printf("CANCELACIÓN CON ÉXITO"); + printf("\nTeclea ENTER para regresar al MENÚ, por favor..."); + fflush(stdin); + getchar(); + } +} +//----------------------Vallidación de Marquesitas----------------- +int IngresarMarquesitas() +{ + int Num; + printf("Ingrese cuántas Marquesitas son: "); + scanf("%d", &Num); + fflush(stdin); + if(Num < 0) + { + system("cls"); + Num = IngresarMarquesitas(); + } + return Num; +} +//---------------------Vallidación de Ingredientes----------------- +int IngresarIngredientes() +{ + int Num; + printf("Ingrese cuántos Ingredientes para Marquesitas son: "); + scanf("%d", &Num); + fflush(stdin); + if(Num < 0) + { + system("cls"); + Num = IngresarIngredientes(); + } + return Num; +} +//-----------------------Vallidación de Esquites------------------- +int IngresarEsquites() +{ + int Num; + printf("Ingrese cuántos Esquites son: "); + scanf("%d", &Num); + fflush(stdin); + if(Num < 0) + { + system("cls"); + Num = IngresarEsquites(); + } + return Num; +} +//---------------------Vallidación de Tostiesquites---------------- +int IngresarTostiesquites() +{ + int Num; + printf("Ingrese cuántos Tostiesquites son: "); + scanf("%d", &Num); + fflush(stdin); + if(Num < 0) + { + system("cls"); + Num = IngresarTostiesquites(); + } + return Num; +} +//------------------------Vallidación de Toppings------------------ +int IngresarToppings() +{ + int Num; + printf("Ingrese cuántos Toppings en TOTAL son: "); + scanf("%d", &Num); + fflush(stdin); + if(Num < 0) + { + system("cls"); + Num = IngresarToppings(); + } + return Num; +} +//-----------------------Vallidación de Refrescos------------------ +int IngresarRefrescos() +{ + int Num; + printf("Ingrese cuántos Refrescos son: "); + scanf("%d", &Num); + fflush(stdin); + if(Num < 0) + { + system("cls"); + Num = IngresarRefrescos(); + } + return Num; +} +//-------------------------Vallidación de Aguas-------------------- +int IngresarAguas() +{ + + int Num; + printf("Ingrese cuántas Aguas son: "); + scanf("%d", &Num); + fflush(stdin); + if(Num < 0) + { + system("cls"); + Num = IngresarAguas(); + } + return Num; +} +/* +A CONTINUACIÓN SE MUESTRAN 7 FUNCIONES QUE SIRVEN PARA QUE SE PUEDA CALCULAR EL PRECIO DE CADA PRODUCTO +LO QUE HACEN ES LO MISMO ENTRE LAS 7 FUNCIONES, LO QUE CAMBIA ES QUE CADA PRECIO ESTÁ GUARDADO EN DIFERENTES .TXT´S, +SE ABRE EL ARCHIVO, SE TOMA LA PRIMERA FILA, SE CAMBIA LO TOMADO CON VALOR A DOUBLE, LUEGO ESE PRECIO SE MULTIPLICA CON +LA CANTIDAD DE PRODUCTO SE PIDIÓ Y SE DEVUELVE ESE VALOR... +*/ +//---------------------Calcular Precio de Marquesitas-------------- +double CalcularPrecioMarquesitas(int Cant) +{ + FILE *Costo; + char Aux[15]; + double CostoP; + Costo = fopen("Precios/PrecioBaseMarquesita.txt", "r"); + if(Costo == NULL) + { + system("cls"); + printf("¡¡ERROR!!"); + printf("\nEL ARCHIVO NO EXISTE..."); + printf("\n\n\nTeclea ENTER para salir, por favor..."); + fflush(stdin); + getchar(); + exit(-1); + } + fgets(Aux, 15, Costo); + CostoP = atof(Aux); + fclose(Costo); + return Cant * CostoP; +} +//------------------Calcular Precio de los Ingredientes------------ +double CalcularPrecioIngredientes(int Cant) +{ + FILE *Costo; + char Aux[15]; + double CostoP; + Costo = fopen("Precios/PrecioIngredientesMarquesitas.txt", "r"); + if(Costo == NULL) + { + system("cls"); + printf("¡¡ERROR!!"); + printf("\nEL ARCHIVO NO EXISTE..."); + printf("\n\n\nTeclea ENTER para salir, por favor..."); + fflush(stdin); + getchar(); + exit(-1); + } + fgets(Aux, 15, Costo); + CostoP = atof(Aux); + fclose(Costo); + return Cant * CostoP; +} +//----------------------Calcular Precio de Esquites---------------- +double CalcularPrecioEsquites(int Cant) +{ + FILE *Costo; + char Aux[15]; + double CostoP; + Costo = fopen("Precios/PrecioBaseEsquite.txt", "r"); + if(Costo == NULL) + { + system("cls"); + printf("¡¡ERROR!!"); + printf("\nEL ARCHIVO NO EXISTE..."); + printf("\n\n\nTeclea ENTER para salir, por favor..."); + fflush(stdin); + getchar(); + exit(-1); + } + fgets(Aux, 15, Costo); + CostoP = atof(Aux); + fclose(Costo); + return Cant * CostoP; +} +//-------------------Calcular Precio de Tostiesquites-------------- +double CalcularPrecioTostiesquites(int Cant) +{ + FILE *Costo; + char Aux[15]; + double CostoP; + Costo = fopen("Precios/PrecioBaseTostiEsquite.txt", "r"); + if(Costo == NULL) + { + system("cls"); + printf("¡¡ERROR!!"); + printf("\nEL ARCHIVO NO EXISTE..."); + printf("\n\n\nTeclea ENTER para salir, por favor..."); + fflush(stdin); + getchar(); + exit(-1); + } + fgets(Aux, 15, Costo); + CostoP = atof(Aux); + fclose(Costo); + return (Cant*CostoP); +} +//----------------------Calcular Precio de Toppings---------------- +double CalcularPrecioToppings(int Cant) +{ + FILE *Costo; + char Aux[15]; + double CostoP; + Costo = fopen("Precios/PrecioToppings.txt", "r"); + if(Costo == NULL) + { + system("cls"); + printf("¡¡ERROR!!"); + printf("\nEL ARCHIVO NO EXISTE..."); + printf("\n\n\nTeclea ENTER para salir, por favor..."); + fflush(stdin); + getchar(); + exit(-1); + } + fgets(Aux, 15, Costo); + CostoP = atof(Aux); + fclose(Costo); + return Cant * CostoP; +} +//---------------------Calcular Precio de Refrescos---------------- +double CalcularPrecioRefrescos(int Cant) +{ + FILE *Costo; + char Aux[15]; + double CostoP; + Costo = fopen("Precios/PrecioRefrescos.txt", "r"); + if(Costo == NULL) + { + system("cls"); + printf("¡¡ERROR!!"); + printf("\nEL ARCHIVO NO EXISTE..."); + printf("\n\n\nTeclea ENTER para salir, por favor..."); + fflush(stdin); + getchar(); + exit(-1); + } + fgets(Aux, 15, Costo); + CostoP = atof(Aux); + fclose(Costo); + return Cant * CostoP; +} +//-----------------------Calcular Precio de Aguas------------------ +double CalcularPrecioAguas(int Cant) +{ + FILE *Costo; + char Aux[15]; + double CostoP; + Costo = fopen("Precios/PreciosAguas.txt", "r"); + if(Costo == NULL) + { + system("cls"); + printf("¡¡ERROR!!"); + printf("\nEL ARCHIVO NO EXISTE..."); + printf("\n\n\nTeclea ENTER para salir, por favor..."); + fflush(stdin); + getchar(); + exit(-1); + } + fgets(Aux, 15, Costo); + CostoP = atof(Aux); + fclose(Costo); + return Cant * CostoP; +} +//-----------------------Función para ver Ticket------------------- +void VerTicket() +{ + int num; + char Name[25]; + char Name2[35] = "Tickets/"; + + //SE LEE EL NÚMERO DEL TICKET QUE SE QUIERE VER + system("cls"); + printf("Ingrese el número del ticket que desea ver, por favor: "); + scanf("%d", &num); + fflush(stdin); + + //SE CALCULA EL NOMBRE DEL ARCHIVO A BUSCAR + sprintf(Name, "%d", num); + strcat(Name, ".txt"); + strcat(Name2, Name); + + //SE INTENTA ABRIR + FILE *Ticket; + Ticket = fopen(Name2, "r"); + if(Ticket != NULL) + { + //SI SALE TODO BIEN, SE IMPRIME EL TICKET + system("cls"); + printf("ENCONTRADO, TECLEAR ENTER PARA VER EL TICKET.\n"); + fflush(stdin); + getchar(); + system("cls"); + rewind(Ticket); + char Aux[30]; + while(!feof(Ticket)) + { + fgets(Aux, 30, Ticket); + printf("%s", Aux); + } + fclose(Ticket); + printf("\n\nLISTO..."); + printf("\nTeclea ENTER para regresar al MENÚ, por favor..."); + fflush(stdin); + getchar(); + }else + {//SI SALE ERROR, SE INFORMA QUE NO SE ENCONTRÓ Y SE VUELVE AL MENÚ + system("cls"); + printf("¡¡ERROR!!"); + printf("\nEL ARCHIVO NO EXISTE..."); + printf("\n\n\nTeclea ENTER para regresar al MENÚ, por favor..."); + fflush(stdin); + getchar(); + } + +} +//----------------------Función para ver ganancias----------------- +void VerGanancias() +{ + //SE IMPRIME EL MENÚ, Y DEPENDIENDO DE LA SELECCIÓN SE LLEVA A LA FUNCIÓN CORRESPONDIENTE + int Seleccion; + system("cls"); + printf("¿CÓMO DESEA VER LAS GANANCIAS?"); + printf("\n1. De un Día."); + printf("\n2. De una Semana (7 Días)."); + printf("\n3. De un Més (28 Días ó 4 semanas)."); + printf("\n4. Regresar al MENÚ."); + printf("\nIngrese el número de la opción que desee realizar, \npor favor: "); + scanf("%d", &Seleccion); + fflush(stdin); + system("cls"); + switch(Seleccion) + { + case 1: + GananciasDia(); + break; + case 2: + GananciasSemana(); + break; + case 3: + GananciasMes(); + break; + case 4: + break; + default: + //SI SE SELECCIONA UNA OPCIÓN INVALIDA SE MANDA ERROR Y REALIZA UNA RECURSIÓN + printf("ERROR, SELECCIÓN INVALIDA..."); + printf("\nIntente de nuevo, por favor."); + printf("\nTeclea ENTER para regresar a las opciones, por favor..."); + fflush(stdin); + getchar(); + VerGanancias(); + break; + } +} +//-----------------------Ver Ganancias de un DÍA------------------- +void GananciasDia() +{ + //SE INICIALIZAN LAS VARIABLES QUE NOS SERVIRAN + int Dia, Mes, Anio; + char Aux[35], Fecha[30]; + int NumTicket; + char *token; + double Ganancia = 0; + bool Val = false; + + //SE LE PIDE AL USUARIO QUE INGRESE EL DÍA, MÉS, Y AÑO DE LA FECHA A BUSCAR LA GANANCIA + printf("Ingrese el día, por favor: "); + scanf("%d", &Dia); + fflush(stdin); + printf("Ingrese el més, por favor: "); + scanf("%d", &Mes); + fflush(stdin); + printf("Ingrese el año, por favor: "); + scanf("%d", &Anio); + fflush(stdin); + + //SE GUARDA EN EL ARRAY Fecha EL DÍA, MES Y AÑO PARA QUE NOS SIRVA LUEGO CON LA BUSQUEDA + sprintf(Fecha, "%d/%d/%d", Dia, Mes, Anio); + + //ABRE EL ARCHIVO DE ULTIMOTICKET, PARA QUE SEPAMOS HASTA DONDE DEJAREMOS DE ABRIR ARCHIVOS + FILE *Ultimo; + Ultimo = fopen("Tickets/UltimoNoTicket.txt", "r"); + if(Ultimo == NULL) + { + system("cls"); + printf("¡¡ERROR!!"); + printf("\nEL ARCHIVO NO EXISTE..."); + printf("\n\n\nTeclea ENTER para salir, por favor..."); + fflush(stdin); + getchar(); + exit(-1); + } + rewind(Ultimo); + fgets(Aux, 30, Ultimo); + fclose(Ultimo); + + NumTicket = atoi(Aux); + + //REALIZAMOS UN FOR PARA QUE SE VAYA ABRIENDO CADA TICKET, HASTA QUE LLEGUEMOS AL ULTIMO Y SEPAMOS LA GANANCIA DEL DÍA + for(int i = 1; i <= NumTicket; i++) + { + strcpy(Aux,""); + sprintf(Aux, "Tickets/%d.txt", i); + + FILE *Archivo; + Archivo = fopen(Aux, "r"); + if(Archivo == NULL) + { + system("cls"); + printf("¡¡ERROR!!"); + printf("\nEL ARCHIVO NO EXISTE..."); + printf("\n\n\nTeclea ENTER para salir, por favor..."); + fflush(stdin); + getchar(); + exit(-1); + } + + fgets(Aux, 34, Archivo); + fgets(Aux, 34, Archivo); + fgets(Aux, 34, Archivo); + fgets(Aux, 34, Archivo); + fgets(Aux, 34, Archivo); + + token = strtok(Aux, " "); + token = strtok(NULL, "\n"); + + if(strcmp(Fecha, token) == 0) + { + Val = true;//PARA LUEGO CONFIRMAR QUE ENCONTRAMOS AL MENOS UN TICKET DEL DÍA INGRESADO + + while(!feof(Archivo)) + { + fgets(Aux, 34, Archivo); + } + + token = strtok(Aux, "$"); + token = strtok(NULL, "\n"); + + Ganancia = Ganancia + atof(token);//SE VAN SUMANDO LAS GANANCIAS DE CADA TICKET + printf("\n%lf", Ganancia); + } + + fclose(Archivo);//SE CIERRA CADA TICKET + } + + system("cls");//SE LIMPIA LA CONSOLA + + if(Val == true) + { + //SI SE ENCONTRO AL MENOS UN TICKET DEL DÍA SE IMPRIME LAS GANANCIAS + printf("SE ENCONTRÓ LA GANANCIA DE LA FECHA: %s.", Fecha); + printf("\nLA GANANCIA ES: %.2lf.", Ganancia); + }else + { + //SI NO SE ENCONTRÓ NINGÚN TICKET RELACIONADO CON LO SOLICITADO SE INDICA QUE NO SE ENCONTRARON GANANCIAS DEL DÍA INGRESADO + printf("NO SE ENCONTRÓ LA GANANCIA DE LA FECHA: %s.", Fecha); + } + + printf("\n\n\nTeclea ENTER para regresar al MENÚ, por favor..."); + fflush(stdin); + getchar(); +} +//---------------------Ver Ganancias de una SEMANA----------------- +void GananciasSemana() +{ + //SE INICIALIZAN LAS VARIABLES QUE NOS SERVIRAN + int Dia, Mes, Anio; + char Aux[35], FechaI[30], FechaF[30]; + int NumTicket; + char *token; + double Ganancia = 0; + bool Val = false; + + //SE IMPRIME LO QUE SE SOLICITA + printf("INGRESE PRIMERO LA FECHA DEL INICIO DE LA SEMANA"); + printf("\nAPARTIR DE LA FECHA QUE INGRESE EMPEZAREMOS A CONTAR"); + printf("\nLOS 7 DÍAS DE LA SEMANA."); + printf("\n\nIngrese el día, por favor: "); + scanf("%d", &Dia); + fflush(stdin); + printf("Ingrese el més, por favor: "); + scanf("%d", &Mes); + fflush(stdin); + printf("Ingrese el año, por favor: "); + scanf("%d", &Anio); + fflush(stdin); + + //SE GUARDA EN FechaI la fecha que se acaba de ingresar + sprintf(FechaI, "%d/%d/%d", Dia, Mes, Anio); + + //ABRE EL ARCHIVO DE ULTIMOTICKET, PARA QUE SEPAMOS HASTA DONDE DEJAREMOS DE ABRIR ARCHIVOS + FILE *Ultimo; + Ultimo = fopen("Tickets/UltimoNoTicket.txt", "r"); + if(Ultimo == NULL) + { + system("cls"); + printf("¡¡ERROR!!"); + printf("\nEL ARCHIVO NO EXISTE..."); + printf("\n\n\nTeclea ENTER para salir, por favor..."); + fflush(stdin); + getchar(); + exit(-1); + } + rewind(Ultimo); + fgets(Aux, 34, Ultimo); + fclose(Ultimo); + + + NumTicket = atoi(Aux); + + //REALIZAMOS UN FOR PARA QUE SE VAYA ABRIENDO TODOS LOS TICKETS HASTA QUE SE CUMPLAN LOS 7 DÍAS A PARTIR DEL DÍA INICIAL + for(int t = 0; t < 7; t++) + { + + sprintf(FechaF, "%d/%d/%d", Dia, Mes, Anio); + + //REALIZAMOS UN FOR PARA QUE SE VAYA ABRIENDO CADA TICKET, HASTA QUE LLEGUEMOS AL ULTIMO Y SEPAMOS LA GANANCIA DEL DÍA + for(int i = 1; i <= NumTicket; i++) + { + strcpy(Aux,""); + sprintf(Aux, "Tickets/%d.txt", i); + + FILE *Archivo; + Archivo = fopen(Aux, "r"); + if(Archivo == NULL) + { + system("cls"); + printf("¡¡ERROR!!"); + printf("\nEL ARCHIVO NO EXISTE..."); + printf("\n\n\nTeclea ENTER para salir, por favor..."); + fflush(stdin); + getchar(); + exit(-1); + } + + fgets(Aux, 34, Archivo); + fgets(Aux, 34, Archivo); + fgets(Aux, 34, Archivo); + fgets(Aux, 34, Archivo); + fgets(Aux, 34, Archivo); + + token = strtok(Aux, " "); + token = strtok(NULL, "\n"); + + if(strcmp(FechaF, token) == 0) + { + Val = true; + + while(!feof(Archivo)) + { + fgets(Aux, 34, Archivo); + } + + token = strtok(Aux, "$"); + token = strtok(NULL, "\n"); + + Ganancia = Ganancia + atof(token);//SE VAN SUMANDO LAS GANANCIAS DE CADA TICKET + } + + fclose(Archivo);//SE CIERRA CADA ARCHIVO QUE SE ABRA + } + + CalcularFecha(&Dia, &Mes, &Anio);//SE LLAMA A LA FUNCIÓN PARA QUE SE CALCULE LA SIGUIENTE FECHA + + } + + + system("cls");//SE LIMPIA LA CONSOLA + + if(Val == true) + { + //SI SE ENCONTRO AL MENOS UN TICKET DEL DÍA SE IMPRIME LAS GANANCIAS + printf("SE ENCONTRÓ LA GANANCIA ENTRE LAS FECHAS: %s Y %s.", FechaI, FechaF); + printf("\nLA GANANCIA ES: %.2lf.", Ganancia); + }else + { + //SI NO SE ENCONTRÓ NINGÚN TICKET RELACIONADO CON LO SOLICITADO SE INDICA QUE NO SE ENCONTRARON GANANCIAS DEL DÍA INGRESADO + printf("NO SE ENCONTRARON GANANCIAS POR LA FECHA INDICADA, VERIFIQUE MEJOR, PORFAVOR..."); + } + + printf("\n\n\nTeclea ENTER para regresar al MENÚ, por favor..."); + fflush(stdin); + getchar(); +} +//-----------------------Ver Ganancias de un MES------------------- +void GananciasMes() +{ + //SE INICIALIZAN LAS VARIABLES QUE NOS SERVIRAN + int Dia, Mes, Anio; + char Aux[35], FechaI[30], FechaF[30]; + int NumTicket; + char *token; + double Ganancia = 0; + bool Val = false; + + //SE IMPRIME LO QUE SE SOLICITA + printf("INGRESE PRIMERO LA FECHA DEL INICIO DE LA SEMANA"); + printf("\nAPARTIR DE LA FECHA QUE INGRESE EMPEZAREMOS A CONTAR"); + printf("\nLOS 28 DÍAS Ó 4 SEMANAS."); + printf("\n\nIngrese el día, por favor: "); + scanf("%d", &Dia); + fflush(stdin); + printf("Ingrese el més, por favor: "); + scanf("%d", &Mes); + fflush(stdin); + printf("Ingrese el año, por favor: "); + scanf("%d", &Anio); + fflush(stdin); + + //SE GUARDA EN FechaI la fecha que se acaba de ingresar + sprintf(FechaI, "%d/%d/%d", Dia, Mes, Anio); + + //ABRE EL ARCHIVO DE ULTIMOTICKET, PARA QUE SEPAMOS HASTA DONDE DEJAREMOS DE ABRIR ARCHIVOS + FILE *Ultimo; + Ultimo = fopen("Tickets/UltimoNoTicket.txt", "r"); + if(Ultimo == NULL) + { + system("cls"); + printf("¡¡ERROR!!"); + printf("\nEL ARCHIVO NO EXISTE..."); + printf("\n\n\nTeclea ENTER para salir, por favor..."); + fflush(stdin); + getchar(); + exit(-1); + } + rewind(Ultimo); + fgets(Aux, 34, Ultimo); + fclose(Ultimo); + + + NumTicket = atoi(Aux); + + //REALIZAMOS UN FOR PARA QUE SE VAYA ABRIENDO TODOS LOS TICKETS HASTA QUE SE CUMPLAN LOS 7 DÍAS A PARTIR DEL DÍA INICIAL + for(int t = 0; t < 28; t++) + { + + sprintf(FechaF, "%d/%d/%d", Dia, Mes, Anio); + + //REALIZAMOS UN FOR PARA QUE SE VAYA ABRIENDO CADA TICKET, HASTA QUE LLEGUEMOS AL ULTIMO Y SEPAMOS LA GANANCIA DEL DÍA + for(int i = 1; i <= NumTicket; i++) + { + strcpy(Aux,""); + sprintf(Aux, "Tickets/%d.txt", i); + + FILE *Archivo; + Archivo = fopen(Aux, "r"); + if(Archivo == NULL) + { + system("cls"); + printf("¡¡ERROR!!"); + printf("\nEL ARCHIVO NO EXISTE..."); + printf("\n\n\nTeclea ENTER para salir, por favor..."); + fflush(stdin); + getchar(); + exit(-1); + } + + fgets(Aux, 34, Archivo); + fgets(Aux, 34, Archivo); + fgets(Aux, 34, Archivo); + fgets(Aux, 34, Archivo); + fgets(Aux, 34, Archivo); + + token = strtok(Aux, " "); + token = strtok(NULL, "\n"); + + if(strcmp(FechaF, token) == 0) + { + Val = true; + + while(!feof(Archivo)) + { + fgets(Aux, 34, Archivo); + } + + token = strtok(Aux, "$"); + token = strtok(NULL, "\n"); + + Ganancia = Ganancia + atof(token);//SE VAN SUMANDO LAS GANANCIAS DE CADA TICKET + } + + fclose(Archivo);//SE CIERRA CADA ARCHIVO QUE SE ABRA + } + + CalcularFecha(&Dia, &Mes, &Anio);//SE LLAMA A LA FUNCIÓN PARA QUE SE CALCULE LA SIGUIENTE FECHA + + } + + + system("cls");//SE LIMPIA LA CONSOLA + + if(Val == true) + { + //SI SE ENCONTRO AL MENOS UN TICKET DEL DÍA SE IMPRIME LAS GANANCIAS + printf("SE ENCONTRÓ LA GANANCIA ENTRE LAS FECHAS: %s Y %s.", FechaI, FechaF); + printf("\nLA GANANCIA ES: %.2lf.", Ganancia); + }else + { + //SI NO SE ENCONTRÓ NINGÚN TICKET RELACIONADO CON LO SOLICITADO SE INDICA QUE NO SE ENCONTRARON GANANCIAS DEL DÍA INGRESADO + printf("NO SE ENCONTRARON GANANCIAS POR LA FECHA INDICADA, VERIFIQUE MEJOR, PORFAVOR..."); + } + + printf("\n\n\nTeclea ENTER para regresar al MENÚ, por favor..."); + fflush(stdin); + getchar(); +} +//----------------------------Calcular Fecha----------------------- +int CalcularFecha(int *D, int *M, int *A) +{ + //SE VALIDA SI ES UN AÑO BISIESTO + if ( *A % 4 == 0 && *A % 100 != 0 || *A % 400 == 0 ) + { + //SE VALIDA CUAL MES ES Y RESPECTO A ELLO SE SUMA EL DÍA, MES SI ES NECESARIO Y AÑO SI ES NECESARIO + switch(*M) + { + case 1: + if(*D == 31) + { + *D = 1; + *M = *M + 1; + }else + { + *D = *D + 1; + } + break; + case 2: + if(*D == 29) + { + *D = 1; + *M = *M + 1; + }else + { + *D = *D + 1; + } + break; + case 3: + if(*D == 31) + { + *D = 1; + *M = *M + 1; + }else + { + *D = *D + 1; + } + break; + case 4: + if(*D == 30) + { + *D = 1; + *M = *M + 1; + }else + { + *D = *D + 1; + } + break; + case 5: + if(*D == 31) + { + *D = 1; + *M = *M + 1; + }else + { + *D = *D + 1; + } + break; + case 6: + if(*D == 30) + { + *D = 1; + *M = *M + 1; + }else + { + *D = *D + 1; + } + break; + case 7: + if(*D == 31) + { + *D = 1; + *M = *M + 1; + }else + { + *D = *D + 1; + } + break; + case 8: + if(*D == 31) + { + *D = 1; + *M = *M + 1; + }else + { + *D = *D + 1; + } + break; + case 9: + if(*D == 30) + { + *D = 1; + *M = *M + 1; + }else + { + *D = *D + 1; + } + break; + case 10: + if(*D == 31) + { + *D = 1; + *M = *M + 1; + }else + { + *D = *D + 1; + } + break; + case 11: + if(*D == 30) + { + *D = 1; + *M = *M + 1; + }else + { + *D = *D + 1; + } + break; + case 12: + if(*D == 31) + { + *D = 1; + *M = 1; + *A = *A + 1; + }else + { + *D = *D + 1; + } + break; + } + }else + { + //SE VALIDA CUAL MES ES Y RESPECTO A ELLO SE SUMA EL DÍA, MES SI ES NECESARIO Y AÑO SI ES NECESARIO + switch(*M) + { + case 1: + if(*D == 31) + { + *D = 1; + *M = *M + 1; + }else + { + *D = *D + 1; + } + break; + case 2: + if(*D == 28) + { + *D = 1; + *M = *M + 1; + }else + { + *D = *D + 1; + } + break; + case 3: + if(*D == 31) + { + *D = 1; + *M = *M + 1; + }else + { + *D = *D + 1; + } + break; + case 4: + if(*D == 30) + { + *D = 1; + *M = *M + 1; + }else + { + *D = *D + 1; + } + break; + case 5: + if(*D == 31) + { + *D = 1; + *M = *M + 1; + }else + { + *D = *D + 1; + } + break; + case 6: + if(*D == 30) + { + *D = 1; + *M = *M + 1; + }else + { + *D = *D + 1; + } + break; + case 7: + if(*D == 31) + { + *D = 1; + *M = *M + 1; + }else + { + *D = *D + 1; + } + break; + case 8: + if(*D == 31) + { + *D = 1; + *M = *M + 1; + }else + { + *D = *D + 1; + } + break; + case 9: + if(*D == 30) + { + *D = 1; + *M = *M + 1; + }else + { + *D = *D + 1; + } + break; + case 10: + if(*D == 31) + { + *D = 1; + *M = *M + 1; + }else + { + *D = *D + 1; + } + break; + case 11: + if(*D == 30) + { + *D = 1; + *M = *M + 1; + }else + { + *D = *D + 1; + } + break; + case 12: + if(*D == 31) + { + *D = 1; + *M = 1; + *A = *A + 1; + }else + { + *D = *D + 1; + } + break; + } + } +} +//-------------------------Cambiar los Precios--------------------- +void CambiarPrecios() +{ + //SE MANDA EL MENÚ + int Seleccion; + system("cls"); + printf("Elija de cuál producto quiere cambiar precios."); + printf("\n1. Marquesitas."); + printf("\n2. Ingredientes de Marquesitas."); + printf("\n3. Esquites."); + printf("\n4. TostiEsquites."); + printf("\n5. Toppings."); + printf("\n6. Refrescos."); + printf("\n7. Aguas."); + printf("\n8. Regresar al MENÚ."); + printf("\nIngrese el número de la opción \nque desee realizar, por favor: "); + scanf("%d", &Seleccion); + fflush(stdin); + system("cls"); + //RESPECTO AL PRECIO QUE SE QUIERA CAMBIAR SE MANDA A LA FUNCIÓN CORRESPONDIENTE + switch(Seleccion) + { + case 1: + CambiarPrecioMarquesitas(); + break; + case 2: + CambiarPrecioIngredientes(); + break; + case 3: + CambiarPrecioEsquites(); + break; + case 4: + CambiarPrecioTostiEsquites(); + break; + case 5: + CambiarPrecioToppings(); + break; + case 6: + CambiarPrecioRefrescos(); + break; + case 7: + CambiarPrecioAguas(); + break; + case 8: + break; + default: + //SI SE SELECCIONA UNA OPCIÓN QUE NO SEA VALIDA SE LANZA EL SIGUIENTE ERROR + printf("ERROR, SELECCIÓN INVALIDA..."); + printf("\nIntente de nuevo, por favor."); + printf("\nTeclea ENTER para continuar, por favor..."); + fflush(stdin); + getchar(); + CambiarPrecios();//SE REALIZA UN PROCESO RECURSIVO + break; + } +} +/* +A CONTINUACIÓN SIGUIEN 7 FUNCIONES QUE SIRVEN PARA CAMBIAR PRECIOS DE CADA PRODUCTO, DEPENDIENDO DE LA FUNCIÓN, +CADA FUNCIÓN HACE BASICAMENTE LO MISMO, PERO SOLO CAMBIA EL PRECIO A CAMBIAR, DEBIDO AL ARCHIVO QUE SE DEBE DE +ABRIR, HACEN TODOS ESTO: INICIALIZAR UNA VARIABLE DONDE INGRESAR EL VALOR DEL NUEVO PRECIO, SE LLAMA A UNA FUNCION QUE PIDE EL PRECIO Y SE VALIDA +CON UN PROCESO RECURSIVO, LUEGO SE ABRE EL .TXT DEL PRECIO DEL PRODUCTO CORRESPONDIENTE A CAMBIAR, SI NO SE ABRE MANDA UN ERROR +Y SE CIERRA EL PROGRAMA, LUEGO SE REESCRIBE EL ARCHIVO Y SE INGRESA EL NUEVO PRECIO, SE CIERRA EL ARCHIVO Y +VUELVE AL MENÚ. +*/ +//----------------------Cambiar Precio Marquesitas----------------- +void CambiarPrecioMarquesitas() +{ + double Num = ValidarPrecio(); + + FILE *Archivo; + Archivo = fopen("Precios/PrecioBaseMarquesita.txt", "w"); + if(Archivo == NULL) + { + system("cls"); + printf("¡¡ERROR!!"); + printf("\nEL ARCHIVO NO EXISTE..."); + printf("\n\n\nTeclea ENTER para salir, por favor..."); + fflush(stdin); + getchar(); + exit(-1); + } + fprintf(Archivo, "%.2lf", Num); + fclose(Archivo); +} +//---------------------Cambiar Precio Ingredientes----------------- +void CambiarPrecioIngredientes() +{ + double Num = ValidarPrecio(); + + FILE *Archivo; + Archivo = fopen("Precios/PrecioIngredientesMarquesitas.txt", "w"); + if(Archivo == NULL) + { + system("cls"); + printf("¡¡ERROR!!"); + printf("\nEL ARCHIVO NO EXISTE..."); + printf("\n\n\nTeclea ENTER para salir, por favor..."); + fflush(stdin); + getchar(); + exit(-1); + } + fprintf(Archivo, "%.2lf", Num); + fclose(Archivo); +} +//-----------------------Cambiar Precio Esquites------------------- +void CambiarPrecioEsquites() +{ + double Num = ValidarPrecio(); + + FILE *Archivo; + Archivo = fopen("Precios/PrecioBaseEsquite.txt", "w"); + if(Archivo == NULL) + { + system("cls"); + printf("¡¡ERROR!!"); + printf("\nEL ARCHIVO NO EXISTE..."); + printf("\n\n\nTeclea ENTER para salir, por favor..."); + fflush(stdin); + getchar(); + exit(-1); + } + fprintf(Archivo, "%.2lf", Num); + fclose(Archivo); +} +//---------------------Cambiar Precio TostiEsquites---------------- +void CambiarPrecioTostiEsquites() +{ + double Num = ValidarPrecio(); + + FILE *Archivo; + Archivo = fopen("Precios/PrecioBaseTostiEsquite.txt", "w"); + if(Archivo == NULL) + { + system("cls"); + printf("¡¡ERROR!!"); + printf("\nEL ARCHIVO NO EXISTE..."); + printf("\n\n\nTeclea ENTER para salir, por favor..."); + fflush(stdin); + getchar(); + exit(-1); + } + fprintf(Archivo, "%.2lf", Num); + fclose(Archivo); +} +//------------------------Cambiar Precio Toppings------------------ +void CambiarPrecioToppings() +{ + double Num = ValidarPrecio(); + + FILE *Archivo; + Archivo = fopen("Precios/PrecioToppings.txt", "w"); + if(Archivo == NULL) + { + system("cls"); + printf("¡¡ERROR!!"); + printf("\nEL ARCHIVO NO EXISTE..."); + printf("\n\n\nTeclea ENTER para salir, por favor..."); + fflush(stdin); + getchar(); + exit(-1); + } + fprintf(Archivo, "%.2lf", Num); + fclose(Archivo); +} +//------------------------Cambiar Precio Refrescos----------------- +void CambiarPrecioRefrescos() +{ + double Num = ValidarPrecio(); + + FILE *Archivo; + Archivo = fopen("Precios/PrecioRefrescos.txt", "w"); + if(Archivo == NULL) + { + system("cls"); + printf("¡¡ERROR!!"); + printf("\nEL ARCHIVO NO EXISTE..."); + printf("\n\n\nTeclea ENTER para salir, por favor..."); + fflush(stdin); + getchar(); + exit(-1); + } + fprintf(Archivo, "%.2lf", Num); + fclose(Archivo); +} +//--------------------------Cambiar Precio Aguas------------------- +void CambiarPrecioAguas() +{ + double Num = ValidarPrecio(); + + FILE *Archivo; + Archivo = fopen("Precios/PreciosAguas.txt", "w"); + if(Archivo == NULL) + { + system("cls"); + printf("¡¡ERROR!!"); + printf("\nEL ARCHIVO NO EXISTE..."); + printf("\n\n\nTeclea ENTER para salir, por favor..."); + fflush(stdin); + getchar(); + exit(-1); + } + fprintf(Archivo, "%.2lf", Num); + fclose(Archivo); +} +//-----------------------------Validar Precio---------------------- +double ValidarPrecio() +{ + //SE INICIALIZA LA VARIABLE PARA INGRESAR UN PRECIO + double Num; + + //SE PIDE AL USUARIO QUE INGRESE EL VALOR + printf("Ingrese precio nuevo, por favor: "); + scanf("%lf", &Num);//se lee el valor + fflush(stdin); + + if(Num < 0) + { + //si el valor ingresado es menor a 0, se manda un error + system("cls"); + printf("ERROR, DEBE SER MAYOR IGUA O MAYOR QUE 0..."); + printf("\nINTENTE DE NUEVO..."); + printf("\nTeclea ENTER para continuar, por favor..."); + fflush(stdin); + getchar(); + Num = ValidarPrecio();//se realiza una recursión llamando a la misma función, hasta que se ingrese un valor valido + } + return Num;//se retorna el valor ya validado +} +//---------------------------Agregar Trabajador-------------------- +void AgregarTrabajador() +{ + //se limpia la consola + system("cls"); + + //SE INICIALIZAN LAS VARIABLES QUE NECESITAMOS + char Usuario[16]; + char Contrasenia[16]; + int Admin; + char Nombres[21]; + char Apellidos[21]; + FILE *LOGIN; + char *token; + char Aux[80]; + bool Val = false; + int S; + + //SE IMPRIME EL MENÚ + printf("%37s%-38s", "INGRESO DE ", "TRABAJADOR"); + + printf("\nIngrese el nuevo Usuario (Solo se contarán los primeros 15 carácteres): \n"); + fgets(Usuario, 16, stdin);//SE LEE EL NUEVO USUARIO + Cambio(Usuario, 16);//SE LLAMA A LA FUNCIÓN Cambio PARA QUE SE CAMBIE EL SALTO DEL fgets + + //SE ABRE EL ARCHIVO DEL LOGIN + LOGIN = fopen("Datos/LOGIN.txt", "r"); + if(LOGIN == NULL) + { + system("cls"); + printf("¡¡ERROR!!"); + printf("\nEL ARCHIVO NO EXISTE..."); + printf("\n\n\nTeclea ENTER para salir por favor..."); + fflush(stdin); + getchar(); + exit(-1); + } + + //SE PONE EL CURSO AL INICIO DEL ARCHIVO DE LOGIN + rewind(LOGIN); + + fgets(Aux, 80, LOGIN);//SE IGNORA LA PRIMERA LINEA DEL ARCHIVO + + //SE LEE CADA LINEA HASTA QUE SE ACABE EL ARCHIVO O SI SE LLEGA A ENCONTRAR UN USUARIO IGUAL AL QUE SE QUIERE INGRESAR + //ESTO ES PARA QUE NO EXISTAN USUARIOS IGUALES + while(!feof(LOGIN) && Val == false) + { + fgets(Aux, 80, LOGIN); + token = strtok(Aux, ","); + if(token != NULL){ + if(strcmp(Usuario, token) == 0) + { + Val = true; + } + } + } + fclose(LOGIN);//SE CIERRA EL ARCHIVO + + + if(Val == true)//SI SE ENCONTRÓ UN USUARIO IGUAL AL QUE SE QUISO INGRESAR SE LEEN LAS SIGUIENTES SENTENCIAS + { + do + {//SE EJECUTAN LAS SIGUIENTES SENTENCIAS HASTA QUE SE INGRESE UN VALOR VALIDO + system("cls"); + printf("USUARIO YA EXISTE, ¿DESEA SEGUIR INTENTANDO?"); + printf("\n1. SI."); + printf("\n2. NO."); + printf("\nIngrese el número de la selección que quiera elegir: "); + scanf("%d", &S); + if(S != 1 && S != 2) + { + printf("\n\nERROR, INGRESE UNA OPCIÓN DADA..."); + printf("\n\n\nTeclea ENTER para continuar, por favor..."); + fflush(stdin); + getchar(); + } + }while(S != 1 && S != 2); + + if(S == 1)//SI SE QUIERE SEGUIR INTENTANDO, SE REALIZA UNA RECURSIVIDAD LLAMANDO LA MISMA FUNCIÓN + { + fflush(stdin); + AgregarTrabajador(); + } + }else//SI NO SE ENCONTRÓ UN USUARIO IGUAL AL QUE SE QUISO INGRESAR SE LEEN LAS SIGUIENTES SENTENCIAS + { + //SE INGRESAN LOS OTROS DATOS DEL NUEVO USUARIO + printf("\nIngrese su contraseña (Solo se contarán los primeros 15 carácteres): "); + fgets(Contrasenia, 16, stdin); + Cambio(Contrasenia, 16); + printf("\nIngrese su(s) Nombre(s): "); + fgets(Nombres, 21, stdin); + Cambio(Nombres, 21); + printf("\nIngrese su(s) Apellido(s): "); + fgets(Apellidos, 21, stdin); + Cambio(Apellidos, 21); + do + {//SE REALIZAN LAS SIGUIENTES SENTENCIAS DENTRO DEL DO-WHILE HASTA QUE SE INGRESE UNA OPCIÓN VALIDA + system("cls"); + printf("¿El nuevo trabajador, va a ser administrador?"); + printf("\n1. SI."); + printf("\n2. NO."); + printf("\nIngrese el número de la selección que quiera elegir: "); + scanf("%d", &S); + if(S != 1 && S != 2) + { + printf("\n\nERROR, INGRESE UNA OPCIÓN DADA..."); + printf("\n\n\nTeclea ENTER para continuar, por favor..."); + fflush(stdin); + getchar(); + } + }while(S != 1 && S != 2); + + if(S == 2) + {//SI S ES 2, O SEA QUE ES UN SIMPLE TRABAJADOR, SE ENTIENDE QUE EN EL ARCHIVO SE GUARDARÁ COMO VALOR 0 + S = 0; + } + + //SE ABRE EL ARCHIVO LOGIN, PARA QUE SE AGREGUEN LOS NUEVOS DATOS + LOGIN = fopen("Datos/LOGIN.txt", "a"); + if(LOGIN == NULL) + { + //SI SALE ALGO MAL SE CIERRA EL PROGRAMA + system("cls"); + printf("¡¡ERROR!!"); + printf("\nEL ARCHIVO NO EXISTE..."); + printf("\n\n\nTeclea ENTER para salir por favor..."); + fflush(stdin); + getchar(); + exit(-1); + } + + //SE INGRESA LA NUEVA LINEA + fprintf(LOGIN, "\n%s,%s,%d,%s,%s,", Usuario, Contrasenia, S, Nombres, Apellidos); + fclose(LOGIN); + system("cls"); + printf("LISTO"); + printf("\n\n\nTeclea ENTER para volver al MENÚ, por favor..."); + fflush(stdin); + getchar();//SE REGRESA AL MENÚ + } +} +//--------------------------Eliminar Trabajador-------------------- +void EliminarTrabajador() +{ + system("cls"); + + //SE INICIALIZAN LAS VARIABLES QUE NOS SERVIRAN + char Usuario[16]; + FILE *LOGIN; + FILE *NEWLOGIN; + char *token; + char Aux[80], Aux2[80]; + bool Val = false; + int S; + + //SE IMPRIME LO QUE SE SOLICITA + printf("%37s%-38s", "ELIMINACIÓN D", "E TRABAJADOR"); + + printf("\nIngrese el Usuario a eliminar (Solo se contarán los primeros 15 carácteres): \n"); + fgets(Usuario, 16, stdin);//SE LEE EL USUARIO QUE SE QUIERE ELIMINAR + Cambio(Usuario, 16); + + //SE ABRE EL ARCHIVO LOGIN + LOGIN = fopen("Datos/LOGIN.txt", "r"); + //SE CREA UN NUEVO ARCHIVO PARA GUARDAR TODOS LOS DATOS DE TODOS LOS USUARIOS, EXCEPTO EL QUE SE QUIERE ELIMINAR + NEWLOGIN = fopen("Datos/LOGINTEMP.txt", "w"); + + if(LOGIN == NULL || NEWLOGIN == NULL) + { + //SI SALE ALGO MAL SE IMPRIME LO QUE SIGUE + system("cls"); + printf("¡¡ERROR!!"); + printf("\nEL ARCHIVO NO EXISTE..."); + printf("\n\n\nTeclea ENTER para salir por favor..."); + fflush(stdin); + getchar(); + exit(-1); + } + + //SE PONE EL CURSOR AL INICIO DEL ARCHIVO LOGIN + rewind(LOGIN); + + fgets(Aux, 80, LOGIN); + Cambio(Aux, 80); + fprintf(NEWLOGIN,Aux);//SE VA ESCRIBIENDO LA PRIMERA LINEA DE LOGIN EN EL NUEVO ARCHIVO + + //SE VA LEYENDO CADA LINEA DEL LOGIN + while(!feof(LOGIN)) + { + fgets(Aux, 80, LOGIN); + strcpy(Aux2, Aux); + token = strtok(Aux, ",");//SE VA TOMANDO EL PRIMER VALOR DE CADA LINEA QUE ES EL USUARIO + if(token != NULL){ + if(strcmp(Usuario, token) == 0)//SE VALIDA QUE NO SEA IGUAL EL USUARIO QUE SE QUIERE ELIMINAR CON EL QUE ESTAMOS EN LA LINEA ACTUAL + { + Val = true;//SI SE ENCUENTRA EL QUE SE QUIERE ELIINAR SE IGNORA Y SE VALIDA + }else + { + //SI NO ES EL USUARIO A ELIMINAR SE ESCRIBE EN EL NUEVO ARCHIVO + Cambio(Aux2, 80); + fprintf(NEWLOGIN, "\n%s", Aux2); + } + } + } + //SE CIERRAN LOS DOS ARCHIVOS PARA GUARDAR TODO + fclose(LOGIN); + fclose(NEWLOGIN); + + //SE ELIMINA EL ANTIGUO LOGIN + remove("Datos/LOGIN.txt"); + + //SE CAMBIA EL NOMBRE DEL NUEVO ARCHIVO, Y SE GUARDAR COMO EL ANTIGUO ARCHIVO + rename("Datos/LOGINTEMP.txt", "Datos/LOGIN.txt"); + + if(Val == true) + { + //SI SE ELIMINÓ CORRECTAMENTE EL USUARIO, SE IMPRIME LO SIGUIENTE Y SE VUELVE AL MENÚ + system("cls"); + printf("LISTO"); + printf("\n\n\nTeclea ENTER para volver al MENÚ, por favor..."); + fflush(stdin); + getchar(); + + }else + { + //SI NO SE ELIMINÓ CORRECTAMENTE EL USUARIO, SE IMPRIME LO SIGUIENTE + do + {//SE EJECUTAN LAS SIGUIENTES SENTENCIAS HASTA QUE SE INGRESE UN VALOR VALIDO + system("cls"); + printf("USUARIO NO EXISTE, ¿DESEA SEGUIR INTENTANDO?"); + printf("\n1. SI."); + printf("\n2. NO."); + printf("\nIngrese el número de la selección que quiera elegir: "); + scanf("%d", &S); + if(S != 1 && S != 2) + { + printf("\n\nERROR, INGRESE UNA OPCIÓN DADA..."); + printf("\n\n\nTeclea ENTER para continuar, por favor..."); + fflush(stdin); + getchar(); + } + }while(S != 1 && S != 2); + + if(S == 1) + {//SI SE QUIERE SEGUIR INTENTANDO A ELIMINAR UN USUARIO SE REALIZA UN PROCESO RECURSIVO LLAMANDO + //A LA MISMA FUNCIÓN HASTA QUE YA SE ELIMINE UN USUAURIO O YA NO SE QUIERA SEGUIR INTENTANDO + fflush(stdin); + EliminarTrabajador(); + } + } +} + + + + + + + + + + + + + + + + + diff --git "a/Equipo NetCode/Propuesta de Proyecto Final/PuntoDeVentaLaMarquesiter\303\255a.exe" "b/Equipo NetCode/Propuesta de Proyecto Final/PuntoDeVentaLaMarquesiter\303\255a.exe" new file mode 100644 index 0000000..a12a866 Binary files /dev/null and "b/Equipo NetCode/Propuesta de Proyecto Final/PuntoDeVentaLaMarquesiter\303\255a.exe" differ diff --git a/Equipo NetCode/Propuesta de Proyecto Final/Tickets/1.txt b/Equipo NetCode/Propuesta de Proyecto Final/Tickets/1.txt new file mode 100644 index 0000000..877f344 --- /dev/null +++ b/Equipo NetCode/Propuesta de Proyecto Final/Tickets/1.txt @@ -0,0 +1,16 @@ + LA MARQUESITERÍA + TICKET #1 +------------------------------ +Atendió: VictorWars2000 +Fecha: 20/4/2020 +Hora: 01:12:40 +------------------------------ +Productos: Cant: Precio: +------------------------------ +Esquites 1 30.00 +------------------------------ +Toppings 2 10.00 +------------------------------ +Refrescos 5 100.00 +------------------------------ + TOTAL:$ 140.00 \ No newline at end of file diff --git a/Equipo NetCode/Propuesta de Proyecto Final/Tickets/10.txt b/Equipo NetCode/Propuesta de Proyecto Final/Tickets/10.txt new file mode 100644 index 0000000..d60f741 --- /dev/null +++ b/Equipo NetCode/Propuesta de Proyecto Final/Tickets/10.txt @@ -0,0 +1,12 @@ + LA MARQUESITERÍA + TICKET #10 +------------------------------ +Atendió: VictorWars2000 +Fecha: 27/4/2020 +Hora: 14:06:19 +------------------------------ +Productos: Cant: Precio: +------------------------------ +Tostiesquites 5 175.00 +------------------------------ + TOTAL: $175.00 \ No newline at end of file diff --git a/Equipo NetCode/Propuesta de Proyecto Final/Tickets/11.txt b/Equipo NetCode/Propuesta de Proyecto Final/Tickets/11.txt new file mode 100644 index 0000000..60fc052 --- /dev/null +++ b/Equipo NetCode/Propuesta de Proyecto Final/Tickets/11.txt @@ -0,0 +1,14 @@ + LA MARQUESITERÍA + TICKET #11 +------------------------------ +Atendió: VictorWars2000 +Fecha: 27/4/2020 +Hora: 15:46:50 +------------------------------ +Productos: Cant: Precio: +------------------------------ +Esquites 2 60.00 +------------------------------ +Toppings 5 25.00 +------------------------------ + TOTAL: $85.00 \ No newline at end of file diff --git a/Equipo NetCode/Propuesta de Proyecto Final/Tickets/12.txt b/Equipo NetCode/Propuesta de Proyecto Final/Tickets/12.txt new file mode 100644 index 0000000..bafbd28 --- /dev/null +++ b/Equipo NetCode/Propuesta de Proyecto Final/Tickets/12.txt @@ -0,0 +1,16 @@ + LA MARQUESITERÍA + TICKET #12 +------------------------------ +Atendió: VictorWars2000 +Fecha: 27/4/2020 +Hora: 15:49:55 +------------------------------ +Productos: Cant: Precio: +------------------------------ +Marquesitas 2 60.00 +------------------------------ +Esquites 2 60.00 +------------------------------ +Refrescos 2 40.00 +------------------------------ + TOTAL: $160.00 \ No newline at end of file diff --git a/Equipo NetCode/Propuesta de Proyecto Final/Tickets/13.txt b/Equipo NetCode/Propuesta de Proyecto Final/Tickets/13.txt new file mode 100644 index 0000000..87be60a --- /dev/null +++ b/Equipo NetCode/Propuesta de Proyecto Final/Tickets/13.txt @@ -0,0 +1,20 @@ + LA MARQUESITERÍA + TICKET #13 +------------------------------ +Atendió: VictorWars2000 +Fecha: 27/4/2020 +Hora: 19:25:46 +------------------------------ +Productos: Cant: Precio: +------------------------------ +Marquesitas 2 60.00 +------------------------------ +Ingredientes 5 25.00 +------------------------------ +Toppings 5 25.00 +------------------------------ +Refrescos 2 40.00 +------------------------------ +Aguas 5 100.00 +------------------------------ + TOTAL: $250.00 \ No newline at end of file diff --git a/Equipo NetCode/Propuesta de Proyecto Final/Tickets/14.txt b/Equipo NetCode/Propuesta de Proyecto Final/Tickets/14.txt new file mode 100644 index 0000000..099fb16 --- /dev/null +++ b/Equipo NetCode/Propuesta de Proyecto Final/Tickets/14.txt @@ -0,0 +1,14 @@ + LA MARQUESITERÍA + TICKET #14 +------------------------------ +Atendió: VictorWars2000 +Fecha: 27/4/2020 +Hora: 19:29:50 +------------------------------ +Productos: Cant: Precio: +------------------------------ +Esquites 2 60.00 +------------------------------ +Toppings 25 125.00 +------------------------------ + TOTAL: $185.00 \ No newline at end of file diff --git a/Equipo NetCode/Propuesta de Proyecto Final/Tickets/15.txt b/Equipo NetCode/Propuesta de Proyecto Final/Tickets/15.txt new file mode 100644 index 0000000..07611f7 --- /dev/null +++ b/Equipo NetCode/Propuesta de Proyecto Final/Tickets/15.txt @@ -0,0 +1,24 @@ + LA MARQUESITERÍA + TICKET #15 +------------------------------ +Atendió: VictorWars2000 +Fecha: 27/4/2020 +Hora: 19:33:21 +------------------------------ +Productos: Cant: Precio: +------------------------------ +Marquesitas 5 175.00 +------------------------------ +Ingredientes 2 12.00 +------------------------------ +Esquites 1 35.00 +------------------------------ +Tostiesquites 2 70.00 +------------------------------ +Toppings 5 30.00 +------------------------------ +Refrescos 2 50.00 +------------------------------ +Aguas 2 30.00 +------------------------------ + TOTAL: $402.00 \ No newline at end of file diff --git a/Equipo NetCode/Propuesta de Proyecto Final/Tickets/16.txt b/Equipo NetCode/Propuesta de Proyecto Final/Tickets/16.txt new file mode 100644 index 0000000..f09884e --- /dev/null +++ b/Equipo NetCode/Propuesta de Proyecto Final/Tickets/16.txt @@ -0,0 +1,18 @@ + LA MARQUESITERÍA + TICKET #16 +------------------------------ +Atendió: VictorEnrique 17042000 +Fecha: 5/5/2020 +Hora: 18:31:06 +------------------------------ +Productos: Cant: Precio: +------------------------------ +Marquesitas 2 70.00 +------------------------------ +Esquites 1 35.00 +------------------------------ +Toppings 3 18.00 +------------------------------ +Aguas 2 30.00 +------------------------------ + TOTAL: $153.00 \ No newline at end of file diff --git a/Equipo NetCode/Propuesta de Proyecto Final/Tickets/17.txt b/Equipo NetCode/Propuesta de Proyecto Final/Tickets/17.txt new file mode 100644 index 0000000..caa9c77 --- /dev/null +++ b/Equipo NetCode/Propuesta de Proyecto Final/Tickets/17.txt @@ -0,0 +1,16 @@ + LA MARQUESITERÍA + TICKET #17 +------------------------------ +Atendió: Victor Enrique Cauich +Fecha: 5/5/2020 +Hora: 18:34:53 +------------------------------ +Productos: Cant: Precio: +------------------------------ +Marquesitas 2 70.00 +------------------------------ +Ingredientes 3 18.00 +------------------------------ +Aguas 3 45.00 +------------------------------ + TOTAL: $133.00 \ No newline at end of file diff --git a/Equipo NetCode/Propuesta de Proyecto Final/Tickets/18.txt b/Equipo NetCode/Propuesta de Proyecto Final/Tickets/18.txt new file mode 100644 index 0000000..8da8558 --- /dev/null +++ b/Equipo NetCode/Propuesta de Proyecto Final/Tickets/18.txt @@ -0,0 +1,16 @@ + LA MARQUESITERÍA + TICKET #18 +------------------------------ +Atendió: Victor Enrique Cauich +Fecha: 5/5/2020 +Hora: 23:49:29 +------------------------------ +Productos: Cant: Precio: +------------------------------ +Tostiesquites 2 70.00 +------------------------------ +Toppings 5 30.00 +------------------------------ +Refrescos 2 50.00 +------------------------------ + TOTAL: $150.00 \ No newline at end of file diff --git a/Equipo NetCode/Propuesta de Proyecto Final/Tickets/19.txt b/Equipo NetCode/Propuesta de Proyecto Final/Tickets/19.txt new file mode 100644 index 0000000..bcb3d30 --- /dev/null +++ b/Equipo NetCode/Propuesta de Proyecto Final/Tickets/19.txt @@ -0,0 +1,18 @@ + LA MARQUESITERÍA + TICKET #19 +------------------------------ +Atendió: Victor Enrique Cauich +Fecha: 9/5/2020 +Hora: 21:10:47 +------------------------------ +Productos: Cant: Precio: +------------------------------ +Marquesitas 2 70.00 +------------------------------ +Ingredientes 5 30.00 +------------------------------ +Esquites 2 70.00 +------------------------------ +Refrescos 2 50.00 +------------------------------ + TOTAL: $220.00 \ No newline at end of file diff --git a/Equipo NetCode/Propuesta de Proyecto Final/Tickets/2.txt b/Equipo NetCode/Propuesta de Proyecto Final/Tickets/2.txt new file mode 100644 index 0000000..e38a749 --- /dev/null +++ b/Equipo NetCode/Propuesta de Proyecto Final/Tickets/2.txt @@ -0,0 +1,14 @@ + LA MARQUESITERÍA + TICKET #2 +------------------------------ +Atendió: VictorWars2000 +Fecha: 21/4/2020 +Hora: 01:36:02 +------------------------------ +Productos: Cant: Precio: +------------------------------ +Marquesitas 1 30.00 +------------------------------ +Aguas 2 40.00 +------------------------------ + TOTAL:$ 70.00 \ No newline at end of file diff --git a/Equipo NetCode/Propuesta de Proyecto Final/Tickets/20.txt b/Equipo NetCode/Propuesta de Proyecto Final/Tickets/20.txt new file mode 100644 index 0000000..b368f2c --- /dev/null +++ b/Equipo NetCode/Propuesta de Proyecto Final/Tickets/20.txt @@ -0,0 +1,16 @@ + LA MARQUESITERÍA + TICKET #20 +------------------------------ +Atendió: Victor Cauich +Fecha: 9/5/2020 +Hora: 22:32:46 +------------------------------ +Productos: Cant: Precio: +------------------------------ +Marquesitas 2 70.00 +------------------------------ +Esquites 5 175.00 +------------------------------ +Aguas 2 30.00 +------------------------------ + TOTAL: $275.00 \ No newline at end of file diff --git a/Equipo NetCode/Propuesta de Proyecto Final/Tickets/21.txt b/Equipo NetCode/Propuesta de Proyecto Final/Tickets/21.txt new file mode 100644 index 0000000..f97a358 --- /dev/null +++ b/Equipo NetCode/Propuesta de Proyecto Final/Tickets/21.txt @@ -0,0 +1,16 @@ + LA MARQUESITERÍA + TICKET #21 +------------------------------ +Atendió: Victor Cauich +Fecha: 9/5/2020 +Hora: 22:39:33 +------------------------------ +Productos: Cant: Precio: +------------------------------ +Marquesitas 2 70.00 +------------------------------ +Esquites 2 70.00 +------------------------------ +Aguas 2 30.00 +------------------------------ + TOTAL: $170.00 \ No newline at end of file diff --git a/Equipo NetCode/Propuesta de Proyecto Final/Tickets/22.txt b/Equipo NetCode/Propuesta de Proyecto Final/Tickets/22.txt new file mode 100644 index 0000000..65394aa --- /dev/null +++ b/Equipo NetCode/Propuesta de Proyecto Final/Tickets/22.txt @@ -0,0 +1,12 @@ + LA MARQUESITERÍA + TICKET #22 +------------------------------ +Atendió: Juan Perez +Fecha: 9/5/2020 +Hora: 22:42:29 +------------------------------ +Productos: Cant: Precio: +------------------------------ +Esquites 2 70.00 +------------------------------ + TOTAL: $70.00 \ No newline at end of file diff --git a/Equipo NetCode/Propuesta de Proyecto Final/Tickets/3.txt b/Equipo NetCode/Propuesta de Proyecto Final/Tickets/3.txt new file mode 100644 index 0000000..eb417a2 --- /dev/null +++ b/Equipo NetCode/Propuesta de Proyecto Final/Tickets/3.txt @@ -0,0 +1,12 @@ + LA MARQUESITERÍA + TICKET #3 +------------------------------ +Atendió: VictorWars2000 +Fecha: 22/4/2020 +Hora: 01:36:09 +------------------------------ +Productos: Cant: Precio: +------------------------------ +Esquites 5 150.00 +------------------------------ + TOTAL:$ 150.00 \ No newline at end of file diff --git a/Equipo NetCode/Propuesta de Proyecto Final/Tickets/4.txt b/Equipo NetCode/Propuesta de Proyecto Final/Tickets/4.txt new file mode 100644 index 0000000..880dc53 --- /dev/null +++ b/Equipo NetCode/Propuesta de Proyecto Final/Tickets/4.txt @@ -0,0 +1,12 @@ + LA MARQUESITERÍA + TICKET #4 +------------------------------ +Atendió: VictorWars2000 +Fecha: 23/4/2020 +Hora: 01:36:46 +------------------------------ +Productos: Cant: Precio: +------------------------------ +Marquesitas 2 60.00 +------------------------------ + TOTAL:$ 60.00 \ No newline at end of file diff --git a/Equipo NetCode/Propuesta de Proyecto Final/Tickets/5.txt b/Equipo NetCode/Propuesta de Proyecto Final/Tickets/5.txt new file mode 100644 index 0000000..3329d7d --- /dev/null +++ b/Equipo NetCode/Propuesta de Proyecto Final/Tickets/5.txt @@ -0,0 +1,16 @@ + LA MARQUESITERÍA + TICKET #5 +------------------------------ +Atendió: VictorWars2000 +Fecha: 24/4/2020 +Hora: 11:59:44 +------------------------------ +Productos: Cant: Precio: +------------------------------ +Tostiesquites 1 0.00 +------------------------------ +Toppings 3 15.00 +------------------------------ +Aguas 1 20.00 +------------------------------ + TOTAL:$ 35.00 \ No newline at end of file diff --git a/Equipo NetCode/Propuesta de Proyecto Final/Tickets/6.txt b/Equipo NetCode/Propuesta de Proyecto Final/Tickets/6.txt new file mode 100644 index 0000000..b3f7c55 --- /dev/null +++ b/Equipo NetCode/Propuesta de Proyecto Final/Tickets/6.txt @@ -0,0 +1,12 @@ + LA MARQUESITERÍA + TICKET #6 +------------------------------ +Atendió: VictorWars2000 +Fecha: 25/4/2020 +Hora: 12:05:46 +------------------------------ +Productos: Cant: Precio: +------------------------------ +Tostiesquites 2 0.00 +------------------------------ + TOTAL:$ 0.00 \ No newline at end of file diff --git a/Equipo NetCode/Propuesta de Proyecto Final/Tickets/7.txt b/Equipo NetCode/Propuesta de Proyecto Final/Tickets/7.txt new file mode 100644 index 0000000..f9692ac --- /dev/null +++ b/Equipo NetCode/Propuesta de Proyecto Final/Tickets/7.txt @@ -0,0 +1,14 @@ + LA MARQUESITERÍA + TICKET #7 +------------------------------ +Atendió: EmilioRejon +Fecha: 26/4/2020 +Hora: 12:14:20 +------------------------------ +Productos: Cant: Precio: +------------------------------ +Tostiesquites 4 140.00 +------------------------------ +Aguas 2 40.00 +------------------------------ + TOTAL:$ 180.00 \ No newline at end of file diff --git a/Equipo NetCode/Propuesta de Proyecto Final/Tickets/8.txt b/Equipo NetCode/Propuesta de Proyecto Final/Tickets/8.txt new file mode 100644 index 0000000..c6093c3 --- /dev/null +++ b/Equipo NetCode/Propuesta de Proyecto Final/Tickets/8.txt @@ -0,0 +1,16 @@ + LA MARQUESITERÍA + TICKET #8 +------------------------------ +Atendió: EmilioRejon +Fecha: 26/4/2020 +Hora: 12:14:29 +------------------------------ +Productos: Cant: Precio: +------------------------------ +Marquesitas 5 150.00 +------------------------------ +Ingredientes 4 20.00 +------------------------------ +Refrescos 2 40.00 +------------------------------ + TOTAL:$ 210.00 \ No newline at end of file diff --git a/Equipo NetCode/Propuesta de Proyecto Final/Tickets/9.txt b/Equipo NetCode/Propuesta de Proyecto Final/Tickets/9.txt new file mode 100644 index 0000000..7e0d55e --- /dev/null +++ b/Equipo NetCode/Propuesta de Proyecto Final/Tickets/9.txt @@ -0,0 +1,12 @@ + LA MARQUESITERÍA + TICKET #9 +------------------------------ +Atendió: EmilioRejon +Fecha: 27/4/2020 +Hora: 12:14:37 +------------------------------ +Productos: Cant: Precio: +------------------------------ +Aguas 2 40.00 +------------------------------ + TOTAL:$ 40.00 \ No newline at end of file diff --git a/Equipo NetCode/Propuesta de Proyecto Final/Tickets/UltimoNoTicket.txt b/Equipo NetCode/Propuesta de Proyecto Final/Tickets/UltimoNoTicket.txt new file mode 100644 index 0000000..8fdd954 --- /dev/null +++ b/Equipo NetCode/Propuesta de Proyecto Final/Tickets/UltimoNoTicket.txt @@ -0,0 +1 @@ +22 \ No newline at end of file diff --git "a/Equipo NetCode/Pr\303\241ctica de laboratorio #2/Practica de laboratorio #2 (Switch).cpp" "b/Equipo NetCode/Pr\303\241ctica de laboratorio #2/Practica de laboratorio #2 (Switch).cpp" new file mode 100644 index 0000000..787b775 --- /dev/null +++ "b/Equipo NetCode/Pr\303\241ctica de laboratorio #2/Practica de laboratorio #2 (Switch).cpp" @@ -0,0 +1,56 @@ +#include +#include //Incluimos la biblioteca para que podamos imprimir acentos y más + +int main() +{ + setlocale(LC_ALL,"");//Llamamos a la función de la biblioteca locale.h para poder imprimir acentos y más + int Seleccion = 0;// Declaramos la variable para la selección de las promociones... + double Importe = 0; + printf("EJERCICIO DE LABORARIO 2 (switch)\n\n");//Imprimir titulo del ejercicio + //Pidiendo cuánto es el importe del producto sin la promoción + printf("Ingrese por favor el importe a pagar: "); + scanf("%lf", &Importe); + //Imprimiendo el menú + printf("BOLAS QUE LES PUDIERON TOCAR PARA PROMOCIONES DEL SUPER MERCADO.\n"); + printf("1. Bola Verde.\n"); + printf("2. Bola Amarilla.\n"); + printf("3. Bola Negra.\n"); + printf("4. Bola Blanca.\n"); + printf("Seleccione la bola que sacó, por favor: "); + scanf("%d", &Seleccion);//Se lee la selección + switch(Seleccion) + { + case 1: + printf("\nSelecionaste que sacaste bola Verde.\n");//Imprimimos qué bola sacó + printf("Por lo tanto tendrás el descuento del 20 porciento.\n");//Se imprime cuánto descuento tendrá + printf("Ibas a pagar $%.4f, y ahora tendrás que pagar $%.4f.\n", Importe, Importe-(Importe * .20));//Se imprime cuánto tendrá que pagar ahora + printf("Te ahorras $%.4f\n", Importe * .20);//Se imprime cuánto se ahorrará + break; + case 2: + printf("\nSelecionaste que sacaste bola Amarilla.\n");//Imprimimos qué bola sacó + printf("Por lo tanto tendrás el descuento del 25 porciento.\n");//Se imprime cuánto descuento tendrá + printf("Ibas a pagar $%.4f, y ahora tendrás que pagar $%.4f.\n", Importe, Importe-(Importe * .25));//Se imprime cuánto tendrá que pagar ahora + printf("Te ahorras $%.4f\n", Importe * .25);//Se imprime cuánto se ahorrará + break; + case 3: + printf("\nSelecionaste que sacaste bola Negra.\n");//Imprimimos qué bola sacó + printf("Por lo tanto tendrás el descuento del 30 porciento.\n");//Se imprime cuánto descuento tendrá + printf("Ibas a pagar $%.4f, y ahora tendrás que pagar $%.4f.\n", Importe, Importe-(Importe * .30));//Se imprime cuánto tendrá que pagar ahora + printf("Te ahorras $%.4f\n", Importe * .30);//Se imprime cuánto se ahorrará + break; + case 4: + printf("\nSelecionaste que sacaste bola Blanca.\n");//Imprimimos qué bola sacó + printf("Por lo tanto no tendrás ningún descuento.\n");//Se imprime cuánto descuento tendrá + printf("Tendrás que pagar el importe de $%.4f.\n", Importe);//Se imprime cuánto tendrá que pagar ahora + printf("Lo sentimos, pero no te ahorraras nada.\n");//Se imprime cuánto se ahorrará + break; + default: + printf("Ingresó una opción invalida..."); + break; + } + + printf("\nTeclea ENTER para salir por favor...");//Se imprime que si quiere salir debe dar enter + fflush(stdin);//Se limpia el escanner + getchar();//Se da la opcion para leer un carácter, esto es para que dé tiempo de que se lea el programa y no se cierre al instante + return 0; +} diff --git "a/Equipo NetCode/Pr\303\241ctica de laboratorio #2/Practica de laboratorio #2 (if-else).cpp" "b/Equipo NetCode/Pr\303\241ctica de laboratorio #2/Practica de laboratorio #2 (if-else).cpp" new file mode 100644 index 0000000..bd9de39 --- /dev/null +++ "b/Equipo NetCode/Pr\303\241ctica de laboratorio #2/Practica de laboratorio #2 (if-else).cpp" @@ -0,0 +1,132 @@ +#include +#include //Incluimos la biblioteca para que podamos imprimir acentos y más + +#define OPORTUNIDADES = 4 + +int main() +{ + setlocale(LC_ALL, "");//Llamamos a la función de la biblioteca locale.h para poder imprimir acentos y más + int Seleccion = 0, Hit = 0, Out = 0, BasePorBola = 0;//declaramos Seleccion para leer el batazo que realizó el jugador, + //y los cotadores de out, Hit y Base por bola + + printf("EJERCICIO DE LABORARIO 2 (if-else)\n\n"); + + //Imprimimos un menú con todas sus opciones + printf("OPORTUNIDAD 1\n"); + printf("1. Hit.\n"); + printf("2. Out.\n"); + printf("3. Base por bola.\n"); + printf("Selecciona por favor qué batazo realizó el jugador: "); + scanf("%d", &Seleccion);//lee el batazo que realizó el jugador + if(Seleccion == 1)//Si el jugador bateó hit, entonces se aumenta el contador de Hit + { + Hit++; + }else + { + if(Seleccion == 2)//Si el jugador realizó out, entonces se aumenta el contador de Out + { + Out++; + }else + { + if (Seleccion == 3)//Si suceció un base por bola entonces se aumenta el contador de BasePorBola + { + BasePorBola++; + } + } + } + + printf("\n\n"); + + //Imprimimos un menú con todas sus opciones + printf("OPORTUNIDAD 2\n"); + printf("1. Hit.\n"); + printf("2. Out.\n"); + printf("3. Base por bola.\n"); + printf("Selecciona por favor qué batazo realizó el jugador: "); + scanf("%d", &Seleccion);//lee el batazo que realizó el jugador + if(Seleccion == 1)//Si el jugador bateó hit, entonces se aumenta el contador de Hit + { + Hit++; + }else + { + if(Seleccion == 2)//Si el jugador realizó out, entonces se aumenta el contador de Out + { + Out++; + }else + { + if (Seleccion == 3)//Si suceció un base por bola entonces se aumenta el contador de BasePorBola + { + BasePorBola++; + } + } + } + + printf("\n\n"); + + //Imprimimos un menú con todas sus opciones + printf("OPORTUNIDAD 3\n"); + printf("1. Hit.\n"); + printf("2. Out.\n"); + printf("3. Base por bola.\n"); + printf("Selecciona por favor qué batazo realizó el jugador: "); + scanf("%d", &Seleccion);//lee el batazo que realizó el jugador + if(Seleccion == 1)//Si el jugador bateó hit, entonces se aumenta el contador de Hit + { + Hit++; + }else + { + if(Seleccion == 2)//Si el jugador realizó out, entonces se aumenta el contador de Out + { + Out++; + }else + { + if (Seleccion == 3)//Si suceció un base por bola entonces se aumenta el contador de BasePorBola + { + BasePorBola++; + } + } + } + + printf("\n\n"); + + //Imprimimos un menú con todas sus opciones + printf("OPORTUNIDAD 4\n"); + printf("1. Hit.\n"); + printf("2. Out.\n"); + printf("3. Base por bola.\n"); + printf("Selecciona por favor qué batazo realizó el jugador: "); + scanf("%d", &Seleccion);//lee el batazo que realizó el jugador + if(Seleccion == 1)//Si el jugador bateó hit, entonces se aumenta el contador de Hit + { + Hit++; + }else + { + if(Seleccion == 2)//Si el jugador realizó out, entonces se aumenta el contador de Out + { + Out++; + }else + { + if (Seleccion == 3)//Si suceció un base por bola entonces se aumenta el contador de BasePorBola + { + BasePorBola++; + } + } + } + + printf("\n"); + + printf("Se realizaron %d Hit('s).\n", Hit);//Se imprime cuántos Hit(s) se realizaron + printf("Se realizaron %d Out('s).\n", Out);//Se imprime cuántos Out(s) se realizaron + printf("Se realizaron %d Base(s) por bola.\n", BasePorBola);//Se imprime cuántos Base(s) por bola se realizaron + if ((4 - BasePorBola) == 0)//Si el denominador es igual a 0, entonces se imprime solo los hit(s) que se realizaron + { + printf("El porcentaje de bateo por juego del jugador es %d", Hit); + }else//Si el denominador es diferente a 0, entonces se divide hit sobre las oportunidades que no sean base por bola + { + printf("El porcentaje de bateo por juego del jugador es %.2lf", (double)Hit/(4-BasePorBola)); + } + printf("\nTeclea ENTER para salir por favor...");//Se imprime que si quiere salir debe dar enter + fflush(stdin);//Se limpia el escanner + getchar();//Se da la opcion para leer un carácter, esto es para que dé tiempo de que se lea el programa y no se cierre al instante + return 0; +} diff --git "a/Equipo NetCode/Pr\303\241ctica de laboratorio #3/Ejercicio 1.cpp" "b/Equipo NetCode/Pr\303\241ctica de laboratorio #3/Ejercicio 1.cpp" new file mode 100644 index 0000000..8ddde1d --- /dev/null +++ "b/Equipo NetCode/Pr\303\241ctica de laboratorio #3/Ejercicio 1.cpp" @@ -0,0 +1,42 @@ +#include +#include //Para las acentuaciones +/* +Nombre del Programa: Encuesta a estudiantes +Descripción: Se encuesta a 45 estudiantes y determina según su mes de nacimiento cuantos nacieron en el 1er Semestre o 2do semestre +Autor: Alan Josue Barón Pat & Victor Enrique Cauich Davalos +Versión: 1:0 +Fecha: 06/02/2020 +*/ + +int main (){ + setlocale(LC_ALL, ""); //Se aplica la libreria al programa + int alumnos,mes, Semestre1, Semestre2; //Declaración e inicialización de las variables + alumnos = 0; + mes= 0; + Semestre1= 0; + Semestre2 = 0; + printf ("Encuesta a los 45 estudiantes\n"); + printf ("Este programa determina cuantos nacieron en el 1°Semestre ó 2°Semestre del año\n"); + + while (alumnos < 5) + { + printf ("\nIngrese el mes en el que nacio (1-12): "); + scanf ("%d", &mes); + while (mes<1 | mes>12){ + printf ("Mes no válido, ingrese nuevamente\n");//Validamos + scanf ("%d", &mes); + } + if (mes>= 1 & mes<=6){ //Determinamos el semestre + Semestre1++; + }else { + Semestre2++; + } + alumnos++; + } + //Impresion de los resultados + printf ("\nEl total de alumnos que nacieron en el 1°Semestre es de: "); + printf ("%d", Semestre1); + printf ("\nEl total de alumnos que nacieron en el 2°Semestre es de: "); + printf ("%d", Semestre2); + return 0; +} diff --git "a/Equipo NetCode/Pr\303\241ctica de laboratorio #3/Ejercicio 2.cpp" "b/Equipo NetCode/Pr\303\241ctica de laboratorio #3/Ejercicio 2.cpp" new file mode 100644 index 0000000..282768e --- /dev/null +++ "b/Equipo NetCode/Pr\303\241ctica de laboratorio #3/Ejercicio 2.cpp" @@ -0,0 +1,79 @@ +#include +#include //Para las acentuaciones +/* +Nombre: Concurso de la longitud de un carro +Descripción: Calcular cuántos participantes hay, determinar e imprimir quién se acercó mas a la longitud y cuál fue la propuesta. +Autores: Alan Josue Barón Pat & Victor Enrique Cauich Davalos +Version: 1.0 +Fecha: 06/02/2020 +*/ + +#define LONGITUD 3.85 + +int main (){ + setlocale(LC_ALL,"");//Se aplica la función de la biblioteca locale para que se puedan imprimir acentuaciones... + int Confirmacion = 0; //Booleano para determinar cuándo ya no se va a ingresar una propuesta + double Propuesta = 0.0, PropuestaCercana = 0.0, Diferencia; + int ContParticipantes = 0, ParticipanteCercano = 0; + printf("CONCURSO DE LA LONGITUD DE UN AUTO.\n\n"); + do + { + ContParticipantes++; + printf("\nConcursante #%d, ingrese su propuesta: ", ContParticipantes); + scanf("%lf", &Propuesta);// Lee la propuesta del participante + if(ContParticipantes == 1) //Si es el primer participante se agrega como que es el ganador por mientras o trono + { + if(Propuesta == LONGITUD) + { + PropuestaCercana = Propuesta; + ParticipanteCercano = ContParticipantes; + Diferencia = 0; + }else + { + if(Propuesta < LONGITUD){ + Diferencia = LONGITUD - Propuesta; + PropuestaCercana = Propuesta; + ParticipanteCercano = ContParticipantes; + }else + { + Diferencia = Propuesta - LONGITUD; + PropuestaCercana = Propuesta; + ParticipanteCercano = ContParticipantes; + } + } + }else{ + if(Propuesta == LONGITUD) // Si es exacto la propuesta entonces se pone como trono + { + PropuestaCercana = Propuesta; + ParticipanteCercano = ContParticipantes; + Diferencia = 0; + }else + { + if(Propuesta < LONGITUD){ //Si no es exacto entonces se calcula si es mas cercano a la longitud del carro + if(Diferencia > (LONGITUD - Propuesta)) + { + PropuestaCercana = Propuesta; + ParticipanteCercano = ContParticipantes; + Diferencia = LONGITUD - Propuesta; + } + }else + { + if(Diferencia > (Propuesta - LONGITUD)) + { + PropuestaCercana = Propuesta; + ParticipanteCercano = ContParticipantes; + Diferencia = LONGITUD - Propuesta; + } + } + } + } + printf("Hay alguien más que quiera participar? \n(Escribir 0 si hay mas y si no hay mas ingrese 1):"); + scanf("%d", &Confirmacion); // Se pregunta si hay mas concursantes y sino se sale del ciclo + }while(Confirmacion == 0); + printf("\n\nHubieron %d participantes.", ContParticipantes);// Se imprime el ganador y cuántos participantes fueron... + printf("\nLa persona que ingresó la longitud más cercana es \n el participante #%d con la longitud %.2lf", ParticipanteCercano, PropuestaCercana); + printf("\nTeclea ENTER para salir por favor..."); + fflush(stdin); + getchar(); + return 0; +} diff --git "a/Equipo NetCode/Pr\303\241ctica de laboratorio #3/Ejercicio 3.cpp" "b/Equipo NetCode/Pr\303\241ctica de laboratorio #3/Ejercicio 3.cpp" new file mode 100644 index 0000000..ca20497 --- /dev/null +++ "b/Equipo NetCode/Pr\303\241ctica de laboratorio #3/Ejercicio 3.cpp" @@ -0,0 +1,49 @@ +#include +#include //Para las acentuaciones +/* +Nombre del Programa: Salario del Programador (Junior) +Descripción: Se calcula el salario promedio de los programadores de 10 empresas con cantidades de N trabajadores iguales o distintas +Autor: Alan Josue Barón Pat & Victor Enrique Cauich Davalos +Versión: 1:0 +Fecha: 06/02/2020 +*/ +int main (){ + setlocale(LC_ALL, ""); //Aplicamos la libreria al programa + int empresas,trabajadores,Ntrabajadores,num; //declaramos e inicializamos las variables + double Spromedio,Salario; + empresas = 0; + trabajadores = 0; + Ntrabajadores = 0; + num = 0; + Spromedio = 0.0; + Salario = 0.0; + + printf ("Programa que captura los salarios de 10 empresas con N trabajadores y determina el salario promedio de todos los trabajadores\n"); + while (empresas < 10){ + num = 0; + trabajadores = 0; + printf ("\n¿Cúantos trabajadores tiene la empresa: %d?\n", empresas+1); //Determinamos los trabajadores por empresa + scanf ("%d", &trabajadores); + Ntrabajadores = Ntrabajadores + trabajadores; + while (trabajadores<1){ + printf ("Tiene que trabajar alguien, ingrese nuevamente: "); //Validamos los trabajadores + scanf ("%d", &trabajadores); + } + while (num < trabajadores){ + printf ("Ingrese el salario del trabajador : %d\n", num+1); + scanf ("%lf", &Salario); + while (Salario<0){ + printf ("El trabajadore debe ganar algo,no?, ingrese de nuevo: "); //Validamos el salario + scanf ("%lf", &Salario); + } + Spromedio = Spromedio+Salario; + num++; + } + empresas++; + } + + Spromedio = Spromedio/Ntrabajadores; //Calculamos el promedio + printf ("\nEl salario promedio de todos los programadores es de: %.4lf", Spromedio); //Imprimimos el resultado + + return 0; +} diff --git "a/Equipo NetCode/Pr\303\241ctica de laboratorio #4/Ejercicio 1.cpp" "b/Equipo NetCode/Pr\303\241ctica de laboratorio #4/Ejercicio 1.cpp" new file mode 100644 index 0000000..3d2c27d --- /dev/null +++ "b/Equipo NetCode/Pr\303\241ctica de laboratorio #4/Ejercicio 1.cpp" @@ -0,0 +1,61 @@ +#include +#include //Para las acentuaciones +#include //Para limpiar la consola en este caso +/* +Nombre: El robot móvil +Descripción: El desplazamiento de un robot se ve afectado por medio de comandos numericos +Autor: Alan Josue Barón Pat & Victor Cauich Davalos +Version: 1.0 +Fecha: 11/02/2020 +*/ +int main (){ + setlocale (LC_ALL,""); //Aplicamos la libreria + int Movimientos,i; //Contadores + int x,y,Comando; //Posición + x = 0; + y = 0; + //Inicio + printf ("Este programa calcula las cordenadas en (x,y) de un robot"); + printf ("\nLa posición del robot se ve afectada por comandos numéricos\n"); + printf ("\nPor favor ingrese el total de movimientos que va a realizar en el robot: "); + scanf ("%d", &Movimientos); //Entrada principal + + while (Movimientos <1){ //Validamos los movimientos + printf ("\nDebe existir movimientos, ingrese nuevamente: "); + scanf ("%d", &Movimientos); + } + + for (i=0;i + //Proceso + printf ("\nLos comandos numéricos para mover el robot son: \n"); + printf ("\n6.- Incrementa x en 1\n"); + printf ("4.- Decrementa x en 1\n"); + printf ("8.- Incrementa y en 1\n"); + printf ("2.- Decrementa y en 1\n"); + printf ("\nLa posición actual del robot es de (%d,%d).", x, y); //"Salida" + printf ("\nIngrese el comando %d/%d: ",i+1,Movimientos); + scanf ("%d", &Comando); + + while (Comando != 6 & Comando != 4 & Comando!=8 & Comando !=2 ){ //Validamos que el comando sean los establecidos + printf ("Comando no establecido,ingrese nuevamente: "); + scanf ("%d", &Comando); + } + //Determinamos la posición + switch (Comando){ + case 6: + x++; + break; + case 4: + x--; + break; + case 8: + y++; + break; + case 2: + y--; + break; + } + } + printf ("\nLa posición final del robot fue de (%d,%d).", x, y); //"Salida final" +} diff --git "a/Equipo NetCode/Pr\303\241ctica de laboratorio #4/Ejercicio 2.cpp" "b/Equipo NetCode/Pr\303\241ctica de laboratorio #4/Ejercicio 2.cpp" new file mode 100644 index 0000000..aaa99ae --- /dev/null +++ "b/Equipo NetCode/Pr\303\241ctica de laboratorio #4/Ejercicio 2.cpp" @@ -0,0 +1,115 @@ +#include +#include //Para las acentuaciones +/* +Nombre: Boxito Plomero +Descripción: Ejercicio de Boxito Plomero, cálcula año que vas utilidades obtuvo y la tienda que mas utilidades obtuvo en los 5 años. +Autores: Victor Enrique Cauich Davalos & Alan Josue Barón Pat +Version: 1.0 +Fecha: 11/02/2020 +*/ + +int main (){ + setlocale(LC_ALL,"");//Se aplica la función de la biblioteca locale para que se puedan imprimir acentuaciones... + double VentasMensuales = 0, CostosMensuales = 0, SumaDeUtilidadesTOTAL = 0, SumaDeUtilidadesAnual = 0; + double SumaUtilidades = 0; + int TiendaGanadoraTOTAL, AnioMayor; + double SumaUtilidadesGanadoraTIENDAS = 0, AnioMayorUtilidad = 0; + double Anio = 0, Anio2 = 0, Anio3 = 0, Anio4 = 0, Anio5 = 0; + printf("EJERCICIO P4. DE BOXITO PLOMERO.\n\n"); + for(int ContTiendas = 0; ContTiendas < 3; ContTiendas++) + { + for(int ContAnios = 0; ContAnios < 5; ContAnios++) + { + for(int ContMeses = 0; ContMeses < 12; ContMeses++) + { + printf("Ingrese las ventas de la tienda #%d en el año #%d en el mes #%d, por favor:\n", ContTiendas + 1, ContAnios + 1, ContMeses + 1); + scanf("%lf", &VentasMensuales); + printf("Ingrese los costos de la tienda #%d en el año #%d en el mes #%d, por favor:\n", ContTiendas + 1, ContAnios + 1, ContMeses + 1); + scanf("%lf", &CostosMensuales); + printf("\n"); + SumaUtilidades = SumaUtilidades + (VentasMensuales - CostosMensuales); + } + SumaDeUtilidadesTOTAL = SumaDeUtilidadesTOTAL + SumaUtilidades; + switch(ContAnios) + { + case 0: + Anio = Anio + SumaDeUtilidadesTOTAL; + break; + case 1: + Anio2 = Anio2 + SumaDeUtilidadesTOTAL; + break; + case 2: + Anio3 = Anio3 + SumaDeUtilidadesTOTAL; + break; + case 3: + Anio4 = Anio4 + SumaDeUtilidadesTOTAL; + break; + case 4: + Anio5 = Anio5 + SumaDeUtilidadesTOTAL; + break; + } + SumaUtilidades = 0; + } + + if(ContTiendas == 0) + { + TiendaGanadoraTOTAL = ContTiendas; + SumaUtilidadesGanadoraTIENDAS = SumaDeUtilidadesTOTAL; + }else + { + if(SumaDeUtilidadesTOTAL > SumaUtilidadesGanadoraTIENDAS) + { + TiendaGanadoraTOTAL = ContTiendas; + SumaUtilidadesGanadoraTIENDAS = SumaDeUtilidadesTOTAL; + } + } + SumaDeUtilidadesTOTAL = 0; + } + printf("La tienda que tuvo mayor utilidad en los 5 años fue la tienda #%d con la Utilidad de $%.2lf.\n", TiendaGanadoraTOTAL, SumaUtilidadesGanadoraTIENDAS); + + for(int i = 1; i < 6; i++) + { + switch(i) + { + case 1: + AnioMayorUtilidad = Anio; + AnioMayor = 1; + break; + case 2: + if(Anio2 > AnioMayorUtilidad) + { + AnioMayorUtilidad = Anio2; + AnioMayor = 2; + } + break; + case 3: + if(Anio3 > AnioMayorUtilidad) + { + AnioMayorUtilidad = Anio3; + AnioMayor = 3; + } + break; + case 4: + if(Anio4 > AnioMayorUtilidad) + { + AnioMayorUtilidad = Anio4; + AnioMayor = 4; + } + break; + case 5: + if(Anio5 > AnioMayorUtilidad) + { + AnioMayorUtilidad = Anio5; + AnioMayor = 5; + } + break; + default: + break; + } + } + printf("El año que tuvo mayor utilidad fue el #%d, con $%lf de utilidad.", AnioMayor, AnioMayorUtilidad); + printf("\nTeclea ENTER para salir por favor..."); + fflush(stdin); + getchar(); + return 0; +} diff --git "a/Equipo NetCode/Pr\303\241ctica de laboratorio #5/P5_CauichVictor/Ejercicio.cpp" "b/Equipo NetCode/Pr\303\241ctica de laboratorio #5/P5_CauichVictor/Ejercicio.cpp" new file mode 100644 index 0000000..728fcdd --- /dev/null +++ "b/Equipo NetCode/Pr\303\241ctica de laboratorio #5/P5_CauichVictor/Ejercicio.cpp" @@ -0,0 +1,155 @@ +#include +#include //Para las acentuaciones +#include +/* +Nombre: CONCURSO INTERNACIONAL DE MATEMÁTICAS +Descripción: I. Se cuenta con una lista con los resultados de 100 estudiantes en un +concurso internacional de matemáticas. Dicha lista contiene la siguiente información +de cada estudiante: nombre, nombre de universidad, país de nacimiento, Cal1, Cal2, +Cal3 y Cal4. Como se observa en los datos, para cada estudiante se tiene la calificación +que obtuvo en cada uno de los cuatro problemas de que constaba el concurso. +También, se conoce que algunos alumnos participantes en la competencia, son de la UADY. +E.P. que determine e imprima lo siguiente: +a) Número de alumnos de la UADY que participaron. +b) Número de participantes que sean mexicanos. +c) Nombre del alumno de la UADY que obtuvo la calificación final más alta (sólo es uno). +Dicha calificación final, es la suma de las cuatro calificaciones parciales obtenidas en los problemas. + +Autores: Victor Enrique Cauich Davalos +Version: 2.0 +Fecha: 18/02/2020 +*/ + +#define Alumnos 100 //Definimos la cantidad de estidiantes +double CalcularCalFinal(double Cal1, double Cal2, double Cal3, double Cal4);//inicializamos la función para validad cada calificación +double CalcularCalMayor(double Calificacion, double CalMayor, int t);//inicializamos la función para cálcular la calificacióm mayor + +int main (){ + setlocale(LC_ALL,"");//Se aplica la función de la biblioteca locale para que se puedan imprimir acentuaciones... + //Declaramos las variables + char NombreAlumno[30], NombreGanadorUADY[30], NacionalidadOtra[30]; + double Cal1, Cal2, Cal3, Cal4, CALIFICACION = 0, CALIFICACIONMAYOR = 0, temp; + int ContAlumnosUADY = 0, ContAlumnosMEX = 0, Seleccion = 0, t = 0; + + + printf("EJERCICIO DE UN CONCURSO INTERNACIONAL DE MATEMÁTICAS.\n\n"); + for(int i = 0; i < Alumnos; i++) + { + //Pedimos nombre al estudiante i + printf("\nIngrese el nombre del estudiante #%d, por favor: ", i + 1); + scanf("%s", &NombreAlumno); + //Validamos la nacionalidad + do{ + printf("\nAhora seleccione su nacionalidad."); + printf("\n1. Méxicano."); + printf("\n2. Estadounidense."); + printf("\n3. Brasileño."); + printf("\n4. Aleman."); + printf("\n5. Otro..."); + printf("\nSeleecione la opción que indique su nacionalidad: "); + scanf("%d", &Seleccion); + switch(Seleccion) + { + case 1: + ContAlumnosMEX++; + break; + case 2: + break; + case 3: + break; + case 4: + break; + case 5: + printf("\nEscriba su nacionalidad, por favor: "); + scanf("%s", &NacionalidadOtra); + break; + default: + printf("\nERROR... Ingrese una opción validad indicada, por favor...\n"); + break; + } + }while(1 > Seleccion || Seleccion > 5); + //Validamos la universidad + do{ + printf("\nAhora seleccione su universidad."); + printf("\n1. UADY."); + printf("\n2. UTM."); + printf("\n3. OXFORT."); + printf("\n4. Stanford."); + printf("\n5. Otro..."); + printf("\nSeleecione la opción que indique su nacionalidad: "); + scanf("%d", &Seleccion); + switch(Seleccion) + { + case 1: + ContAlumnosUADY++; + break; + case 2: + break; + case 3: + break; + case 4: + break; + case 5: + printf("\nEscriba su universidad, por favor: "); + scanf("%s", &NacionalidadOtra); + break; + default: + printf("\nERROR... Ingrese una opción validad indicada, por favor...\n"); + break; + } + }while(1 > Seleccion || Seleccion > 5); + + //Se le pide al estuidiante cada calificación + + printf("\nIngrese la calificación, del parcial 1, por favor: "); + scanf("%lf", &Cal1); + printf("\nIngrese la calificación, del parcial 2, por favor: "); + scanf("%lf", &Cal2); + printf("\nIngrese la calificación, del parcial 3, por favor: "); + scanf("%lf", &Cal3); + printf("\nIngrese la calificación, del parcial 4, por favor: "); + scanf("%lf", &Cal4); + //Se suman todas las calificaciones + CALIFICACION = CalcularCalFinal(Cal1, Cal2, Cal3, Cal4); + //Calculamos la calificación mas alta entre los alumnos uady + if(Seleccion == 1) + { + t++; + temp = CALIFICACIONMAYOR; + CALIFICACIONMAYOR = CalcularCalMayor(CALIFICACION, CALIFICACIONMAYOR, t); + if(temp != CALIFICACIONMAYOR) + { + memcpy(NombreGanadorUADY, NombreAlumno, sizeof(NombreAlumno));//Se guarda el nombre del ganador por ahora... + } + } + } + //Imprimimos resultados... + printf("\n\nIMPRIMIMOS LOS RESULTADOS."); + printf("\nHay %d alumnos de la UADY en el concurso.", ContAlumnosUADY); + printf("\nHay %d alumnos de nacionalidad mexicana en el concurso.", ContAlumnosMEX); + printf("\nEl estudiante %s tuvo la calificación mas alta que fue de %.2lf\n", NombreGanadorUADY, CALIFICACIONMAYOR); + printf("\nTeclea ENTER para salir por favor..."); + fflush(stdin); + getchar(); + return 0; +} +//------------------Calcular la calificación final de cada estudiante--------- +double CalcularCalFinal(double Cal1, double Cal2, double Cal3, double Cal4) +{ + return Cal1 + Cal2 + Cal3 + Cal4; +} +//------------------Calcular la calificación mayor---------------------------- +double CalcularCalMayor(double Calificacion, double CalMayor, int t) +{ + if(t == 1) + { + CalMayor = Calificacion; + }else + { + if(Calificacion > CalMayor) + { + CalMayor = Calificacion; + } + } + return CalMayor; +} diff --git "a/Equipo NetCode/Pr\303\241ctica de laboratorio #5/P5_CauichVictor/Ejercicio.exe" "b/Equipo NetCode/Pr\303\241ctica de laboratorio #5/P5_CauichVictor/Ejercicio.exe" new file mode 100644 index 0000000..9ca5a8f Binary files /dev/null and "b/Equipo NetCode/Pr\303\241ctica de laboratorio #5/P5_CauichVictor/Ejercicio.exe" differ diff --git "a/Equipo NetCode/Pr\303\241ctica de laboratorio #6/P6_NetCode/Ejercicio 1.cpp" "b/Equipo NetCode/Pr\303\241ctica de laboratorio #6/P6_NetCode/Ejercicio 1.cpp" new file mode 100644 index 0000000..76064f5 --- /dev/null +++ "b/Equipo NetCode/Pr\303\241ctica de laboratorio #6/P6_NetCode/Ejercicio 1.cpp" @@ -0,0 +1,65 @@ +#include +#include +/* +Nombre del Programa: Reporte de NOMBRE, PESO Y ESTATURA +Descripción: E.P. que lea un arreglo con los nombres de n personas, un segundo arreglo con el peso y un tercer arreglo con la estatura de dichas personas. +Es decir se contará con tres arreglos: nombres, pesos y estaturas; determinar el peso y la estatura promedio. + +Autor: Alan Josue Barón Pat & Victor Cauich Davalos +Versión: 1.0.0 +Fecha: 09/03/2020 +*/ + +int main (){ + setlocale (LC_ALL,""); + + int i,personas; + double pesoP,estaturaP; + + //------------Determinamos el total de elementos------------ + printf ("Bienvenido, ingrese el total de personas a reportar: "); + do{ + scanf ("%d", &personas); + if (personas<=0){ + printf ("/nDebe existir gente a reportar, ingrese nuevamente: "); + } + }while (personas<=0); + + char nombres[personas][30]; + double peso[personas], estatura[personas]; + //-----------------------Capturamos los datos-------------------------- + pesoP = 0; + estaturaP = 0; + + for (i=0;i +#include //Para las acentuaciones +/* +Nombre: 2do REPORTE DE NOMBRE, PESO Y ESTATURA +Descripción: que lea un arreglos de una estructura de arreglos +de n x 3 elementos que contenga el nombre, peso y estatura de +n personas; determinar el peso y la estatura promedio, así como +imprimir el mismo reporte del anterior ejercicio. +Autores: Alan Josue Barón Pat & Victor Enrique Cauich Davalos +Version: 2.0 +Fecha: 9/03/2020 +*/ + +int CuantasPersonas(); +struct Datos IngresarDatosDePersonas(struct Datos Personas[], int NoPersonas); +double CalcularPromPeso(struct Datos Personas[], int NoPersonas); +double CalcularPromEstatura(struct Datos Personas[], int NoPersonas); +void ImpresionDeReporte(struct Datos Personas[], int NoPersonas, double PromPeso, double PromEstatura); + +typedef struct Datos{ + char Nombre[30]; + double Peso; + double Estatura; +}; + +int main (){ + setlocale(LC_ALL,"");//Se aplica la función de la biblioteca locale para que se puedan imprimir acentuaciones... + int i = 0, NoPersonas = 0; + double PromPeso, PromEstatura; + + printf("\nSOFTWARE PARA REALIZAR REPORTE DE NOMBRES, PESO, ESTATURA \nY, PROMEDIO DE PESO Y ESTARURA."); + NoPersonas = CuantasPersonas();//Validamos el número de personas + //Leemos los datos de cada persona + struct Datos Personas[NoPersonas]; + *Personas = IngresarDatosDePersonas(Personas, NoPersonas); + //Calcular el promedio de peso + PromPeso = CalcularPromPeso(Personas, NoPersonas); + //Calcular el promedio de estatura + PromEstatura = CalcularPromEstatura(Personas, NoPersonas); + //Impresión de reporte + ImpresionDeReporte(Personas, NoPersonas, PromPeso, PromEstatura); + + printf("\nTeclea ENTER para salir por favor..."); + fflush(stdin); + getchar(); + return 0; +} +//----------------Función para saber cuántas personas se registraran----------- +int CuantasPersonas() +{ + int NumeroPersonas; + printf("\nIngrese el número de personas que se registraran (Mayor a 0), por favor: "); + scanf("%d", &NumeroPersonas); + if(NumeroPersonas <= 0) + { + printf("\n\nERROR, intente de nuevo..."); + NumeroPersonas = CuantasPersonas(); + } + + if(NumeroPersonas > 0) + { + return NumeroPersonas; + } +} +//----------------Función para Ingresar datos de cada persona------------------- +Datos IngresarDatosDePersonas(Datos Personas[], int NoPersonas) +{ + int i = 0; + while(i < NoPersonas) + { + printf("\nIngrese el nombre de la persona #%d, por favor: ", i + 1); + scanf("%s", &Personas[i].Nombre); + fflush(stdin); + printf("\nIngrese el Peso de la persona #%d, por favor: ", i + 1); + scanf("%lf", &Personas[i].Peso); + fflush(stdin); + printf("\nIngrese la Estatura de la persona #%d, por favor: ", i + 1); + scanf("%lf", &Personas[i].Estatura); + fflush(stdin); + i++; + } + return *Personas; +} +//--------------------Función para Calcular el peso promedio--------------------- +double CalcularPromPeso(Datos Personas[], int NoPersonas) +{ + int i = 0; + double PromPeso = 0; + while(i < NoPersonas) + { + PromPeso = PromPeso + Personas[i].Peso; + i++; + } + return PromPeso/NoPersonas; +} +//--------------------Función para Calcular la Estatura promedio--------------------- +double CalcularPromEstatura(Datos Personas[], int NoPersonas) +{ + int i = 0; + double PromEstatura = 0; + while(i < NoPersonas) + { + PromEstatura = PromEstatura + Personas[i].Estatura; + i++; + } + return PromEstatura/NoPersonas; +} +//------------------------Función para Impresión de reporte--------------------------- +void ImpresionDeReporte(Datos Personas[], int NoPersonas, double PromPeso, double PromEstatura) +{ + int i = 0; + printf("\n\n REPORTE"); + printf("\nNOMBRE PESO ESTATURA"); + printf("\n-----------------------------------------------------------"); + while(i < NoPersonas) + { + printf("\n%s %.2lf %.2lf", Personas[i].Nombre, Personas[i].Peso, Personas[i].Estatura); + i++; + } + printf("\n-----------------------------------------------------------"); + printf("\n %.2lf %.2lf", PromPeso, PromEstatura); +} diff --git "a/Equipo NetCode/Pr\303\241ctica de laboratorio #6/P6_NetCode/Ejercicio 3.cpp" "b/Equipo NetCode/Pr\303\241ctica de laboratorio #6/P6_NetCode/Ejercicio 3.cpp" new file mode 100644 index 0000000..d61829d --- /dev/null +++ "b/Equipo NetCode/Pr\303\241ctica de laboratorio #6/P6_NetCode/Ejercicio 3.cpp" @@ -0,0 +1,55 @@ +#include +#include +/* +Nombre del Programa: Matriz de NxM +Descripción: E.P. que lea una matríz de n x m elementos que contenga números reales, determine su matriz transpuesta e imprima ambas, en formato de matriz (filas/columnas). +De tal forma, la traspuesta de una matriz de orden m x n es una matriz de orden n x m, que se obtiene intercambiando filas por columnas; +es decir, el elemento A(i,j) se coloca en B(j,i). + +Autor: Alan Josue Barón Pat & Victor Cauich Davalos +Versión: 1.0.0 +Fecha: 09/03/2020 +*/ + +int main (){ + setlocale (LC_ALL,""); + int i,j,filas,columnas; + + printf ("Bienvenido, este programa recibe datos reales en una matriz de NxM e imprime la transpuesta.\n"); + printf ("Primero definamos el tamaño de la misma: \n"); + + //------------------Calculamos las filas ---------------- + printf ("\nIngrese el total de filas: "); + scanf ("%d", &filas); + //-----------------Calculamos las columnas------------------- + printf ("Ingrese el total de columnas: "); + scanf ("%d", &columnas); + //------------Determinamos el tamaño de la matriz------------- + double matriz[filas][columnas]; + //-----------------Capturamos los datos--------------------- + for (i=0;i +#include //Para las acentuaciones +/* +Nombre: 2do REPORTE DE NOMBRE, PESO Y ESTATURA +Descripción: que lea un arreglos de una estructura de arreglos +de n x 3 elementos que contenga el nombre, peso y estatura de +n personas; determinar el peso y la estatura promedio, así como +imprimir el mismo reporte del anterior ejercicio. +Autores: Alan Josue Barón Pat & Victor Enrique Cauich Davalos +Version: 2.0 +Fecha: 9/03/2020 +*/ + +#define Correct 15//Núnmero que deben de dar las sumatorias de filas, columnas y diagonal + +int IngresarDatosDeMatriz(int Matriz, int X, int Y);//Función para ingresar datos de la matriz +int Multiplicacion(int MatrizA, int N, int M, int MatrizB, int L, int K, int MatrizC);//Ffunción para calcular multiplicación +void ImprimirMatriz(int Matriz, int X, int Y);//Impresión de Matriz + + +int main (){ + setlocale(LC_ALL,"");//Se aplica la función de la biblioteca locale para que se puedan imprimir acentuaciones... + int N, M, L, K; + printf("PROGRAMA DE MULTIPLICACIÓN DE MATRICES."); + //Validando que las columnas de la MatrizA sea igual a las filas de la MatrizA + printf("Ingrese los datos de las filas y columnas...\n"); + do{ + printf("\nIngrese cuántas filas tendrá la MatrizA, por favor: "); + scanf("%d", &N); + printf("\nIngrese cuántas columnas tendrá la MatrizA, por favor: "); + scanf("%d", &M); + printf("\nIngrese cuántas filas tendrá la MatrizB, por favor: "); + scanf("%d", &L); + printf("\nIngrese cuántas columnas tendrá la MatrizB, por favor: "); + scanf("%d", &K); + if(M != L) + { + printf("ERROR, el número de columnas de la MatrizA,\nDebe ser igual al número de filas de la matrizB"); + } + }while(M != L); + int MatrizA[N][M], MatrizB[L][K], MatrizC[N][K]; + //Ingresando los valores de la MatrizA + printf("\nIngrese los valores de la matriz 1...\n"); + //Ingresando los valores de la MatrizB + printf("\nIngrese los valores de la matriz 1...\n"); + **MatrizB = IngresarDatosDeMatriz(**MatrizB, L, K); + //Imprimimos las Matrices + printf("\nMatrizA: \n"); + ImprimirMatriz(**MatrizA, N, M); + printf("\nMatrizB: \n"); + ImprimirMatriz(**MatrizB, L, K); + //Calculando la multiplicación de la MatrizA y MatrizB + **MatrizC = Multiplicacion(**MatrizA, N, M, **MatrizB, L, K, **MatrizC); + printf("\nMatrizC(Multiplicación): \n"); + ImprimirMatriz(**MatrizC, N, K); + printf("\nTeclea ENTER para salir por favor..."); + fflush(stdin); + getchar(); + return 0; +} +//-------------Ingresando datos de las Matrices--------- +int IngresarDatosDeMatriz(int Matriz, int X, int Y) +{ + for(int i = 0; i < X, i++) + { + for(int t = 0; t < Y; t++) + { + printf("Ingresa el número de la matriz[%d][%d]: ", i + 1, t + 1); + scanf("%d", &Matriz[i][t]); + fflush(stdin); + } + } + return **Matriz; +} +//---------Función para calcular la Matriz de multiplicación------ +int Multiplicacion(int MatrizA[N][M], int N, int M, int MatrizB[L][K], int L, int K, int MatrizC[N][K]) +{ + int H = L; + for(int i = 0; i < N; i++) + { + for(int t = 0; t < K; t++) + { + for(int j = 0; j < M; j++) + { + MatrizC[i][t] = MatrizC[i][t] + (MatrizA[i][M] * MatrizB[M][t]); + } + } + } + return **MatrizC; +} +//--------------------Función que imprime la matriz--------------- +void ImprimirMatriz(int Matriz[X][Y], int X, int Y) +{ + Matriz[X][Y]; + for(int i = 0; i < X, i++) + { + for(int t = 0; t < Y; t++) + { + printf("%d ", Matriz[i][t]); + } + } +} + diff --git "a/Equipo NetCode/Pr\303\241ctica de laboratorio #7/P7_NetCode/Ejercicio 1.cpp" "b/Equipo NetCode/Pr\303\241ctica de laboratorio #7/P7_NetCode/Ejercicio 1.cpp" new file mode 100644 index 0000000..aba1f18 --- /dev/null +++ "b/Equipo NetCode/Pr\303\241ctica de laboratorio #7/P7_NetCode/Ejercicio 1.cpp" @@ -0,0 +1,92 @@ +#include +#include +#include +/* +Nombre del Programa: Matriz A,Vector X y Vector Z + +Descripción: E.P. que lea una matriz A de n x m elementos, así como un vector X de n elementos que contengan números reales. +Calcular el producto de matriz por vector columna: el producto de la matriz A por el vector X, es un vector Z donde el elemento 1 está dado por +la sumatoria de los productos del elemento 1 del vector X por cada uno de los elementos de la fila 1 de la matriz A, lo propio para el 2, 3, 4, ..n. +Imprimir la matriz, el vector X y el vector Z, cada arreglo a un lado del otro. + +Autor: Alan Josue Barón Pat & Victor Cauich Davalos +Versión: 1.0.0 +Fecha: 10/03/2020 +*/ + +int main (){ + setlocale(LC_ALL,""); + + int i,j,n,m; + int filas,columnas; + + //Datos de la matriz A + printf ("Bienvenido\n"); + printf ("Ingrese los datos de la matriz: \n"); + printf ("Ingrese el total de filas: "); + scanf ("%d", &filas); + printf ("Ingrese el total de columnas: "); + scanf ("%d", &columnas); + + double Matriz[filas][columnas]; + //Datos del vector X + printf ("\n\nAhora ingrese el total de elementos del vector: "); + do{ + scanf ("%d",&n); + if (n!=filas){ + printf ("\nEl total de elementos del vector debe coincidir con el total de filas de la matriz\n"); + printf ("Ingrese nuevamente: "); + } + }while (n!=filas); + + double vector1[n]; + //Generamos el vector Z + double vector2[n]; + //Lectura de datos + system ("cls"); + printf ("Ahora ingrese los datos de la matriz: \n"); + for (i=0;i +#include //Para las acentuaciones +/* +Nombre: EL CUADRADO MÁGICO +Descripción: E.P. que permita leer una matriz de 3 x 3 elementos +que contenga números enteros e indique si se trata de un cuadrado mágico. +Dicho cuadrado mágico es cuando la sumatoria de los elementos +es 15 por renglones, columnas o diagonales. +Autores: Alan Josue Barón Pat & Victor Enrique Cauich Davalos +Version: 2.0 +Fecha: 9/03/2020 +*/ + +#define N 3 //Tamaño de filas y columnas de la matriz +#define Correct 15//Núnmero que deben de dar las sumatorias de filas, columnas y diagonal + +int IngresarDatosDePersonas(int Matriz[N][N]);//Función para ingresar datos de la matriz +bool VerificarFilas(int Matriz[N][N], bool Confirmacion);//Función para verificar suma de filas +bool VerificarColumnas(int Matriz[N][N], bool Confirmacion);//Función para verificar suma de columnas +bool VerificarDiagonales(int Matriz[N][N], bool Confirmacion);//Función para verificar suma de diagonales +void ImprimirMatriz(int Matriz[N][N]);//Impresión de Matriz + + +int main (){ + setlocale(LC_ALL,"");//Se aplica la función de la biblioteca locale para que se puedan imprimir acentuaciones... + int Matriz[N][N]; + bool Confirmacion = true; + printf("PROGRAMA DE CUADRADO PERFECTO."); + printf("\nIngrese los valores de la matriz...\n"); + //Otorgar valor de cada elemento de la matriz + **Matriz = IngresarDatosDePersonas(Matriz); + //Imprimimos la Matriz + printf("Su Matriz es este:\n"); + ImprimirMatriz(Matriz); + //Verificamos que la sumatoria de las filan den 15 + Confirmacion = VerificarFilas(Matriz, Confirmacion); + if(Confirmacion == true) + { + //Verificamos columnas + Confirmacion = VerificarColumnas(Matriz, Confirmacion); + if(Confirmacion == true) + { + //Verificamos diagonales + Confirmacion = VerificarDiagonales(Matriz, Confirmacion); + if(Confirmacion == true) + { + printf("El cuadrado es Mágico....\n"); + }else + { + printf("El cuadrado es inmagico...\n"); + } + }else{ + printf("El cuadrado es inmagico...\n"); + } + }else + { + printf("El cuadrado es inmagico...\n"); + } + + printf("\nTeclea ENTER para salir por favor..."); + fflush(stdin); + getchar(); + return 0; +} +//------------------Ingresar datos de la matriz------------------ +int IngresarDatosDePersonas(int Matriz[N][N]) +{ + int i = 0, t = 0; + while(i < N) + { + while(t < N) + { + printf("Ingrese el valor de la matriz[%d][%d], por favor: ", i + 1, t + 1); + scanf("%d", &Matriz[i][t]); + fflush(stdin); + t++; + } + t = 0; + i++; + } + return **Matriz; +} +//------------------Función para verificar suma de filas------------------ +bool VerificarFilas(int Matriz[N][N], bool Confirmacion) +{ + int i = 0, t = 0, Suma = 0; + while(i < N) + { + while(t < N) + { + Suma = Suma + Matriz[i][t]; + t++; + } + + if(Suma != Correct) + { + Confirmacion = false; + return Confirmacion; + } + Suma = 0; + t = 0; + i++; + } + + return Confirmacion; +} +//------------------Función para verificar suma de columnas------------------ +bool VerificarColumnas(int Matriz[N][N], bool Confirmacion) +{ + int i = 0, t = 0, Suma = 0; + while(t < N) + { + while(i < N) + { + Suma = Suma + Matriz[i][t]; + i++; + } + + if(Suma != Correct) + { + Confirmacion = false; + return Confirmacion; + } + Suma = 0; + i = 0; + t++; + } + + return Confirmacion; +} +//--------------------Función para verificar suma de diagonales--------------- +bool VerificarDiagonales(int Matriz[N][N], bool Confirmacion) +{ + int i = 0, t = 0, Suma = 0; + + for(i = 0; i < N; i++) + { + Suma = Suma + Matriz[i][i]; + } + + if(Suma != Correct) + { + Confirmacion = false; + return Confirmacion; + } + + t = N; + + for(i = 0; i < N; i++) + { + Suma = Suma + Matriz[i][t]; + t--; + } + + return Confirmacion; +} +//--------------------Función que imprime la matriz--------------- +void ImprimirMatriz(int Matriz[N][N]) +{ + int i = 0, t = 0; + while(i < N) + { + while(t < N) + { + printf("%d ", Matriz[i][t]); + t++; + } + printf("\n"); + t = 0; + i++; + } +} + diff --git "a/Equipo NetCode/Pr\303\241ctica de laboratorio #7/P7_NetCode/Ejercicio 3.cpp" "b/Equipo NetCode/Pr\303\241ctica de laboratorio #7/P7_NetCode/Ejercicio 3.cpp" new file mode 100644 index 0000000..c102c96 --- /dev/null +++ "b/Equipo NetCode/Pr\303\241ctica de laboratorio #7/P7_NetCode/Ejercicio 3.cpp" @@ -0,0 +1,97 @@ +#include +#include +#include +/* +Nombre del Programa: Multiplica matrices + +Descripción: Dos matrices A y B se pueden multiplicar si el número de columnas de A es igual al número de filas de B. +En otras palabras, que los vectores fila de A, contengan el mismo número de elementos que los vectores columna de B. +De tal forma, la multiplicación de matrices se hace multiplicando cada fila de A por cada una de las columnas de B. Por lo tanto, +E.P. que lea las matrices A y B y si es posible, determinar e imprimir dichas matrices A y B, así como la matriz P, (resultado de su multiplicación); cada arreglo a un lado del otro. + +Autor: Alan Josue Barón Pat & Victor Cauich Davalos +Versión: 1.0.0 +Fecha: 10/03/2020 +*/ + +int main (){ + setlocale (LC_ALL,""); + int i,j,k,a,b,n,m; + double suma; + + //Capturamos los datos de las Matrices A y B + printf ("Este programa calcula la multiplicación de matrices sí es posible\n"); + do{ + printf ("\nAhora ingrese las FILAS de la Matriz A: "); + scanf ("%d",&n); + printf ("Ahora ingrese las COLUMNAS de la Matriz A: "); + scanf ("%d",&m); + printf ("\n\nAhora ingrese las FILAS de la Matriz B: "); + scanf ("%d",&a); + printf ("Ahora ingrese las COLUMNAS de la Matriz B: "); + scanf ("%d",&b); + if (m!=a){ + printf ("\nNo es posible calcular el producto entre las matrices. Para que sea posible \n"); + printf ("las COLUMNAS de la Matriz A debe ser IGUAL a las FILAS de la Matriz B, ingrese nuevamente: \n"); + } + }while (m!=a); + + + double matrizA[n][m],matrizB[a][b],matrizC[n][b]; + + //Capturamos los datos de ambas matrices + printf ("\nBien, ahora iniciaremos la captura de los datos de la Matriz A...\n"); + for (i=0;i