This file contains 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
#Nombre: funciones | |
#Autor: Equipo Pokeweas Python | |
#Fecha: 28-10-2014 | |
#Descripcion: Tarea Final (funciones) | |
import random | |
def Validar(): | |
a=raw_input("Valor: ") | |
if a.isdigit(): #Funcion para corroborar que una linea de caracteres correspondan exclusivamente a numeros |
This file contains 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 <iostream> | |
using namespace std; | |
double raiz_cuadrada(double numero,double aproximacion, int n); //Nuestra función de raiz cuadrada | |
double raiz_cuadrada(double numero); //Nuestra función creada únicamente para iniciar la llamada | |
int main() | |
{ | |
int numero=0; | |
cout<<"Ingrese un numero"; |
This file contains 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
/* | |
* To change this template, choose Tools | Templates | |
* and open the template in the editor. | |
*/ | |
package javaapplication1algo; | |
import java.util.*; | |
/** | |
* |
This file contains 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
#lang racket | |
(display "PROGRAMA PARA CALCULAR RAICES") | |
;;-------------------------------------- | |
(define (leer h) | |
(display h) | |
(read)) | |
;;-------------------------------------- | |
(define (raizcuadrada numero) | |
(define x 0.00001) | |
(define r x) |
This file contains 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 <iostream> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <fstream> | |
#include <cstdlib> | |
using namespace std; | |
typedef struct Producto{ | |
int codigo; | |
float precio; |
This file contains 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 <iostream> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <fstream> | |
#include <cstdlib> | |
using namespace std; | |
//Suponiendo por predefinición | |
// 4 candidatos | |
// 3 ciudades - 450 a nivel nacional |
This file contains 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 <iostream> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <fstream> | |
#include <cstdlib> | |
using namespace std; | |
//Suponiendo por predefinición | |
// 4 candidatos | |
// 3 ciudades - 450 a nivel nacional |
This file contains 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
import time | |
#Usuario=[Nombre,contraseña,fecha_incorporacion] | |
#Multimedia=open("imagen.jpg") | |
def Crear(): | |
Usuarios=open("Usuarios.txt",r+) | |
Nombre=input("Nombre de usuario: ") | |
Contraseña=input("Contraseña: ") | |
Repetir=input("Repetir Contraseña: ") |
This file contains 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
import time | |
#Usuario=[Nombre,contraseña,fecha_incorporacion] | |
#Multimedia=open("imagen.jpg") | |
def Crear(): | |
Usuarios=open("Usuarios.txt",r+) | |
Nombre=input("Nombre de usuario: ") | |
Contraseña=input("Contraseña: ") | |
Repetir=input("Repetir Contraseña: ") |
This file contains 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
#0. VALIDACIONES | |
def Validar(): | |
a=input("Valor: ") | |
if a.isdigit(): #Función para corroborar que una línea de caracteres corresponden exclusivamente a números | |
#Es una función bool de verdadero o falso | |
return int(a) | |
else: | |
print ("Ingrese un valor numérico.") | |
return Validar() | |
#Funcion que se llama a si misma en caso que no sea una linea |
NewerOlder