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
| #Esto es parte de mi practica para mi examen final de Programacion Basica en la Universidad Hispanoamericana. | |
| #Si tienen sujerencias por favor escribanme! :) | |
| #This is part of a practice for a basic programming exam from my school "Univisidad Hispanoamericana" | |
| #Any sujestions are well received, send me a mssg :) | |
| def diccionario_carga(): | |
| d={} | |
| n=int(input("A cuantos usuarios deseas registrar:")) | |
| contador=1 | |
| flag=1 | |
| while(flag==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
| #Esto es parte de mis practicas para mi universidad. | |
| #This is part of some exercisses for my college. | |
| class diccionario: | |
| def carga(self): | |
| self.d={} | |
| contador=0 | |
| q=int(input("A cuantos empleados deseas registrar al sistema?:")) | |
| while(contador<q): | |
| print("\nIngresa los datos del empleado",contador+1) | |
| self.nombre = input("Ingresa el nombre del empleado:") |
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
| #Este es un ejemplo que tome de la pagina: http://elmundonaranja.com.co/algunas-funciones-recursivas-en-python/ ; | |
| def sumaDigitos(n): | |
| if n / 10 == 0: | |
| return n | |
| else: | |
| return n % 10 + sumaDigitos(n / 10) | |
| print(sumaDigitos(15)) | |
| #Esta es mi correccion: | |
| def suma(n): | |
| if n/10 == 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
| import java.util.Scanner; | |
| public class cls_bat_a_01 { | |
| public static void main(String[] args) { | |
| Scanner s=new Scanner(System.in); | |
| System.out.println("PROGRAMA QUE IMPRIME LA CANTIDAD DE NUMEROS PARES EN UNA LISTA:"); | |
| //*** VARIABLES *** | |
| int numeros[]; | |
| int numero; | |
| int size; | |
| //*** CAPTURA *** |
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
| package Proyecto_2; | |
| /*Proyecto 2 de la Clase de Programacion 1, en la Universidad Hispanoamericana. | |
| */ | |
| /** | |
| * | |
| * @author Jeremy Zelaya | |
| */ | |
| import java.util.Scanner; | |
| import java.util.ArrayList; | |
| import javax.swing.JOptionPane; |
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
| package Presentacion_4; | |
| /** | |
| * | |
| * @author Jeremy Zelaya | |
| Esto es codigo de practica para entender los ArrayLists en Java,basado en la presentacion 4 vista en clase | |
| */ | |
| import java.util.ArrayList; | |
| import java.util.Iterator; | |
| public class cls_arraylist { |
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
| package Presentacion_6; | |
| /** | |
| * | |
| * @author Jeremy Zelaya | |
| * Esto es codigo de referencia para entender los ArrayLists Compuestos, basado en la presentacion 6 del curso. | |
| */ | |
| import java.util.ArrayList; | |
| import java.util.Scanner; | |
| import java.util.Iterator; |
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
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| using System.Threading.Tasks; | |
| namespace Clase2_mayo23 | |
| { | |
| class cla_matriz | |
| { |
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
| namespace planilla_avanzado | |
| { | |
| class cla_array | |
| { | |
| public String campo; | |
| public String tipo; | |
| public ArrayList tabla; | |
| public cla_array() {//Cada vez que se accede a esta clase se utiliza el array del objeto. | |
| this.tabla = new ArrayList(); | |
| } |
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
| public class cla_consola { | |
| public static void main(String[] args) { | |
| System.out.println("Jeremy Zelaya R."); | |
| cla_lista lista=new cla_lista(); | |
| //lista.inserta(new cla_persona(10,"Juan")); | |
| //lista.inserta(new cla_persona(5,"Pedro")); | |
| // lista.inserta(new cla_persona(15,"Albert")); | |
| // lista.inserta(new cla_persona(20, "Daniel")); | |
| // lista.inserta(new cla_persona(30, "Sebastian")); | |
| System.out.println(lista); |
OlderNewer