Untitled
unknown
plain_text
5 years ago
1.9 kB
9
Indexable
import java.util.Scanner;
import javax.swing.plaf.synth.SynthOptionPaneUI;
public class TestAlumnos {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner sc = new Scanner(System.in);
int resp = 0;
int promedio = 0;
int prom = 0;
int calif = 0;
for (int i = 1; i < 4; i++) {
System.out.println("Te gustan las computadoras. Si(1) No(0):");
resp = sc.nextInt();
System.out.println("Disfrutas con la resolución de problemas. Si(1) No(0)");
resp += sc.nextInt();
System.out.println("Quieres trabajar en equipo. Si(1) No(0)");
resp += sc.nextInt();
System.out.println("Te agrada aprender por descubrimiento o prefieres que te indiquen las cosas paso a paso. Si(1) No(0)");
resp += sc.nextInt();
System.out.println("Eres creativo. Si(1) No(0)");
resp += sc.nextInt();
System.out.println("Eres resolutivo. Si(1) No(0)");
resp += sc.nextInt();
System.out.println("Te rindes al primer intento Si(0) No(1)");
resp += sc.nextInt();
System.out.println("Estas dispuesto a tener que actualizar tu conocimiento a lo largo de tu vida Si(1) No(0)");
resp += sc.nextInt();
calif = (resp / 8) * 100;
System.out.println(calif);
if(calif >= 80 && i == 1) {
System.out.println("Gracias por su respuesta, ud. sera un gran programador");
i+=2;
} else if (calif < 80 ) {
System.out.println("Vuelva a responder las preguntas." + calif);
promedio += calif;
prom = promedio / i;
calif = 0;
resp = 0;
System.out.println(prom + promedio + calif + resp);
}
if (i > 1 && prom < 50) {
if(prom <= 50) {
System.out.println("tercera vuelta.");
} else if (prom > 50) {
System.out.println("Gracias por su respuesta.");
} else {
}
}
}
}
}
Editor is loading...