result management system report for college project
Investigación Ensambladores y Decompiladores
1. PONTIFICIA UNIVERSIDAD CATÓLICA DEL
ECUADOR SEDE IBARRA
Nombre: Liliana Chisaguano
Nivel: 5to semestre
Carrera: Ingeniería en Sistemas
Fecha: 21/04/2017
Investigación Ensambladores y Decompiladores
INSTALACIÓN VISUAL BASIC DECOMPILER LITE
13. CODIGO:
Begin VB.Form Form1
Caption = "Directorio Telefónico - Autor: Edison Morales"
BackColor = &H808000&
ScaleMode = 1
AutoRedraw = False
FontTransparent = True
BorderStyle = 0 'None
Icon = "Form1.frx":0
LinkTopic = "Form1"
MaxButton = 0 'False
ClientLeft = 150
ClientTop = 435
ClientWidth = 7425
ClientHeight = 5700
StartUpPosition = 2 'CenterScreen
Begin ProgressBar Progreso
Left = 1200
Top = 5280
Width = 4815
Height = 255
Visible = 0 'False
TabIndex = 27
End
Begin CommonDialog Dialogo
End
Begin CommandButton cmdUltimo
Left = 2160
Top = 4680
Width = 615
Height = 495
TabIndex = 24
Picture = "Form1.frx":44A
ToolTipText = "Ultimo"
MaskColor = &H808080&
Style = 1
End
Begin CommandButton cmdSiguiente
Left = 1560
Top = 4680
Width = 615
Height = 495
TabIndex = 23
Picture = "Form1.frx":5BC
ToolTipText = "Siguiente"
MaskColor = &H808080&
Style = 1
End
Begin CommandButton cmdAnterior
Left = 960
Top = 4680
Width = 615
Height = 495
TabIndex = 22
Picture = "Form1.frx":72E
ToolTipText = "Anterior"
MaskColor = &H808080&
Style = 1
End
Begin CommandButton cmdInicio
Left = 360
14. Top = 4680
Width = 615
Height = 495
TabIndex = 21
Picture = "Form1.frx":8A0
ToolTipText = "Primero"
MaskColor = &H808080&
Style = 1
End
Begin CommandButton cmdGuardar
Left = 4320
Top = 4680
Width = 615
Height = 495
TabIndex = 9
Picture = "Form1.frx":A12
ToolTipText = "Guardar"
MaskColor = &H808080&
Style = 1
End
Begin CommandButton cmdEditar
Left = 3720
Top = 4680
Width = 615
Height = 495
TabIndex = 8
Picture = "Form1.frx":B84
ToolTipText = "Editar"
MaskColor = &H808080&
Style = 1
End
Begin CommandButton cmdSalir
Left = 6480
Top = 4680
Width = 615
Height = 495
TabIndex = 13
Picture = "Form1.frx":CF6
ToolTipText = "Salir"
MaskColor = &H808080&
Style = 1
End
Begin CommandButton cmdBuscar
Left = 5520
Top = 4680
Width = 615
Height = 495
TabIndex = 11
Picture = "Form1.frx":E68
ToolTipText = "Buscar"
MaskColor = &H808080&
Style = 1
End
Begin CommandButton cmdEliminar
Left = 4920
Top = 4680
Width = 615
Height = 495
TabIndex = 10
Picture = "Form1.frx":FDA
ToolTipText = "Eliminar"
MaskColor = &H808080&
15. Style = 1
End
Begin CommandButton cmdNuevo
Left = 3120
Top = 4680
Width = 615
Height = 495
TabIndex = 7
Picture = "Form1.frx":114C
ToolTipText = "Nuevo"
MaskColor = &H808080&
Style = 1
End
Begin Frame Frame1
Caption = "Datos Personales"
BackColor = &HC0C000&
Left = 120
Top = 240
Width = 7095
Height = 4215
TabIndex = 12
Begin TextBox txtNombre
ForeColor = &H0&
Left = 1800
Top = 720
Width = 4335
Height = 375
TabIndex = 0
BeginProperty Font
Name = "Courier New"
Size = 9,75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
End
Begin TextBox txtApellido
ForeColor = &H0&
Left = 1800
Top = 1200
Width = 4335
Height = 375
TabIndex = 1
BeginProperty Font
Name = "Courier New"
Size = 9,75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
End
Begin TextBox txtDireccion
ForeColor = &H0&
Left = 1800
Top = 1680
Width = 5055
Height = 405
TabIndex = 2
BeginProperty Font
16. Name = "Courier New"
Size = 9,75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
End
Begin TextBox txtTelCasa
ForeColor = &H0&
Left = 1800
Top = 2160
Width = 2175
Height = 405
TabIndex = 3
BeginProperty Font
Name = "Courier New"
Size = 9,75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
End
Begin TextBox txtTelOfic
ForeColor = &H0&
Left = 1800
Top = 2640
Width = 2175
Height = 405
TabIndex = 4
BeginProperty Font
Name = "Courier New"
Size = 9,75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
End
Begin TextBox txtCelular
ForeColor = &H0&
Left = 1800
Top = 3120
Width = 2175
Height = 405
TabIndex = 5
BeginProperty Font
Name = "Courier New"
Size = 9,75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
End
Begin TextBox txtEmail
ForeColor = &H0&
Left = 1800
17. Top = 3600
Width = 4335
Height = 405
TabIndex = 6
BeginProperty Font
Name = "Courier New"
Size = 9,75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
End
Begin Label lblReg
ForeColor = &H0&
Left = 1800
Top = 240
Width = 1695
Height = 375
TabIndex = 26
BorderStyle = 1 'Fixed Single
Alignment = 2 'Center
BeginProperty Font
Name = "Courier New"
Size = 9,75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
End
Begin Label Label1
Caption = "REGISTRO"
BackColor = &HC0C000&
Left = 120
Top = 360
Width = 1095
Height = 255
TabIndex = 25
End
Begin Label Label2
Caption = "NOMBRE"
BackColor = &HC0C000&
Left = 120
Top = 840
Width = 1455
Height = 255
TabIndex = 20
End
Begin Label Label3
Caption = "APELLIDO"
BackColor = &HC0C000&
Left = 120
Top = 1320
Width = 1455
Height = 255
TabIndex = 19
End
Begin Label Label4
Caption = "DIRECCION"
18. BackColor = &HC0C000&
Left = 120
Top = 1800
Width = 1455
Height = 255
TabIndex = 18
End
Begin Label Label5
Caption = "TELEFONO CASA"
BackColor = &HC0C000&
Left = 120
Top = 2280
Width = 1575
Height = 255
TabIndex = 17
End
Begin Label Label6
Caption = "TELEFONO OFICINA"
BackColor = &HC0C000&
Left = 120
Top = 2760
Width = 1815
Height = 255
TabIndex = 16
End
Begin Label Label7
Caption = "CELULAR"
BackColor = &HC0C000&
Left = 120
Top = 3240
Width = 1455
Height = 255
TabIndex = 15
End
Begin Label Label8
Caption = "EMAIL"
BackColor = &HC0C000&
Left = 120
Top = 3720
Width = 1455
Height = 255
TabIndex = 14
End
End
Begin Menu mnuArchivo
Caption = "&Archivo"
Begin Menu mnuOrdenar
Caption = "&Ordenar"
Shortcut = 15
End
Begin Menu mnuImprimir
Caption = "&Imprimir"
Shortcut = 16
End
Begin Menu mnuSalir
Caption = "&Salir"
Shortcut = 17
End
End
Begin Menu mnuRegistro
Caption = "&Registro"
19. Begin Menu mnuNuevo
Caption = "&Nuevo"
End
Begin Menu mnuEditar
Caption = "E&ditar"
End
Begin Menu mnuGuardar
Caption = "&Guardar"
End
Begin Menu mnuEliminar
Caption = "&Eliminar"
End
Begin Menu mnuBuscar
Caption = "&Buscar"
End
End
Begin Menu mnuMover
Caption = "&Mover"
Begin Menu mnuPrimero
Caption = "&Primero"
End
Begin Menu mnuAnterior
Caption = "&Anterior"
End
Begin Menu mnuSiguiente
Caption = "&Siguiente"
End
Begin Menu mnuUltimo
Caption = "&Ultimo"
End
End
Begin Menu mnuAyuda
Caption = "?"
Begin Menu mnuAcercaDe
Caption = "Acerca de"
End
End
End
Attribute VB_Name = "Form1"
Begin VB.Form Form2
Caption = "Buscar"
BackColor = &HFF8080&
ScaleMode = 1
AutoRedraw = False
FontTransparent = True
'Icon = n/a
LinkTopic = "Form2"
MaxButton = 0 'False
MinButton = 0 'False
ClientLeft = 60
ClientTop = 345
ClientWidth = 5640
ClientHeight = 2130
ShowInTaskbar = 0 'False
StartUpPosition = 1 'CenterOwner
Begin CommandButton cmdCancelar
Caption = "Cancelar"
Left = 3000
Top = 1440
Width = 1455
Height = 375
TabIndex = 5
20. BeginProperty Font
Name = "MS Sans Serif"
Size = 9,75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
End
Begin CommandButton cmdAceptar
Caption = "Aceptar"
Left = 1200
Top = 1440
Width = 1455
Height = 375
TabIndex = 4
BeginProperty Font
Name = "MS Sans Serif"
Size = 9,75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
End
Begin TextBox Text1
Left = 2400
Top = 720
Width = 3015
Height = 375
TabIndex = 3
End
Begin ComboBox Combo1
Style = 2
Left = 240
Top = 720
Width = 1815
Height = 315
TabIndex = 2
End
Begin Label Label2
Caption = "Valor"
BackColor = &HFF8080&
ForeColor = &H800000&
Left = 2520
Top = 360
Width = 1095
Height = 255
TabIndex = 1
BeginProperty Font
Name = "MS Sans Serif"
Size = 8,25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
End
21. Begin Label Label1
Caption = "Campo"
BackColor = &HFF8080&
ForeColor = &H800000&
Left = 240
Top = 360
Width = 1095
Height = 255
TabIndex = 0
BeginProperty Font
Name = "MS Sans Serif"
Size = 8,25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
End
End
Attribute VB_Name = "Form2"
Begin VB.Form Form3
Caption = "Acerca del Autor"
ScaleMode = 1
AutoRedraw = False
FontTransparent = True
'Icon = n/a
LinkTopic = "Form3"
MaxButton = 0 'False
MinButton = 0 'False
ClientLeft = 60
ClientTop = 345
ClientWidth = 5130
ClientHeight = 2865
ShowInTaskbar = 0 'False
StartUpPosition = 1 'CenterOwner
Begin CommandButton cmdCerrar
Caption = "Cerrar"
Left = 1800
Top = 2400
Width = 1455
Height = 375
TabIndex = 5
End
Begin Label Label4
Caption = "Ingeniero de Sistemas"
ForeColor = &H80&
Left = 2040
Top = 1080
Width = 1575
Height = 255
TabIndex = 7
End
Begin Image Image1
Picture = "Form3.frx":0
Left = 240
Top = 120
Width = 480
Height = 480
End
22. Begin Label Label3
Caption = "Directorio Telefónico"
ForeColor = &H40C0&
Left = 1080
Top = 120
Width = 3735
Height = 375
TabIndex = 6
BeginProperty Font
Name = "Verdana"
Size = 14,25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
End
Begin Label Label5
Caption = "URL:"
Left = 600
Top = 1560
Width = 495
Height = 255
TabIndex = 4
BeginProperty Font
Name = "MS Sans Serif"
Size = 8,25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
End
Begin Label lblBaul
Caption = "http://es.geocities.com/baul_informatico"
ForeColor = &HFF0000&
Left = 1440
Top = 1920
Width = 2895
Height = 255
MousePointer = 99 'Custom
TabIndex = 3
MouseIcon = "Form3.frx":44A
BeginProperty Font
Name = "MS Sans Serif"
Size = 8,25
Charset = 0
Weight = 400
Underline = -1 'True
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
End
Begin Label lblPersonal
Caption = "http://es.geocities.com/edisonml72"
ForeColor = &HFF0000&
Left = 1440
Top = 1560
Width = 2535
Height = 255
MousePointer = 99 'Custom
TabIndex = 2
23. MouseIcon = "Form3.frx":59C
BeginProperty Font
Name = "MS Sans Serif"
Size = 8,25
Charset = 0
Weight = 400
Underline = -1 'True
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
End
Begin Label Label2
Caption = "Edison Morales Lizarazo"
ForeColor = &H800000&
Left = 1440
Top = 840
Width = 2895
Height = 255
TabIndex = 1
BeginProperty Font
Name = "Arial"
Size = 12
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
End
Begin Label Label1
Caption = "Autor:"
Left = 600
Top = 840
Width = 495
Height = 255
TabIndex = 0
BeginProperty Font
Name = "MS Sans Serif"
Size = 8,25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
End
End
Attribute VB_Name = "Form3"
34. String[] arrayOfString1;
int j = (arrayOfString1 = linhas).length;
for (int i = 0; i < j; i++) {
String str1 = arrayOfString1[i];
}
String num1 = linhas[0];
String num2 = linhas[2];
for (int i = 0; i < linhas.length; i++) {
if (linhas[i].equals("+")) {
if ((num1.contains(".") | num2.contains("."))) {
double numd = validaDouble(num1);
double numd2 = validaDouble(num2);
double result = numd + numd2;
String res = String.valueOf(result);
this.jVisor.setText(res);
}
else {
long a = validaLong(num1);
long b = validaLong(num2);
long result = a + b;
String res = String.valueOf(result);
this.jVisor.setText(res);
}
}
if (linhas[i].equals("*")) {
if ((num1.contains(".") | num2.contains("."))) {
double numd = validaDouble(num1);
double numd2 = validaDouble(num2);
double result = numd * numd2;
String res = String.valueOf(result);
this.jVisor.setText(res);
}
else {
long a = validaLong(num1);
long b = validaLong(num2);
long result = a * b;
String res = String.valueOf(result);
this.jVisor.setText(res);
}
}
if (linhas[i].equals("-")) {
if ((num1.contains(".") | num2.contains("."))) {
double numd = validaDouble(num1);
double numd2 = validaDouble(num2);
double result = numd - numd2;
String res = String.valueOf(result);
this.jVisor.setText(res);
}
else {
long a = validaLong(num1);
long b = validaLong(num2);
long result = a - b;
String res = String.valueOf(result);
this.jVisor.setText(res);
}
}
if (linhas[i].equals("/")) {
String num = String.valueOf(num1);
String nume = String.valueOf(num2);
double a = Double.parseDouble(num);
double b = Double.parseDouble(nume);
try {
if (((a == 0.0D ? 1 : 0) | (b == 0.0D ? 1 : 0)) != 0)
{
this.jVisor.setText("Divisor nao pode ser 0");
}
else {
35. double result = a / b;
String res = String.valueOf(result);
this.jVisor.setText(res);
}
}
catch (Exception e) {
e.printStackTrace();
}
} } } }}
package Calc.src.Calculadora;
import java.awt.EventQueue;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.UIManager;
import javax.swing.UIManager.LookAndFeelInfo;
import javax.swing.UnsupportedLookAndFeelException;
public class CalculadoraT{
public static void main(String[] args) {
try
{
UIManager.LookAndFeelInfo[] arrayOfLookAndFeelInfo;
int j = (arrayOfLookAndFeelInfo = UIManager.getInstalledLookAndFeels()).length;
for (int i = 0; i < j; i++) {
UIManager.LookAndFeelInfo info = arrayOfLookAndFeelInfo[i];
if ("Nimbus".equals(info.getName())) {
UIManager.setLookAndFeel(info.getClassName());
break;
}
} }
catch (ClassNotFoundException ex) {
Logger.getLogger(Calculadora.class.getName()).log(Level.SEVERE, null, ex);
}
catch (InstantiationException ex) {
Logger.getLogger(Calculadora.class.getName()).log(Level.SEVERE, null, ex);
}
catch (IllegalAccessException ex) {
Logger.getLogger(Calculadora.class.getName()).log(Level.SEVERE, null, ex);
}
catch (UnsupportedLookAndFeelException ex) {
Logger.getLogger(Calculadora.class.getName()).log(Level.SEVERE, null, ex);
}
EventQueue.invokeLater(new Runnable() {
public void run() {
new Calculadora().setVisible(true);
}
});
}}
package Calc.src.Calculadora;
import javax.swing.JTextArea;
public class ValidaIgual{
public static long validaLong(String nu) {
long a = Long.parseLong(nu);
return a; }
public String valida(String texto) {
JTextArea texo = new JTextArea();
String text = String.valueOf(texto.length());
String[] linhas = texto.split(" ");
36. String num1 = linhas[0];
String num2 = linhas[2];
for (int i = 0; i < linhas.length; i++) {
if (linhas[i].equals("+")) {
long a = validaLong(num1);
long b = validaLong(num2);
long result = a + b;
String res = String.valueOf(result);
texo.setText(res);
}
if (linhas[i].equals("*")) {
long a = validaLong(num1);
long b = validaLong(num2);
long result = a * b;
String res = String.valueOf(result);
texo.setText(res);
}
if (linhas[i].equals("-")) {
long a = validaLong(num1);
long b = validaLong(num2);
long result = a - b;
String res = String.valueOf(result);
texo.setText(res);
}
if (linhas[i].equals("/")) {
String num = String.valueOf(num1);
String nume = String.valueOf(num2);
double a = Double.parseDouble(num);
double b = Double.parseDouble(nume);
double result = a / b;
String res = String.valueOf(result);
texo.setText(res);
}
} return texto;
} }
2° PROGRAMA AHORCADO EN JAVA DESCOMPILER
package ahorcado.algoritmo;
import java.io.PrintStream;
public class AlgoritmoAhorcado
{
private boolean gana;
private int ganar = 0;
private Character[] posiciones = new Character[this.palabra.length()];
private String palabra = palabraAleatoria();
private String[] programacion = { "CATCH", "WHILE", "FOR", "ELSE", "VISUAL", "COMPUTADORES",
"COMPILACION", "EJECUCION", "FUENTE", "MEMORIA", "DISCO", "WEB", "ALGORITMO",
"PROGRAMA", "ORIENTADA", "ESTRUCTURA", "SENTENCIA", "PROCESADOR", "CODIGO",
"MAQUINA", "OBJETO", "NIVEL", "MICROSOFT", "WINDOWS", "UNIX", "EJECUTABLE", "SOFTWARE",
"HARDWARE", "EVENTO", "ESCUCHADOR", "ERROR", "EXCEPCION", "BUFFERED", "UBUNTU",
"MOZILLA" };
private String[] tecnologia = { "ORDENADOR", "PC", "MEMORIA", "CD", "DVD", "MOVIL", "WIFI",
"SATELITE", "INTERNET", "REDES", "TELEMATICA", "TELEFONIA", "VIDEOJUEGOS", "CONSOLAS",
"IPHONE", "INDUSTRIALES", "TELECOMUNICACIONES", "SISTEMAS", "INFORMATICA",
"ORDENADOR", "COMPUTADORAS", "ARTEFACTO", "OPERACION", "INGENIERIA", "PROTOTIPO",
"MECANICA", "ELECTRONICA", "ELECTRICIDAD", "AERONAUTICA", "TERMICO", "INFORMACION",
"CALCULO", "AUTOMATICO", "MAQUINA", "EMPRESA", "INNOVACION", "COMPETIDORES",