fork download
  1. package control_notas;
  2. import java.util.Scanner;
  3. import java.text.DecimalFormat;
  4. /**
  5.  *
  6.  * @author Enyelbert
  7.  */
  8. public class Control_Notas {
  9.  
  10.  
  11. public static void main(String[] args) {
  12. // TODO code application logic here
  13. Scanner teclado = new Scanner (System.in);
  14. DecimalFormat decimalformat = new DecimalFormat("0.00");
  15.  
  16.  
  17.  
  18.  
  19.  
  20. System.out.println("Control de Notas: ");
  21. System.out.println("");
  22.  
  23. System.out.println("Introduzca la primera Nota: ");
  24. int nota_1 = teclado.nextInt();
  25.  
  26. System.out.println("Introduzca la segunda Nota: ");
  27. int nota2 = teclado.nextInt();
  28.  
  29. System.out.println("Introduzca la tercera Nota: ");
  30. int nota3 = teclado.nextInt();
  31. String total=decimalformat.format((nota_1/nota2/nota3));
  32.  
  33. System.out.println("Introduzca el nombre del Estudiante: ");
  34. String nombre= teclado.next();
  35.  
  36. System.out.println("Introduzca el apellido del Estudiante: ");
  37. String apellido= teclado.next();
  38.  
  39. System.out.println("Introduzca cedula del Estudiante: ");
  40. String cedula= teclado.next();
  41.  
  42. double Control_Notas;
  43.  
  44. Control_Notas= (nota_1+nota2+nota3)/3;
  45.  
  46. System.out.println("promedio de: "+nombre+ " "+ apellido+ " " +cedula +" "+Control_Notas);
  47.  
  48.  
  49.  
  50. }
  51.  
  52. }
  53.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Main.java:8: error: class Control_Notas is public, should be declared in a file named Control_Notas.java
public class Control_Notas {
       ^
1 error
stdout
Standard output is empty