SlideShare una empresa de Scribd logo
1 de 4
UNIVERSIDAD NACIONAL DE CHIMBORAZO
FACULTAD DE CIENCIAS DE LA EDUCACION HUMANAS Y TECNOLOGIAS
NOMBRE: Geovanny Yungan
PRACTICA 3
EJERCICIO 1
De N lista de estudiantes calcular el promedio de cada uno de ellos, siendo las
notas a ingresar de deberes, lecciones, examen. Mostrar en la pantalla el nombre y
el promedio.
DESARROLLO
//Geovanny Yungan
import java.util.Scanner;
class promedios {
public static void main(String [] args){
Scanner dato=new Scanner(System.in);
double i,x,n,e,d,l,promedio;
String nombre;
System.out.println("****EL PROMEDIO DE ALUMNOS*****");
System.out.println("****ingrese el numero de estudiantes*****");
n=dato.nextDouble();
promedio=0;
for(i=1;i<=n;i++)
{
System.out.println(" Ingrese el nombre del estudiante");
nombre=dato.next();
System.out.println("****ingrese la nota de deberes*****");
d=dato.nextDouble();
System.out.println("****ingrese la nota de lecciones*****");
l=dato.nextDouble();
System.out.println("****ingrese la nota de examenes*****");
e=dato.nextDouble();
promedio=(d+l+e)/3;
System.out.println("el nombre de estudiante es: "+nombre);
System.out.println("el promedio de estudiantes es: "+promedio);
}
}
}
EJECUCIÓN
EJERCICIO 2
Calcular la factorial de un número
Desarrollo
//Geovanny Yungan
import java.util.Scanner;
class calcularfactorial {
public static void main(String[] args){
Scanner dato =new Scanner(System.in);
int suma=1;
System.out.println("*********factorial de un numero*******");
System.out.println("***Ingrese un numero***");
int n=dato.nextInt();
for(int i=n;i>1;i--){
suma=suma*i;
}
System.out.println("El factorial de "+n+" es "+suma);
}
}
EJECUCIÓN
EJERCICIO 3
Leer N números y encontrar el mayor y el menor valor leídos.
DESARROLLO
//Geovanny Yungan
import java.util.Scanner;
class mayormenor {
public static void main(String[] args) {
{
int n,i;
double x,mayor,menor;
Scanner datos = new Scanner(System.in);
System.out.println("******el mayor y menor de
numertos****** ");
System.out.println("******ingrese el total de
elementos****** ");
n=datos.nextInt();
for(i=1;i<n;i++);
mayor=0;
menor=100000;
for(i=1;i<=n;i++)
{
System.out.println("ingrese un numero: ");
x=datos.nextDouble();
if(x>mayor) mayor=x;
if(x<menor) menor=x;
}
System.out.println("***el mayor de la lista de
numeros es: "+mayor);
System.out.println("***el memor de la lista de
nuymeros es: "+menor);
}
}
}
EJECUCIÓN

Más contenido relacionado

La actualidad más candente (15)

11
1111
11
 
Abel cuevas ochoa_act.3.9_lista de cotejo
Abel cuevas ochoa_act.3.9_lista de cotejoAbel cuevas ochoa_act.3.9_lista de cotejo
Abel cuevas ochoa_act.3.9_lista de cotejo
 
Apuntes
ApuntesApuntes
Apuntes
 
Practica 11
Practica 11Practica 11
Practica 11
 
UNIDAD III - ACTIVIDAD II
UNIDAD III - ACTIVIDAD IIUNIDAD III - ACTIVIDAD II
UNIDAD III - ACTIVIDAD II
 
Programa 6
Programa 6Programa 6
Programa 6
 
Practica 9
Practica 9Practica 9
Practica 9
 
Programa 4
Programa 4Programa 4
Programa 4
 
Oda u1 act3 2016
Oda u1 act3 2016Oda u1 act3 2016
Oda u1 act3 2016
 
Act3 u1 2016
Act3 u1 2016Act3 u1 2016
Act3 u1 2016
 
1.0 librocalificaciones
1.0 librocalificaciones1.0 librocalificaciones
1.0 librocalificaciones
 
Problema 8
Problema 8Problema 8
Problema 8
 
13 Curso de POO en java - métodos propios de clase
13 Curso de POO en java - métodos propios de clase13 Curso de POO en java - métodos propios de clase
13 Curso de POO en java - métodos propios de clase
 
Switch case operaciones
Switch case operacionesSwitch case operaciones
Switch case operaciones
 
Programa 5
Programa 5Programa 5
Programa 5
 

Destacado (7)

Bend master
Bend masterBend master
Bend master
 
Practica12
Practica12Practica12
Practica12
 
Bladder tank
Bladder tankBladder tank
Bladder tank
 
yungahn
yungahnyungahn
yungahn
 
roof drain system datasheet button
roof drain system datasheet buttonroof drain system datasheet button
roof drain system datasheet button
 
Practica8
Practica8Practica8
Practica8
 
MLS Front-Office Efficiency Ratings 2014
MLS Front-Office Efficiency Ratings 2014MLS Front-Office Efficiency Ratings 2014
MLS Front-Office Efficiency Ratings 2014
 

Similar a Calcular promedios de estudiantes y mostrar nombre y promedio Java

Similar a Calcular promedios de estudiantes y mostrar nombre y promedio Java (20)

Practica 3
Practica 3Practica 3
Practica 3
 
Practica 3
Practica 3Practica 3
Practica 3
 
Practica2
Practica2Practica2
Practica2
 
Practica9
Practica9Practica9
Practica9
 
Practica 2
Practica 2Practica 2
Practica 2
 
Practica 9
Practica 9Practica 9
Practica 9
 
Practica 2
Practica 2Practica 2
Practica 2
 
Practica 9
Practica 9Practica 9
Practica 9
 
Practica 9
Practica 9Practica 9
Practica 9
 
7
77
7
 
Practica 8
Practica 8Practica 8
Practica 8
 
Practica 2
Practica 2Practica 2
Practica 2
 
Reportes Java
Reportes JavaReportes Java
Reportes Java
 
Practicas janneth lema
Practicas janneth lemaPracticas janneth lema
Practicas janneth lema
 
EJEMPLO ARRAYLIST.pdf
EJEMPLO ARRAYLIST.pdfEJEMPLO ARRAYLIST.pdf
EJEMPLO ARRAYLIST.pdf
 
Practica 5
Practica 5Practica 5
Practica 5
 
Deber 2
Deber 2Deber 2
Deber 2
 
Practica 12
Practica 12Practica 12
Practica 12
 
10
1010
10
 
Practica 8
Practica 8Practica 8
Practica 8
 

Más de Geovanny Yungán (20)

Sibalo final
Sibalo finalSibalo final
Sibalo final
 
Sibalo
SibaloSibalo
Sibalo
 
Matemáticas
Matemáticas Matemáticas
Matemáticas
 
Artesanía de-la-ciudad-de-riobamba
Artesanía de-la-ciudad-de-riobamba Artesanía de-la-ciudad-de-riobamba
Artesanía de-la-ciudad-de-riobamba
 
Geovanny yungan (18)
Geovanny yungan (18)   Geovanny yungan (18)
Geovanny yungan (18)
 
Geovanny yungan (17)
Geovanny yungan (17) Geovanny yungan (17)
Geovanny yungan (17)
 
Geovanny yungan (16)
Geovanny yungan (16)  Geovanny yungan (16)
Geovanny yungan (16)
 
Geovanny yungan
Geovanny yungan Geovanny yungan
Geovanny yungan
 
Geovanny yungan redes
Geovanny yungan redesGeovanny yungan redes
Geovanny yungan redes
 
Geovanny yungan (14)
Geovanny yungan (14) Geovanny yungan (14)
Geovanny yungan (14)
 
Geovanny yungan (13)
Geovanny yungan (13) Geovanny yungan (13)
Geovanny yungan (13)
 
Geovanny yungan (12)
Geovanny yungan (12)Geovanny yungan (12)
Geovanny yungan (12)
 
Geovanny yungan (11)
Geovanny yungan (11)Geovanny yungan (11)
Geovanny yungan (11)
 
Geovanny yungan (10)
Geovanny yungan (10)   Geovanny yungan (10)
Geovanny yungan (10)
 
Geovanny yungan (9)
Geovanny yungan (9)Geovanny yungan (9)
Geovanny yungan (9)
 
Geovanny yungan (8)
Geovanny yungan (8)Geovanny yungan (8)
Geovanny yungan (8)
 
Geovanny yungan (7)
Geovanny yungan (7)  Geovanny yungan (7)
Geovanny yungan (7)
 
Geovanny yungan (6)n
Geovanny yungan (6)n  Geovanny yungan (6)n
Geovanny yungan (6)n
 
Geovanny yungan (5)
Geovanny yungan (5) Geovanny yungan (5)
Geovanny yungan (5)
 
Geovanny yungan (4)
Geovanny yungan (4)  Geovanny yungan (4)
Geovanny yungan (4)
 

Último

actividades comprensión lectora para 3° grado
actividades comprensión lectora para 3° gradoactividades comprensión lectora para 3° grado
actividades comprensión lectora para 3° gradoJosDanielEstradaHern
 
ORGANIZACIÓN SOCIAL INCA EN EL TAHUANTINSUYO.pptx
ORGANIZACIÓN SOCIAL INCA EN EL TAHUANTINSUYO.pptxORGANIZACIÓN SOCIAL INCA EN EL TAHUANTINSUYO.pptx
ORGANIZACIÓN SOCIAL INCA EN EL TAHUANTINSUYO.pptxnandoapperscabanilla
 
PLAN DE REFUERZO ESCOLAR primaria (1).docx
PLAN DE REFUERZO ESCOLAR primaria (1).docxPLAN DE REFUERZO ESCOLAR primaria (1).docx
PLAN DE REFUERZO ESCOLAR primaria (1).docxlupitavic
 
Criterios ESG: fundamentos, aplicaciones y beneficios
Criterios ESG: fundamentos, aplicaciones y beneficiosCriterios ESG: fundamentos, aplicaciones y beneficios
Criterios ESG: fundamentos, aplicaciones y beneficiosJonathanCovena1
 
CALENDARIZACION DE MAYO / RESPONSABILIDAD
CALENDARIZACION DE MAYO / RESPONSABILIDADCALENDARIZACION DE MAYO / RESPONSABILIDAD
CALENDARIZACION DE MAYO / RESPONSABILIDADauxsoporte
 
origen y desarrollo del ensayo literario
origen y desarrollo del ensayo literarioorigen y desarrollo del ensayo literario
origen y desarrollo del ensayo literarioELIASAURELIOCHAVEZCA1
 
ACUERDO MINISTERIAL 078-ORGANISMOS ESCOLARES..pptx
ACUERDO MINISTERIAL 078-ORGANISMOS ESCOLARES..pptxACUERDO MINISTERIAL 078-ORGANISMOS ESCOLARES..pptx
ACUERDO MINISTERIAL 078-ORGANISMOS ESCOLARES..pptxzulyvero07
 
ACERTIJO DE LA BANDERA OLÍMPICA CON ECUACIONES DE LA CIRCUNFERENCIA. Por JAVI...
ACERTIJO DE LA BANDERA OLÍMPICA CON ECUACIONES DE LA CIRCUNFERENCIA. Por JAVI...ACERTIJO DE LA BANDERA OLÍMPICA CON ECUACIONES DE LA CIRCUNFERENCIA. Por JAVI...
ACERTIJO DE LA BANDERA OLÍMPICA CON ECUACIONES DE LA CIRCUNFERENCIA. Por JAVI...JAVIER SOLIS NOYOLA
 
Qué es la Inteligencia artificial generativa
Qué es la Inteligencia artificial generativaQué es la Inteligencia artificial generativa
Qué es la Inteligencia artificial generativaDecaunlz
 
Imperialismo informal en Europa y el imperio
Imperialismo informal en Europa y el imperioImperialismo informal en Europa y el imperio
Imperialismo informal en Europa y el imperiomiralbaipiales2016
 
ACERTIJO DE POSICIÓN DE CORREDORES EN LA OLIMPIADA. Por JAVIER SOLIS NOYOLA
ACERTIJO DE POSICIÓN DE CORREDORES EN LA OLIMPIADA. Por JAVIER SOLIS NOYOLAACERTIJO DE POSICIÓN DE CORREDORES EN LA OLIMPIADA. Por JAVIER SOLIS NOYOLA
ACERTIJO DE POSICIÓN DE CORREDORES EN LA OLIMPIADA. Por JAVIER SOLIS NOYOLAJAVIER SOLIS NOYOLA
 
INSTRUCCION PREPARATORIA DE TIRO .pptx
INSTRUCCION PREPARATORIA DE TIRO   .pptxINSTRUCCION PREPARATORIA DE TIRO   .pptx
INSTRUCCION PREPARATORIA DE TIRO .pptxdeimerhdz21
 
FORTI-MAYO 2024.pdf.CIENCIA,EDUCACION,CULTURA
FORTI-MAYO 2024.pdf.CIENCIA,EDUCACION,CULTURAFORTI-MAYO 2024.pdf.CIENCIA,EDUCACION,CULTURA
FORTI-MAYO 2024.pdf.CIENCIA,EDUCACION,CULTURAEl Fortí
 
Plan Refuerzo Escolar 2024 para estudiantes con necesidades de Aprendizaje en...
Plan Refuerzo Escolar 2024 para estudiantes con necesidades de Aprendizaje en...Plan Refuerzo Escolar 2024 para estudiantes con necesidades de Aprendizaje en...
Plan Refuerzo Escolar 2024 para estudiantes con necesidades de Aprendizaje en...Carlos Muñoz
 
GUIA DE CIRCUNFERENCIA Y ELIPSE UNDÉCIMO 2024.pdf
GUIA DE CIRCUNFERENCIA Y ELIPSE UNDÉCIMO 2024.pdfGUIA DE CIRCUNFERENCIA Y ELIPSE UNDÉCIMO 2024.pdf
GUIA DE CIRCUNFERENCIA Y ELIPSE UNDÉCIMO 2024.pdfPaolaRopero2
 
Estrategias de enseñanza-aprendizaje virtual.pptx
Estrategias de enseñanza-aprendizaje virtual.pptxEstrategias de enseñanza-aprendizaje virtual.pptx
Estrategias de enseñanza-aprendizaje virtual.pptxdkmeza
 
AFICHE EL MANIERISMO HISTORIA DE LA ARQUITECTURA II
AFICHE EL MANIERISMO HISTORIA DE LA ARQUITECTURA IIAFICHE EL MANIERISMO HISTORIA DE LA ARQUITECTURA II
AFICHE EL MANIERISMO HISTORIA DE LA ARQUITECTURA IIIsauraImbrondone
 

Último (20)

Medición del Movimiento Online 2024.pptx
Medición del Movimiento Online 2024.pptxMedición del Movimiento Online 2024.pptx
Medición del Movimiento Online 2024.pptx
 
actividades comprensión lectora para 3° grado
actividades comprensión lectora para 3° gradoactividades comprensión lectora para 3° grado
actividades comprensión lectora para 3° grado
 
ORGANIZACIÓN SOCIAL INCA EN EL TAHUANTINSUYO.pptx
ORGANIZACIÓN SOCIAL INCA EN EL TAHUANTINSUYO.pptxORGANIZACIÓN SOCIAL INCA EN EL TAHUANTINSUYO.pptx
ORGANIZACIÓN SOCIAL INCA EN EL TAHUANTINSUYO.pptx
 
PLAN DE REFUERZO ESCOLAR primaria (1).docx
PLAN DE REFUERZO ESCOLAR primaria (1).docxPLAN DE REFUERZO ESCOLAR primaria (1).docx
PLAN DE REFUERZO ESCOLAR primaria (1).docx
 
Criterios ESG: fundamentos, aplicaciones y beneficios
Criterios ESG: fundamentos, aplicaciones y beneficiosCriterios ESG: fundamentos, aplicaciones y beneficios
Criterios ESG: fundamentos, aplicaciones y beneficios
 
CALENDARIZACION DE MAYO / RESPONSABILIDAD
CALENDARIZACION DE MAYO / RESPONSABILIDADCALENDARIZACION DE MAYO / RESPONSABILIDAD
CALENDARIZACION DE MAYO / RESPONSABILIDAD
 
origen y desarrollo del ensayo literario
origen y desarrollo del ensayo literarioorigen y desarrollo del ensayo literario
origen y desarrollo del ensayo literario
 
ACUERDO MINISTERIAL 078-ORGANISMOS ESCOLARES..pptx
ACUERDO MINISTERIAL 078-ORGANISMOS ESCOLARES..pptxACUERDO MINISTERIAL 078-ORGANISMOS ESCOLARES..pptx
ACUERDO MINISTERIAL 078-ORGANISMOS ESCOLARES..pptx
 
ACERTIJO DE LA BANDERA OLÍMPICA CON ECUACIONES DE LA CIRCUNFERENCIA. Por JAVI...
ACERTIJO DE LA BANDERA OLÍMPICA CON ECUACIONES DE LA CIRCUNFERENCIA. Por JAVI...ACERTIJO DE LA BANDERA OLÍMPICA CON ECUACIONES DE LA CIRCUNFERENCIA. Por JAVI...
ACERTIJO DE LA BANDERA OLÍMPICA CON ECUACIONES DE LA CIRCUNFERENCIA. Por JAVI...
 
Tema 8.- PROTECCION DE LOS SISTEMAS DE INFORMACIÓN.pdf
Tema 8.- PROTECCION DE LOS SISTEMAS DE INFORMACIÓN.pdfTema 8.- PROTECCION DE LOS SISTEMAS DE INFORMACIÓN.pdf
Tema 8.- PROTECCION DE LOS SISTEMAS DE INFORMACIÓN.pdf
 
Qué es la Inteligencia artificial generativa
Qué es la Inteligencia artificial generativaQué es la Inteligencia artificial generativa
Qué es la Inteligencia artificial generativa
 
Imperialismo informal en Europa y el imperio
Imperialismo informal en Europa y el imperioImperialismo informal en Europa y el imperio
Imperialismo informal en Europa y el imperio
 
ACERTIJO DE POSICIÓN DE CORREDORES EN LA OLIMPIADA. Por JAVIER SOLIS NOYOLA
ACERTIJO DE POSICIÓN DE CORREDORES EN LA OLIMPIADA. Por JAVIER SOLIS NOYOLAACERTIJO DE POSICIÓN DE CORREDORES EN LA OLIMPIADA. Por JAVIER SOLIS NOYOLA
ACERTIJO DE POSICIÓN DE CORREDORES EN LA OLIMPIADA. Por JAVIER SOLIS NOYOLA
 
INSTRUCCION PREPARATORIA DE TIRO .pptx
INSTRUCCION PREPARATORIA DE TIRO   .pptxINSTRUCCION PREPARATORIA DE TIRO   .pptx
INSTRUCCION PREPARATORIA DE TIRO .pptx
 
FORTI-MAYO 2024.pdf.CIENCIA,EDUCACION,CULTURA
FORTI-MAYO 2024.pdf.CIENCIA,EDUCACION,CULTURAFORTI-MAYO 2024.pdf.CIENCIA,EDUCACION,CULTURA
FORTI-MAYO 2024.pdf.CIENCIA,EDUCACION,CULTURA
 
Plan Refuerzo Escolar 2024 para estudiantes con necesidades de Aprendizaje en...
Plan Refuerzo Escolar 2024 para estudiantes con necesidades de Aprendizaje en...Plan Refuerzo Escolar 2024 para estudiantes con necesidades de Aprendizaje en...
Plan Refuerzo Escolar 2024 para estudiantes con necesidades de Aprendizaje en...
 
GUIA DE CIRCUNFERENCIA Y ELIPSE UNDÉCIMO 2024.pdf
GUIA DE CIRCUNFERENCIA Y ELIPSE UNDÉCIMO 2024.pdfGUIA DE CIRCUNFERENCIA Y ELIPSE UNDÉCIMO 2024.pdf
GUIA DE CIRCUNFERENCIA Y ELIPSE UNDÉCIMO 2024.pdf
 
Estrategias de enseñanza-aprendizaje virtual.pptx
Estrategias de enseñanza-aprendizaje virtual.pptxEstrategias de enseñanza-aprendizaje virtual.pptx
Estrategias de enseñanza-aprendizaje virtual.pptx
 
AFICHE EL MANIERISMO HISTORIA DE LA ARQUITECTURA II
AFICHE EL MANIERISMO HISTORIA DE LA ARQUITECTURA IIAFICHE EL MANIERISMO HISTORIA DE LA ARQUITECTURA II
AFICHE EL MANIERISMO HISTORIA DE LA ARQUITECTURA II
 
Power Point: Fe contra todo pronóstico.pptx
Power Point: Fe contra todo pronóstico.pptxPower Point: Fe contra todo pronóstico.pptx
Power Point: Fe contra todo pronóstico.pptx
 

Calcular promedios de estudiantes y mostrar nombre y promedio Java

  • 1. UNIVERSIDAD NACIONAL DE CHIMBORAZO FACULTAD DE CIENCIAS DE LA EDUCACION HUMANAS Y TECNOLOGIAS NOMBRE: Geovanny Yungan PRACTICA 3 EJERCICIO 1 De N lista de estudiantes calcular el promedio de cada uno de ellos, siendo las notas a ingresar de deberes, lecciones, examen. Mostrar en la pantalla el nombre y el promedio. DESARROLLO //Geovanny Yungan import java.util.Scanner; class promedios { public static void main(String [] args){ Scanner dato=new Scanner(System.in); double i,x,n,e,d,l,promedio; String nombre; System.out.println("****EL PROMEDIO DE ALUMNOS*****"); System.out.println("****ingrese el numero de estudiantes*****"); n=dato.nextDouble(); promedio=0; for(i=1;i<=n;i++) { System.out.println(" Ingrese el nombre del estudiante"); nombre=dato.next(); System.out.println("****ingrese la nota de deberes*****"); d=dato.nextDouble(); System.out.println("****ingrese la nota de lecciones*****"); l=dato.nextDouble(); System.out.println("****ingrese la nota de examenes*****"); e=dato.nextDouble(); promedio=(d+l+e)/3; System.out.println("el nombre de estudiante es: "+nombre); System.out.println("el promedio de estudiantes es: "+promedio); } } } EJECUCIÓN
  • 2. EJERCICIO 2 Calcular la factorial de un número Desarrollo //Geovanny Yungan import java.util.Scanner; class calcularfactorial { public static void main(String[] args){ Scanner dato =new Scanner(System.in); int suma=1; System.out.println("*********factorial de un numero*******"); System.out.println("***Ingrese un numero***"); int n=dato.nextInt(); for(int i=n;i>1;i--){ suma=suma*i; } System.out.println("El factorial de "+n+" es "+suma); } } EJECUCIÓN
  • 3. EJERCICIO 3 Leer N números y encontrar el mayor y el menor valor leídos. DESARROLLO //Geovanny Yungan import java.util.Scanner; class mayormenor { public static void main(String[] args) { { int n,i; double x,mayor,menor; Scanner datos = new Scanner(System.in); System.out.println("******el mayor y menor de numertos****** "); System.out.println("******ingrese el total de elementos****** "); n=datos.nextInt(); for(i=1;i<n;i++); mayor=0; menor=100000; for(i=1;i<=n;i++) { System.out.println("ingrese un numero: "); x=datos.nextDouble(); if(x>mayor) mayor=x; if(x<menor) menor=x; } System.out.println("***el mayor de la lista de numeros es: "+mayor); System.out.println("***el memor de la lista de nuymeros es: "+menor); } } }