daily pastebin goal
76%
SHARE
TWEET

AppAlumno

alduncin Nov 14th, 2011 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public class AppAlumno
  2. {
  3.     public static void main (String args[])
  4.     {
  5.         //jcreator
  6.         //Alumno al = new Alumno();
  7.         Alumno al;
  8.         al = new Alumno(100,80);
  9.         //al.cal1 = 100; //= args[0];
  10.         al.setCal1(100);
  11.         //al.cal2 = 90; //= args[1];
  12.         al.setCal2(80);
  13.         //al.cal3 = 30; //= args[2];
  14.         al.setCal3(70);
  15.         al.setCalificaciones(100,80,80);
  16.        
  17.         al.calcularPromedio();
  18.         System.out.println("Promedio = " + al.getPromedio());
  19.         System.out.println("calificacion 1 = " + al.getCal1());
  20.  
  21.         Alumno al2 = new Alumno();
  22.         al2.setCal1(70);
  23.         al2.setCal2(70);
  24.         al2.setCal3(70);
  25.         al2.calcularPromedio();
  26.         System.out.println("Promedio = " + al2.getPromedio());
  27.     }
  28. }
  29.  
RAW Paste Data
Top