METRICA DE SOFTWARE
Enviado por Ricardo050281 • 9 de Marzo de 2020 • Tarea • 8.870 Palabras (36 Páginas) • 127 Visitas
[pic 3]
UNIVERSIDAD DEL SABES
METRICA DE SOFTWARE
Actividad 5: Medición del tamaño de un software
PROF: JOEL GARAVITO NAVARRO
ALUMNO: RICARDO ALMANZA CHAVEZ
[pic 4]
[pic 5]
[pic 6]
[pic 7]
[pic 8]
calculadora.java
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package calculadora2;
/**
*
* @author Ricardo Almanza Chavez
*/
public class calculadora extends javax.swing.JFrame {
String memoria1;
String signo;
String memoria2;
/**
* Creates new form calculadora
*/
public calculadora() {
initComponents();
}
/**
* This method is called from within the constructor to initialize the form.
* WARNING: Do NOT modify this code. The content of this method is always
* regenerated by the Form Editor.
*/
@SuppressWarnings("unchecked")
//
private void initComponents() {
txtpantalla = new javax.swing.JTextField();
jButton1 = new javax.swing.JButton();
jButton2 = new javax.swing.JButton();
jButton3 = new javax.swing.JButton();
jButton4 = new javax.swing.JButton();
jButton5 = new javax.swing.JButton();
jButton6 = new javax.swing.JButton();
jButton7 = new javax.swing.JButton();
jButton8 = new javax.swing.JButton();
jButton9 = new javax.swing.JButton();
jButton10 = new javax.swing.JButton();
jButton11 = new javax.swing.JButton();
jButton12 = new javax.swing.JButton();
jButton13 = new javax.swing.JButton();
jButton14 = new javax.swing.JButton();
jButton15 = new javax.swing.JButton();
jButton16 = new javax.swing.JButton();
jButton17 = new javax.swing.JButton();
jButton18 = new javax.swing.JButton();
jButton19 = new javax.swing.JButton();
jButton20 = new javax.swing.JButton();
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
jButton1.setBackground(new java.awt.Color(0, 102, 102));
jButton1.setForeground(new java.awt.Color(255, 255, 255));
jButton1.setText("1");
jButton1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton1ActionPerformed(evt);
}
});
jButton2.setBackground(new java.awt.Color(0, 102, 102));
jButton2.setForeground(new java.awt.Color(255, 255, 255));
jButton2.setText("4");
jButton2.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton2ActionPerformed(evt);
}
});
jButton3.setBackground(new java.awt.Color(0, 102, 102));
jButton3.setForeground(new java.awt.Color(255, 255, 255));
jButton3.setText("7");
jButton3.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton3ActionPerformed(evt);
}
});
jButton4.setBackground(new java.awt.Color(0, 102, 102));
jButton4.setForeground(new java.awt.Color(255, 255, 255));
jButton4.setText("0");
jButton4.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton4ActionPerformed(evt);
}
});
jButton5.setBackground(new java.awt.Color(0, 102, 102));
jButton5.setForeground(new java.awt.Color(255, 255, 255));
jButton5.setText("2");
jButton5.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton5ActionPerformed(evt);
}
});
jButton6.setBackground(new java.awt.Color(0, 102, 102));
jButton6.setForeground(new java.awt.Color(255, 255, 255));
jButton6.setText("+/-");
jButton6.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
...