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
/* | |
Un empleado de la tienda “Tiki Taka” realiza N ventas durante el día;se requiere saber cuántas de ellas: • Fueron mayores a $1000, • Cuántas fueron mayores a $500 pero menores o iguales a $1000 • Cuántas fueron menores o iguales a $500. • Además, se requiere saber el monto de lo vendido en cada categoría y de forma global. | |
Realice un algoritmo que permita determinar lo anterior y represéntelo mediante el diagrama de flujo y el pseudocódigo utilizando el ciclo apropiado | |
*/ | |
//Definir la cantidad de ventas | |
//Saber si es mayor a $1000 |
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
function padre() | |
{ | |
var name = "Mozilla"; | |
function anidada() | |
{ | |
console.log("Corriendo primer linea de la anidada"); | |
} | |
return anidada; //Regresamos una funcion SIN ejecutarla | |
} |
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
function funciones_basicas() | |
{ | |
var array = ["Hola","mundo","?",32,"otro","elemento"] | |
ultimo_elemento = array.pop(); //Se usa en Pilas | |
primer_elemento = array.shift(); //Se usa en filas (Las notificaciones suelen tener este tipo de estructuras) | |
console.log(primer_elemento); //Debe imprimir "Hola" y el arreglo ahora tendra 5 elementos | |
console.log(ultimo_elemento); //Debe imprimir "elemento" y ahora tendra 4 elementos |
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
var coche = | |
{ | |
color:"amarillo", | |
volante:1, | |
manual:true, | |
gasolina_litros:40.5, | |
llantas:{ | |
total:4, | |
tamano:32 | |
}, |
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
if numberToDial!="0": | |
call(["+"+numberToDial]) | |
else: | |
call(["sip:"+sip]) | |
say("Hola hola! espera un momento en linea "+userName+", te estamos comunicando con el area correspondiente",{"voice":"Juan"}) | |
transfer("+"+otherNumber) |
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
call("+" + numberToDial, {"network":"SMS"}) | |
say("OMG" + customerName + ", " + msg + "!") | |
log("This guy knows: " + customerName) |
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
#El codigo requiere tener las paqueterias | |
# - ipcalc | |
# - numpy | |
#Se ejecuta como python VLSM.py 192.168.0.0/28 10 | |
#o ./VLSM.py 192.168.0.0/28 10 | |
#Donde 192.168.0.0 => IP inicial | |
# 28 => Mascara de Red para hacer las divisiones | |
# 10 => Numero de subredes de ese tamano, se considera red de uso y desuso en caso de expandirse |
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
#Android Studio gitignore | |
/.idea/libraries | |
.DS_Store | |
/captures | |
# Built application files | |
*.apk | |
*.ap_ | |
# Files for the Dalvik VM |
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
function Pokemon(name,danio) //Podria no llamarse Pokemon | |
{ | |
this.name = name; | |
this.puntosTecnicos = danio; | |
this.vida = 100; | |
this.ataca = function( pokemon_atacado ) //El nombre x no importa, pudo ser otro_pokemon_x | |
{ | |
// var nueva_vida_pokemon_atacado = pokemon_atacado.vida - this.puntosTecnicos; | |
// pokemon_atacado.vida = nueva_vida_pokemon_atacado; |
OlderNewer