This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <cstdlib> | |
#include <iostream> | |
using namespace std; | |
int main(int argc, char *argv[]) | |
{ | |
float nota; | |
char grado[1]; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ALGORITMO numeroPerfecto | |
var | |
int: | |
i, num, res, sumaDivisores | |
Inicio | |
i = 1 | |
res = 0 | |
sumaDivisores = 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <cstdlib> | |
#include <iostream> | |
using namespace std; | |
int main(int argc, char *argv[]) | |
{ | |
int i, num, sumaDeDivisores; | |
i = 1; | |
num = 6; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ALGORITMO calcularPromedios | |
var | |
int: | |
cantidadNumeros, numero, suma | |
float: | |
promedio | |
Inicio | |
cantidadNumeros = 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <cstdlib> | |
#include <iostream> | |
using namespace std; | |
int main(int argc, char *argv[]) { | |
int menu;// Categoria del menu | |
int opcion;// Opcion (Compra, Pago, Salir) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Algoritmo = Sueldos | |
Var | |
int: | |
sueldo_maximo, | |
empleados_2000_categoria_1, empleados_2000_categoria_2, empleados_2000_categoria_3, | |
total_empleados, | |
total_empleados_categoria_1 | |
float: | |
sueldos_2000_categoria_1, sueldos_2000_categoria_2, sueldos_2000_categoria_3, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
empleados = [ | |
{'nombre':'Pablo', 'sueldo': 3000, 'categoria': 1}, | |
{'nombre':'Jeremias', 'sueldo': 1320.20, 'categoria': 1}, | |
{'nombre':'Sol', 'sueldo': 500.13, 'categoria': 2}, | |
{'nombre':'Tincho', 'sueldo': 5024.9, 'categoria': 2}, | |
{'nombre':'Fede', 'sueldo': 1010.46, 'categoria': 3}, | |
{'nombre':'Lean', 'sueldo': 2534.94, 'categoria': 3}, | |
{'nombre':'Rodri', 'sueldo': 2021.45, 'categoria': 2}, | |
{'nombre':'Ara', 'sueldo': 4531.82, 'categoria': 1}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Algoritmo = Sueldos | |
Var | |
int: | |
cantidad_de_empleados_categoria_1, cantidad_de_empleados_categoria_2, cantidad_de_empleados_categoria_3, categoria_sueldo_maximo, cantidad_empleados_totales, categoria | |
float: | |
sumatoria_de_sueldos_categoria_1, sumatoria_de_sueldos_categoria_2, sumatoria_de_sueldos_categoria_3, | |
promedio_de_sueldos_categoria_1, promedio_de_sueldos_categoria_2, promedio_de_sueldos_categoria_3, | |
sueldo_maximo, sueldo_aux |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
from random import randint, uniform | |
#DESCOMENTAR PARA GENERAR LA LISTA DE DATOS QUE INGRESAN | |
#ingresos = [] | |
#for i in range(0,30): | |
# ingresos.append({'mozo':randint(1,2),'mesa':randint(1,4),'importe':uniform(0,200),'cantidad_de_personas':randint(1,10)}) | |
#print ingresos | |
ingresos = [{'cantidad_de_personas': 3, 'mesa': 2, 'mozo': 2, 'importe': 11.680529678994134}, {'cantidad_de_personas': 1, 'mesa': 3, 'mozo': 2, 'importe': 145.38676459634559}, {'cantidad_de_personas': 7, 'mesa': 4, 'mozo': 1, 'importe': 147.23374683869713}, {'cantidad_de_personas': 7, 'mesa': 1, 'mozo': 1, 'importe': 79.99672355340462}, {'cantidad_de_personas': 2, 'mesa': 2, 'mozo': 2, 'importe': 146.44670501620328}, {'cantidad_de_personas': 7, 'mesa': 2, 'mozo': 1, 'importe': 163.22603363847838}, {'cantidad_de_personas': 9, 'mesa': 1, 'mozo': 2, 'importe': 176.76862989793597}, {'cantidad_de_personas': 10, 'mesa': 4, 'mozo': 1, 'importe': 133.26449672637062}, {'cantidad_de_personas': 10, 'mesa': 2, 'mozo': 1, 'importe |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <cstdlib> | |
#include <iostream> | |
using namespace std; | |
int main(int argc, char *argv[]) | |
{ | |
int B[5][5] = { | |
{1,2,3,7,5}, | |
{4,5,6,8,4}, |