SlideShare una empresa de Scribd logo
UNIVERSIDAD NACIONAL DE CHIMBORAZO
FACULTAD DE CIENCIAS DE LA EDUCACION HUMANAS Y TECNOLOGIAS
NOMBRE: GEOVANNY YUNGAN
DEBER 1
EJERCICIO 1
1. Escribir un programa para convertir una medida dada en pies a sus equivalentes
en: Yardas, pulgadas, centímetros, metros. Donde (1 pie =12 pulgadas, 1 yarda = 3
pies, 1 pulgada = 2.54cm, 1m= 100cm)
DESARROLLO
//Geovannny Yungan //
import java.util.Scanner;
class converticion {
public static void main(String args[])
{
Scanner datos=new Scanner(System.in);
double pies, cm, resultado,yarda,pulgadas,metros;
System.out.println("*******ingrese la medida en pies*************");
pies = datos.nextDouble();
yarda=pies/3;
pulgadas=12*pies;
cm = pulgadas*2.54;
metros=cm/100;
System.out.println("el resultado pies en yardas es: n"+yarda);
System.out.println("el resultado pies en pulgadas es: n"+pulgadas);
System.out.println("el resultado pies en cm es: n"+cm);
System.out.println("el resultado pies en m es: n"+metros);
}
}
EJECUCIÓN
EJERCICIO 2
2. Una temperatura Celsius (Centígrados) puede ser convertida a una temperatura
equivalente F de acuerdo a la siguiente fórmula.
DESARROLLO
//Geovanny yungan //
import java.util.Scanner;
class convercelsius {
public static void main(String args[])
{
Scanner datos=new Scanner(System.in);
double celsius, f, m=1.8;
System.out.println("*******ingrese la medida en celsius*************");
celsius = datos.nextDouble();
f=1.8*celsius;
f=f+32;
System.out.println("el resultado en grados fahrenheit es: n"+f);
}
}
EJECUCIÓN
DEBER 2
EJERCICIO 1
1. Escribir un programa que calcule las medias de las puntuaciones (4 enteros) obtenidas
por los alumnos y visualice una calificación de acuerdo a la siguiente tabla:
Desarrollo
//Geovanny Yungan //
import java.util.Scanner;
class puntuacion {
public static void main(String arg[])
{
Scanner datos=new Scanner(System.in);
double p1,p2,p3,p4,p;
System.out.println("******AQUE CATEGORIA PERTENECES****");
System.out.println("ingrese su primera puntuacion");
p1=datos.nextDouble();
System.out.println("ingrese su segunda puntuacion");
p2=datos.nextDouble();
System.out.println("ingrese su tercera puntuacion");
p3=datos.nextDouble();
System.out.println("ingrese su cuarta puntuacion");
p4=datos.nextDouble();
p=(p1+p2+p3+p4)/4;
System.out.println("su promedio es "+p);
if(p>=0 && p<=59)
System.out.println("su categia es: E");
else
if (p>=60 && p<=69)
System.out.println("su categoria es: D");
else
if(p>=70 && p<=79)
System.out.println("sucategoria es: C");
else
if(p>=80 && p<=89)
System.out.println("su categoria es:B ");
else
if(p>=90 && p<=100)
System.out.println("sucategia es: A ");
else
System.out.println("fuera de rango ")
}
}
EJECUCIÓN
EJERCICIO 2
2. Se desea saber a qué tipo de triángulo corresponde, según los dtos ingresados.
(Escaleno. Isósceles, Equilátero)
DESARROLLO
//Geovanny Yungan //
import java.util.Scanner;
class triangulo {
public static void main(String arg[])
{
Scanner datos=new Scanner(System.in);
double l1,l2,l3;
System.out.println("******aque triangulo pertenece****");
System.out.println("ingrese el primer lado");
l1=datos.nextDouble();
System.out.println("ingrese el segundo lado");
l2=datos.nextDouble();
System.out.println("ingrese el tercer lado");
l3=datos.nextDouble();
if(l1==l2 && l1==l3)
{
System.out.println("*****el triangulo es equilatero*****");
}
else
if(l1==l2||l1==l3 ||l2==l3)
{
System.out.println("*****el triangulo es isosceles*****");
}
else
if(l1!=l2&&l1!=l2&&l2!=l3)
{
System.out.println("*****el triangulo es escaleno*****");
}
}
}
EJECUCIÓN
EJERCICIO 3
3. Un comercio realiza un programa de consulta de planes de venta financiada.
Los clientes podrán consultar, ingresando el precio del producto, y la cantidad
de cuotas
Con que van a pagar, el valor total financiado del producto, y el importe de la
cuota.
Para calcular el precio de venta financiado, el programa actuará de acuerdo a
las siguientes pautas:
Los planes entre 1 y 5 cuotas, no sufrirán recargo.
Los planes entre 6 y 10 cuotas, tendrán un recargo del 15% sobre el precio del
producto.
Los planes entre 11 y 15 cuotas, tendrán un recargo del 30% sobre el precio del
producto
Los pagos de contado (0 cuotas) tendrán un descuento del 8% sobre el precio
del producto.
Una vez ingresados los datos, el programa realizará los cálculos
correspondientes y
Mostrará la siguiente información por pantalla:
“importe cuota” valor de la cuota
“cantidad de cuotas” nro de cuotas
“precio total financiado” total financiado
DESARROLLO
//Geovanny Yungan //
import java.util.Scanner;
class cuotitas {
public static void main(String arg[])
{
Scanner datos=new Scanner(System.in);
double precio,cuotas,d,t,r,t1;
System.out.println("******programa de planes de venta finaciada****");
System.out.println("ingrese el precio del producto");
precio=datos.nextDouble();
System.out.println("ingrese la cantidad de cuaotas con que va a pagar");
cuotas=datos.nextDouble();
if(cuotas>15)
{
System.out.println("xxxxxxerror exceso de cuotas xxxxxxxx");
}
else
if(cuotas==0)
{
d=precio*0.08;
t=precio-d;
System.out.println("======pagando al contado=====");
System.out.println("la cantidad de cuotas es: "+cuotas);
System.out.println("usted tiene un descuento de: "+d);
System.out.println("el precio total a pagar es:"+t);
}
else
if(cuotas>0 && cuotas <=5)
{
r=0;
t1=precio;
System.out.println("=usted esta pagando a cuotas==");
System.out.println("la cantidad de cuotas es: "+cuotas);
System.out.println("usted tiene un importe de: "+r);
System.out.println("el precio total a pagar es:"+t1);
}
else
if(cuotas>5 && cuotas<=10)
{
r=precio*0.15;
t1=precio+r;
System.out.println("usted esta pagando a cuotas");
System.out.println("la cantidad de cuotas es: "+cuotas);
System.out.println("usted tiene un importe de: "+r);
System.out.println("el precio total a pagar es:"+t1);
}
else
if(cuotas>10 && cuotas <=15)
{
r=precio*0.30;
t1=precio+r;
System.out.println("======usted esta pagando a cuotas=====");
System.out.println("la cantidad de cuotas es: "+cuotas);
System.out.println("usted tiene un importe de: "+r);
System.out.println("el precio total a pagar es:"+t1);
}
}
}
EJECUCIÓN

Más contenido relacionado

La actualidad más candente

Estructuras repetitivas (Ejercicio)
Estructuras repetitivas (Ejercicio)Estructuras repetitivas (Ejercicio)
Estructuras repetitivas (Ejercicio)
Jesús Alexander
 
Switch case (informe_19)
Switch case (informe_19)Switch case (informe_19)
Switch case (informe_19)
Carlos Guzmán
 
Practica 1
Practica 1Practica 1
Practica 1
Any Saula
 
Practica dibujo de marco dev c++
Practica dibujo de marco dev c++ Practica dibujo de marco dev c++
Practica dibujo de marco dev c++ Eli Diaz
 
Problema 8
Problema 8Problema 8
Problema 8
Angeel Aceveedo
 

La actualidad más candente (10)

Cecytem
CecytemCecytem
Cecytem
 
Estructuras repetitivas (Ejercicio)
Estructuras repetitivas (Ejercicio)Estructuras repetitivas (Ejercicio)
Estructuras repetitivas (Ejercicio)
 
Practica 1
Practica 1Practica 1
Practica 1
 
Practica1
Practica1Practica1
Practica1
 
Evaluacion1
Evaluacion1Evaluacion1
Evaluacion1
 
Switch case (informe_19)
Switch case (informe_19)Switch case (informe_19)
Switch case (informe_19)
 
Practica 1
Practica 1Practica 1
Practica 1
 
Practica dibujo de marco dev c++
Practica dibujo de marco dev c++ Practica dibujo de marco dev c++
Practica dibujo de marco dev c++
 
Computo movil ejercicio clases resuelto
Computo movil ejercicio clases resueltoComputo movil ejercicio clases resuelto
Computo movil ejercicio clases resuelto
 
Problema 8
Problema 8Problema 8
Problema 8
 

Destacado

Find Meaning in Puglia May 2017 Trip
Find Meaning in Puglia May 2017 Trip Find Meaning in Puglia May 2017 Trip
Find Meaning in Puglia May 2017 Trip Erica Plotegher
 
Presentation1
Presentation1Presentation1
Presentation1
Tasnim Ahmad
 
訴說溫度的熱情
訴說溫度的熱情訴說溫度的熱情
訴說溫度的熱情
宗格 李
 
Cm 1. dhiman leukemia
Cm 1. dhiman leukemiaCm 1. dhiman leukemia
Cm 1. dhiman leukemia
DrDhimanBD
 
Geovanny yungan (7)
Geovanny yungan (7)  Geovanny yungan (7)
Geovanny yungan (7)
Geovanny Yungán
 
期中報告 Tx rx
期中報告 Tx rx期中報告 Tx rx
期中報告 Tx rx
宗格 李
 
Geovanny yungan (2) ghghhu
Geovanny yungan (2) ghghhuGeovanny yungan (2) ghghhu
Geovanny yungan (2) ghghhu
Geovanny Yungán
 
Geovanny yungan (14)
Geovanny yungan (14) Geovanny yungan (14)
Geovanny yungan (14)
Geovanny Yungán
 
Gtc 25 presentación
Gtc 25 presentaciónGtc 25 presentación
Gtc 25 presentación
Luis Carlos Sandoval
 
Transparent led film display solution
Transparent led film display solutionTransparent led film display solution
Transparent led film display solution
주식회사솔루팜
 
LCCO General Meeting 110316
LCCO General Meeting 110316LCCO General Meeting 110316
LCCO General Meeting 110316
Paul Schumann
 
Design for behavioral change (by David Pas)
Design for behavioral change (by David Pas)Design for behavioral change (by David Pas)
Design for behavioral change (by David Pas)
Verhaert Masters in Innovation
 
Simulation technology, speed up your iterative process (by Jan Buytaert)
Simulation technology, speed up your iterative process (by Jan Buytaert)Simulation technology, speed up your iterative process (by Jan Buytaert)
Simulation technology, speed up your iterative process (by Jan Buytaert)
Verhaert Masters in Innovation
 
Redes 4
Redes 4 Redes 4

Destacado (20)

Yungan(uOI
Yungan(uOIYungan(uOI
Yungan(uOI
 
Find Meaning in Puglia May 2017 Trip
Find Meaning in Puglia May 2017 Trip Find Meaning in Puglia May 2017 Trip
Find Meaning in Puglia May 2017 Trip
 
Presentation1
Presentation1Presentation1
Presentation1
 
訴說溫度的熱情
訴說溫度的熱情訴說溫度的熱情
訴說溫度的熱情
 
Cm 1. dhiman leukemia
Cm 1. dhiman leukemiaCm 1. dhiman leukemia
Cm 1. dhiman leukemia
 
Geovanny yungan (7)
Geovanny yungan (7)  Geovanny yungan (7)
Geovanny yungan (7)
 
Presentacion Salt Pepper N Lime
Presentacion Salt Pepper N LimePresentacion Salt Pepper N Lime
Presentacion Salt Pepper N Lime
 
resume
resumeresume
resume
 
期中報告 Tx rx
期中報告 Tx rx期中報告 Tx rx
期中報告 Tx rx
 
Conceptos básicos
Conceptos básicosConceptos básicos
Conceptos básicos
 
Practica4
Practica4Practica4
Practica4
 
Geovanny yungan (2) ghghhu
Geovanny yungan (2) ghghhuGeovanny yungan (2) ghghhu
Geovanny yungan (2) ghghhu
 
Geovanny yungan (14)
Geovanny yungan (14) Geovanny yungan (14)
Geovanny yungan (14)
 
Gtc 25 presentación
Gtc 25 presentaciónGtc 25 presentación
Gtc 25 presentación
 
Transparent led film display solution
Transparent led film display solutionTransparent led film display solution
Transparent led film display solution
 
LCCO General Meeting 110316
LCCO General Meeting 110316LCCO General Meeting 110316
LCCO General Meeting 110316
 
BryanShelton2016
BryanShelton2016BryanShelton2016
BryanShelton2016
 
Design for behavioral change (by David Pas)
Design for behavioral change (by David Pas)Design for behavioral change (by David Pas)
Design for behavioral change (by David Pas)
 
Simulation technology, speed up your iterative process (by Jan Buytaert)
Simulation technology, speed up your iterative process (by Jan Buytaert)Simulation technology, speed up your iterative process (by Jan Buytaert)
Simulation technology, speed up your iterative process (by Jan Buytaert)
 
Redes 4
Redes 4 Redes 4
Redes 4
 

Similar a DEBRES

Deber 1
Deber 1Deber 1
Deber 1
Cesar Yupa
 
Ejercisos condicionales 1
Ejercisos condicionales 1Ejercisos condicionales 1
Ejercisos condicionales 1
Iivone Laa UniiCka
 
Deber 1
Deber 1Deber 1
Deber 1
Any Saula
 
Ejercisos condicionales
Ejercisos condicionalesEjercisos condicionales
Ejercisos condicionalesJoshe Varillas
 
Ejercicios resueltos de programacion
Ejercicios resueltos de programacionEjercicios resueltos de programacion
Ejercicios resueltos de programacion
Jaime amambal
 
Ejercicios
EjerciciosEjercicios
EjerciciosEzmee XD
 
Ejercicios resueltos de programacion
Ejercicios resueltos de programacionEjercicios resueltos de programacion
Ejercicios resueltos de programacion
Jaime amambal
 
Problemas propuesto 1 al12
Problemas propuesto 1 al12Problemas propuesto 1 al12
Problemas propuesto 1 al12YO Por Que
 
Problemas propuestos clase 0-1
Problemas propuestos  clase 0-1Problemas propuestos  clase 0-1
Problemas propuestos clase 0-1Jefferson Prieto
 
Problemas propuestos clase 0-1
Problemas propuestos  clase 0-1Problemas propuestos  clase 0-1
Problemas propuestos clase 0-1Jefferson Prieto
 
Problemas propuestos clase 0-1
Problemas propuestos  clase 0-1Problemas propuestos  clase 0-1
Problemas propuestos clase 0-1Jefferson Prieto
 
Vector
Vector Vector
Portafolio segundo parcial
Portafolio segundo parcialPortafolio segundo parcial
Portafolio segundo parcial
Hugo Arechiga
 

Similar a DEBRES (20)

Deber 2
Deber 2Deber 2
Deber 2
 
2
22
2
 
1
11
1
 
Deber 1
Deber 1Deber 1
Deber 1
 
Deber 1
Deber 1Deber 1
Deber 1
 
Deber 1
Deber 1Deber 1
Deber 1
 
Ejercisos condicionales 1
Ejercisos condicionales 1Ejercisos condicionales 1
Ejercisos condicionales 1
 
Deber 1
Deber 1Deber 1
Deber 1
 
Ejercisos condicionales
Ejercisos condicionalesEjercisos condicionales
Ejercisos condicionales
 
Ejercicios en java
Ejercicios en javaEjercicios en java
Ejercicios en java
 
Ejercicios resueltos de programacion
Ejercicios resueltos de programacionEjercicios resueltos de programacion
Ejercicios resueltos de programacion
 
Ejercicios
EjerciciosEjercicios
Ejercicios
 
Ejercicios resueltos de programacion
Ejercicios resueltos de programacionEjercicios resueltos de programacion
Ejercicios resueltos de programacion
 
Problemas propuesto 1 al12
Problemas propuesto 1 al12Problemas propuesto 1 al12
Problemas propuesto 1 al12
 
Problemas propuestos clase 0-1
Problemas propuestos  clase 0-1Problemas propuestos  clase 0-1
Problemas propuestos clase 0-1
 
Problemas propuestos clase 0-1
Problemas propuestos  clase 0-1Problemas propuestos  clase 0-1
Problemas propuestos clase 0-1
 
Problemas propuestos clase 0-1
Problemas propuestos  clase 0-1Problemas propuestos  clase 0-1
Problemas propuestos clase 0-1
 
Vector
Vector Vector
Vector
 
Portafolio segundo parcial
Portafolio segundo parcialPortafolio segundo parcial
Portafolio segundo parcial
 
Practica 2
Practica 2Practica 2
Practica 2
 

Más de Geovanny Yungán

Sibalo final
Sibalo finalSibalo final
Sibalo final
Geovanny Yungán
 
Sibalo
SibaloSibalo
Matemáticas
Matemáticas Matemáticas
Matemáticas
Geovanny Yungán
 
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 Yungán
 
Geovanny yungan (18)
Geovanny yungan (18)   Geovanny yungan (18)
Geovanny yungan (18)
Geovanny Yungán
 
Geovanny yungan (17)
Geovanny yungan (17) Geovanny yungan (17)
Geovanny yungan (17)
Geovanny Yungán
 
Geovanny yungan (16)
Geovanny yungan (16)  Geovanny yungan (16)
Geovanny yungan (16)
Geovanny Yungán
 
Geovanny yungan
Geovanny yungan Geovanny yungan
Geovanny yungan
Geovanny Yungán
 
Geovanny yungan redes
Geovanny yungan redesGeovanny yungan redes
Geovanny yungan redes
Geovanny Yungán
 
Geovanny yungan (13)
Geovanny yungan (13) Geovanny yungan (13)
Geovanny yungan (13)
Geovanny Yungán
 
Geovanny yungan (12)
Geovanny yungan (12)Geovanny yungan (12)
Geovanny yungan (12)
Geovanny Yungán
 
Geovanny yungan (11)
Geovanny yungan (11)Geovanny yungan (11)
Geovanny yungan (11)
Geovanny Yungán
 
Geovanny yungan (10)
Geovanny yungan (10)   Geovanny yungan (10)
Geovanny yungan (10)
Geovanny Yungán
 
Geovanny yungan (9)
Geovanny yungan (9)Geovanny yungan (9)
Geovanny yungan (9)
Geovanny Yungán
 
Geovanny yungan (8)
Geovanny yungan (8)Geovanny yungan (8)
Geovanny yungan (8)
Geovanny Yungán
 
Geovanny yungan (6)n
Geovanny yungan (6)n  Geovanny yungan (6)n
Geovanny yungan (6)n
Geovanny Yungán
 
Geovanny yungan (5)
Geovanny yungan (5) Geovanny yungan (5)
Geovanny yungan (5)
Geovanny Yungán
 
Geovanny yungan (4)
Geovanny yungan (4)  Geovanny yungan (4)
Geovanny yungan (4)
Geovanny Yungán
 
Geovanny yungan (2)
Geovanny yungan (2) Geovanny yungan (2)
Geovanny yungan (2)
Geovanny Yungán
 
Iprube
IprubeIprube

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 (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 (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)
 
Geovanny yungan (2)
Geovanny yungan (2) Geovanny yungan (2)
Geovanny yungan (2)
 
Iprube
IprubeIprube
Iprube
 

Último

外围买球-外围买球网站-外围买球|【​网址​🎉ac123.net🎉​】领先全球的买球投注平台
外围买球-外围买球网站-外围买球|【​网址​🎉ac123.net🎉​】领先全球的买球投注平台外围买球-外围买球网站-外围买球|【​网址​🎉ac123.net🎉​】领先全球的买球投注平台
外围买球-外围买球网站-外围买球|【​网址​🎉ac123.net🎉​】领先全球的买球投注平台
ahmedendrise81
 
VEHÍCULOS MAS RAPIDOS Y LENTOS, VEHÍCULOS DEPORTIVOS
VEHÍCULOS MAS RAPIDOS Y LENTOS, VEHÍCULOS DEPORTIVOSVEHÍCULOS MAS RAPIDOS Y LENTOS, VEHÍCULOS DEPORTIVOS
VEHÍCULOS MAS RAPIDOS Y LENTOS, VEHÍCULOS DEPORTIVOS
sgmauriciosg
 
el manual esn el mejor amigo del mecanico
el manual esn el mejor amigo del mecanicoel manual esn el mejor amigo del mecanico
el manual esn el mejor amigo del mecanico
JoseAmtonioVillelaBe
 
inicam.pdfgahsjhjdOHGYWQUOIWhjwiqou3iyvguoq
inicam.pdfgahsjhjdOHGYWQUOIWhjwiqou3iyvguoqinicam.pdfgahsjhjdOHGYWQUOIWhjwiqou3iyvguoq
inicam.pdfgahsjhjdOHGYWQUOIWhjwiqou3iyvguoq
1637212006
 
Modulo diesel inyeccion directa e indirecta.pdf
Modulo diesel inyeccion directa e indirecta.pdfModulo diesel inyeccion directa e indirecta.pdf
Modulo diesel inyeccion directa e indirecta.pdf
profesorhugorosa
 
manual Renault Sandero Stepway. Privilege pdf
manual Renault Sandero Stepway. Privilege pdfmanual Renault Sandero Stepway. Privilege pdf
manual Renault Sandero Stepway. Privilege pdf
ssuserccc3a8
 
527960595-Motores-GDI-con-la-Inyeccion-Directa-de-Gasolina.ppt
527960595-Motores-GDI-con-la-Inyeccion-Directa-de-Gasolina.ppt527960595-Motores-GDI-con-la-Inyeccion-Directa-de-Gasolina.ppt
527960595-Motores-GDI-con-la-Inyeccion-Directa-de-Gasolina.ppt
JoseAmtonioVillelaBe
 
CICLO DE VAPOR EN TERMODINAMICA Y SUS EVOLUCIONES.pptx
CICLO DE VAPOR EN TERMODINAMICA Y SUS EVOLUCIONES.pptxCICLO DE VAPOR EN TERMODINAMICA Y SUS EVOLUCIONES.pptx
CICLO DE VAPOR EN TERMODINAMICA Y SUS EVOLUCIONES.pptx
CarlosACompean
 
Gastos-por-Vehiculos.pdfcccccccccccccccc
Gastos-por-Vehiculos.pdfccccccccccccccccGastos-por-Vehiculos.pdfcccccccccccccccc
Gastos-por-Vehiculos.pdfcccccccccccccccc
MaryCastilloJimenez1
 
jddkdoqkwodkoekdeokdkoekoedkeodkokdeokdeodk
jddkdoqkwodkoekdeokdkoekoedkeodkokdeokdeodkjddkdoqkwodkoekdeokdkoekoedkeodkokdeokdeodk
jddkdoqkwodkoekdeokdkoekoedkeodkokdeokdeodk
jhoanpepe08
 

Último (10)

外围买球-外围买球网站-外围买球|【​网址​🎉ac123.net🎉​】领先全球的买球投注平台
外围买球-外围买球网站-外围买球|【​网址​🎉ac123.net🎉​】领先全球的买球投注平台外围买球-外围买球网站-外围买球|【​网址​🎉ac123.net🎉​】领先全球的买球投注平台
外围买球-外围买球网站-外围买球|【​网址​🎉ac123.net🎉​】领先全球的买球投注平台
 
VEHÍCULOS MAS RAPIDOS Y LENTOS, VEHÍCULOS DEPORTIVOS
VEHÍCULOS MAS RAPIDOS Y LENTOS, VEHÍCULOS DEPORTIVOSVEHÍCULOS MAS RAPIDOS Y LENTOS, VEHÍCULOS DEPORTIVOS
VEHÍCULOS MAS RAPIDOS Y LENTOS, VEHÍCULOS DEPORTIVOS
 
el manual esn el mejor amigo del mecanico
el manual esn el mejor amigo del mecanicoel manual esn el mejor amigo del mecanico
el manual esn el mejor amigo del mecanico
 
inicam.pdfgahsjhjdOHGYWQUOIWhjwiqou3iyvguoq
inicam.pdfgahsjhjdOHGYWQUOIWhjwiqou3iyvguoqinicam.pdfgahsjhjdOHGYWQUOIWhjwiqou3iyvguoq
inicam.pdfgahsjhjdOHGYWQUOIWhjwiqou3iyvguoq
 
Modulo diesel inyeccion directa e indirecta.pdf
Modulo diesel inyeccion directa e indirecta.pdfModulo diesel inyeccion directa e indirecta.pdf
Modulo diesel inyeccion directa e indirecta.pdf
 
manual Renault Sandero Stepway. Privilege pdf
manual Renault Sandero Stepway. Privilege pdfmanual Renault Sandero Stepway. Privilege pdf
manual Renault Sandero Stepway. Privilege pdf
 
527960595-Motores-GDI-con-la-Inyeccion-Directa-de-Gasolina.ppt
527960595-Motores-GDI-con-la-Inyeccion-Directa-de-Gasolina.ppt527960595-Motores-GDI-con-la-Inyeccion-Directa-de-Gasolina.ppt
527960595-Motores-GDI-con-la-Inyeccion-Directa-de-Gasolina.ppt
 
CICLO DE VAPOR EN TERMODINAMICA Y SUS EVOLUCIONES.pptx
CICLO DE VAPOR EN TERMODINAMICA Y SUS EVOLUCIONES.pptxCICLO DE VAPOR EN TERMODINAMICA Y SUS EVOLUCIONES.pptx
CICLO DE VAPOR EN TERMODINAMICA Y SUS EVOLUCIONES.pptx
 
Gastos-por-Vehiculos.pdfcccccccccccccccc
Gastos-por-Vehiculos.pdfccccccccccccccccGastos-por-Vehiculos.pdfcccccccccccccccc
Gastos-por-Vehiculos.pdfcccccccccccccccc
 
jddkdoqkwodkoekdeokdkoekoedkeodkokdeokdeodk
jddkdoqkwodkoekdeokdkoekoedkeodkokdeokdeodkjddkdoqkwodkoekdeokdkoekoedkeodkokdeokdeodk
jddkdoqkwodkoekdeokdkoekoedkeodkokdeokdeodk
 

DEBRES

  • 1. UNIVERSIDAD NACIONAL DE CHIMBORAZO FACULTAD DE CIENCIAS DE LA EDUCACION HUMANAS Y TECNOLOGIAS NOMBRE: GEOVANNY YUNGAN DEBER 1 EJERCICIO 1 1. Escribir un programa para convertir una medida dada en pies a sus equivalentes en: Yardas, pulgadas, centímetros, metros. Donde (1 pie =12 pulgadas, 1 yarda = 3 pies, 1 pulgada = 2.54cm, 1m= 100cm) DESARROLLO //Geovannny Yungan // import java.util.Scanner; class converticion { public static void main(String args[]) { Scanner datos=new Scanner(System.in); double pies, cm, resultado,yarda,pulgadas,metros; System.out.println("*******ingrese la medida en pies*************"); pies = datos.nextDouble(); yarda=pies/3; pulgadas=12*pies; cm = pulgadas*2.54; metros=cm/100; System.out.println("el resultado pies en yardas es: n"+yarda); System.out.println("el resultado pies en pulgadas es: n"+pulgadas); System.out.println("el resultado pies en cm es: n"+cm); System.out.println("el resultado pies en m es: n"+metros); } }
  • 2. EJECUCIÓN EJERCICIO 2 2. Una temperatura Celsius (Centígrados) puede ser convertida a una temperatura equivalente F de acuerdo a la siguiente fórmula. DESARROLLO //Geovanny yungan // import java.util.Scanner; class convercelsius { public static void main(String args[]) { Scanner datos=new Scanner(System.in); double celsius, f, m=1.8; System.out.println("*******ingrese la medida en celsius*************"); celsius = datos.nextDouble(); f=1.8*celsius; f=f+32; System.out.println("el resultado en grados fahrenheit es: n"+f); } } EJECUCIÓN
  • 3. DEBER 2 EJERCICIO 1 1. Escribir un programa que calcule las medias de las puntuaciones (4 enteros) obtenidas por los alumnos y visualice una calificación de acuerdo a la siguiente tabla: Desarrollo //Geovanny Yungan // import java.util.Scanner; class puntuacion { public static void main(String arg[]) { Scanner datos=new Scanner(System.in); double p1,p2,p3,p4,p; System.out.println("******AQUE CATEGORIA PERTENECES****"); System.out.println("ingrese su primera puntuacion"); p1=datos.nextDouble(); System.out.println("ingrese su segunda puntuacion"); p2=datos.nextDouble();
  • 4. System.out.println("ingrese su tercera puntuacion"); p3=datos.nextDouble(); System.out.println("ingrese su cuarta puntuacion"); p4=datos.nextDouble(); p=(p1+p2+p3+p4)/4; System.out.println("su promedio es "+p); if(p>=0 && p<=59) System.out.println("su categia es: E"); else if (p>=60 && p<=69) System.out.println("su categoria es: D"); else if(p>=70 && p<=79) System.out.println("sucategoria es: C"); else if(p>=80 && p<=89) System.out.println("su categoria es:B "); else if(p>=90 && p<=100) System.out.println("sucategia es: A "); else System.out.println("fuera de rango ") } } EJECUCIÓN
  • 5. EJERCICIO 2 2. Se desea saber a qué tipo de triángulo corresponde, según los dtos ingresados. (Escaleno. Isósceles, Equilátero) DESARROLLO //Geovanny Yungan // import java.util.Scanner; class triangulo { public static void main(String arg[]) { Scanner datos=new Scanner(System.in); double l1,l2,l3; System.out.println("******aque triangulo pertenece****"); System.out.println("ingrese el primer lado"); l1=datos.nextDouble(); System.out.println("ingrese el segundo lado"); l2=datos.nextDouble(); System.out.println("ingrese el tercer lado"); l3=datos.nextDouble(); if(l1==l2 && l1==l3) { System.out.println("*****el triangulo es equilatero*****"); } else if(l1==l2||l1==l3 ||l2==l3) { System.out.println("*****el triangulo es isosceles*****"); } else if(l1!=l2&&l1!=l2&&l2!=l3) { System.out.println("*****el triangulo es escaleno*****"); } } }
  • 6. EJECUCIÓN EJERCICIO 3 3. Un comercio realiza un programa de consulta de planes de venta financiada. Los clientes podrán consultar, ingresando el precio del producto, y la cantidad de cuotas Con que van a pagar, el valor total financiado del producto, y el importe de la cuota. Para calcular el precio de venta financiado, el programa actuará de acuerdo a las siguientes pautas: Los planes entre 1 y 5 cuotas, no sufrirán recargo. Los planes entre 6 y 10 cuotas, tendrán un recargo del 15% sobre el precio del producto. Los planes entre 11 y 15 cuotas, tendrán un recargo del 30% sobre el precio del producto Los pagos de contado (0 cuotas) tendrán un descuento del 8% sobre el precio del producto. Una vez ingresados los datos, el programa realizará los cálculos correspondientes y Mostrará la siguiente información por pantalla:
  • 7. “importe cuota” valor de la cuota “cantidad de cuotas” nro de cuotas “precio total financiado” total financiado DESARROLLO //Geovanny Yungan // import java.util.Scanner; class cuotitas { public static void main(String arg[]) { Scanner datos=new Scanner(System.in); double precio,cuotas,d,t,r,t1; System.out.println("******programa de planes de venta finaciada****"); System.out.println("ingrese el precio del producto"); precio=datos.nextDouble(); System.out.println("ingrese la cantidad de cuaotas con que va a pagar"); cuotas=datos.nextDouble(); if(cuotas>15) { System.out.println("xxxxxxerror exceso de cuotas xxxxxxxx"); } else if(cuotas==0) { d=precio*0.08; t=precio-d; System.out.println("======pagando al contado====="); System.out.println("la cantidad de cuotas es: "+cuotas); System.out.println("usted tiene un descuento de: "+d); System.out.println("el precio total a pagar es:"+t); } else if(cuotas>0 && cuotas <=5) { r=0; t1=precio; System.out.println("=usted esta pagando a cuotas=="); System.out.println("la cantidad de cuotas es: "+cuotas); System.out.println("usted tiene un importe de: "+r); System.out.println("el precio total a pagar es:"+t1); } else if(cuotas>5 && cuotas<=10) {
  • 8. r=precio*0.15; t1=precio+r; System.out.println("usted esta pagando a cuotas"); System.out.println("la cantidad de cuotas es: "+cuotas); System.out.println("usted tiene un importe de: "+r); System.out.println("el precio total a pagar es:"+t1); } else if(cuotas>10 && cuotas <=15) { r=precio*0.30; t1=precio+r; System.out.println("======usted esta pagando a cuotas====="); System.out.println("la cantidad de cuotas es: "+cuotas); System.out.println("usted tiene un importe de: "+r); System.out.println("el precio total a pagar es:"+t1); } } } EJECUCIÓN