Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 4

import java.io.

*;
public class erikizrikiz {
public static void main(String[] args) throws IOException {
BufferedReader Entrada=new BufferedReader (new InputStreamReader
(System.in));
int erikizrikiz;
System.out.println("╔═════════════════════════════════════════════╗");
System.out.println("║ MENU
║");
System.out.println("║ AREA DEL TRIANGULO (presiona 1+Enter)
║");
System.out.println("║ AREA DEL CIRCULO (presiona 2+Enter)
║");
System.out.println("║ AREA DEL TRAPECIO (presiona 3+Enter)
║");
System.out.println("╚═════════════════════════════════════════════╝");
erikizrikiz=Integer.parseInt(Entrada.readLine());
switch(erikizrikiz){
case 1:
Float AREA1,BASE,ALTURA;
System.out.println("╔════════════════════════════════════════════
System.out.println("║
AREA DEL TRIANGULO ║");
System.out.println("╚═════════════════════════════════════════════╝");
System.out.println("Ingresa el valor de la BASE");
String convBASE=Entrada.readLine();
BASE=Float.parseFloat(convBASE);
System.out.println("Ingresa el valor de la ALTURA");
String convALTURA=Entrada.readLine();
ALTURA=Float.parseFloat(convALTURA);
AREA1=(BASE*ALTURA)/2;
System.out.printf("El Area del Triangulo es:%10.2f\n",AREA1);
break;
case 2:
Float AREA,RADIO,PI;
System.out.println("╔═════════════════════════════════════════════╗
System.out.println("║ AREA DEL CIRCULO
║");
System.out.println("╚═════════════════════════════════════════════╝
System.out.println("Ingresa el valor del RADIO");
String convRADIO=Entrada.readLine();
RADIO=Float.parseFloat(convRADIO);
System.out.println("Ingresa el valor de pi");
String convPI=Entrada.readLine();
PI=Float.parseFloat(convPI);
AREA=(RADIO*RADIO)*PI;
System.out.printf("El Area del Circulo es:%10.2f\n",AREA);
break;
case 3:
Float BASEMENOR,BASEMAYOR,Area;
System.out.println("╔═════════════════════════════════════════════╗");
System.out.println("║ AREA DEL TRAPECIO ║"
);
System.out.println("╚═════════════════════════════════════════════╝");
System.out.println("Ingresa el valor de la BASE MAYOR\n");
String convBASEMAYOR=Entrada.readLine();
BASEMAYOR=Float.parseFloat(convBASEMAYOR);
System.out.println("Ingresa el valor de la BASE MENOR\n");
String convBASEMENOR=Entrada.readLine();
BASEMENOR=Float.parseFloat(convBASEMENOR);
Area=(BASEMENOR*BASEMAYOR)/2;
System.out.printf("El Area del trapecio es:%10.1f\n",Area);
break;
}
}
}

import java.io.*;
public class fracciones {
public static void main(String[] args) throws IOException{
BufferedReader Entrada=new BufferedReader (new InputStreamReader
(System.in));
int a,b,c,d,r,ad,bc,bd;
System.out.printf("SUMA DE FRACCIONES\n");
System.out.printf("Ingresa los valores de las fracciones\n\n");
a=Integer.parseInt(Entrada.readLine());
b=Integer.parseInt(Entrada.readLine());
c=Integer.parseInt(Entrada.readLine());
d=Integer.parseInt(Entrada.readLine());
ad=a*d;
bc=b*c;
bd=b*d;
r=ad+bc;
System.out.printf(" %d+%d %d\n ",ad,bc,r);
System.out.printf(" ________=_____\n");
System.out.printf(" %d %d \n",bd,bd);
}
}

import java.io.*;
public class facturaa {
public static void main(String[] args) throws IOException {
BufferedReader Entrada=new BufferedReader (new InputStreamReader
(System.in));
int precio,cantidad,importe,subtotal,iva,total,no;
String descripcion;
String empresa;
String direccion;
System.out.printf("Empresa:\n");
empresa=Entrada.readLine();
System.out.printf("Direccion:\n");
direccion=Entrada.readLine();
System.out.printf("No.:\n");
no=Integer.parseInt(Entrada.readLine());
System.out.printf("Descripcion o producto:\n");
descripcion=Entrada.readLine();
System.out.printf("Precio:\n");
precio=Integer.parseInt(Entrada.readLine());
System.out.printf("Cantidad:\n");
cantidad=Integer.parseInt(Entrada.readLine());
importe=precio*cantidad;
subtotal=importe;
iva=(int) (subtotal*.16);
System.out.println("╔═════════════════════════════════════════════════════╗");
System.out.println("║ Empresa: %d \n║",empresa);
System.out.println("╔═════════════╦════════════════╦══════════╦════════════
System.out.println("║ Descripcion ║ Precio Unitario║ Cantidad ║ Impor
te ║");
System.out.println("╚═════════════╩════════════════╩══════════╩════════════
}
}

╔║╝╚╗═╬├╦╩║╠╣╠╣╠╣╠╣╠╣╠╣╠╣╠╣╠╣╠╣╠╣╠╣╠╣╠╣╠╣
╔║╝╚╗═╬├╦╩
╔║╝╚╗═╬├╦╩
╔║╝╚╗═╬├╦╩
╔║╝╚╗═╬├╦╩
╔║╝╚╗═╬├╦╩

╔════╗ ╔═════╗ ╔╗ ╔═════╗


║╔═══╝ ║ ╔╗ ║ ╚╝ ║ ╔════╝
║╚╗ ║ ╚╝ ╔╝ ╔╗ ║║
║╔╝ ║╔═╗ ║ ║ ║ ║║
║╚═══╗ ║║ ║ ║ ║ ║ ║ ╚════╗
╚════╝ ╚╝ ╚═╝ ╚╝ ╚═════╝

import java.io.*;
public class facturaa {
public static void main(String[] args) throws IOException {
BufferedReader Entrada=new BufferedReader (new InputStreamReader
(System.in));
int precio,cantidad,importe,subtotal,iva,total,no;
String descripcion;
System.out.printf("No.:\n");
no=Integer.parseInt(Entrada.readLine());
System.out.printf("Descripcion o producto:\n");
descripcion=Entrada.readLine();
System.out.printf("Precio:\n");
precio=Integer.parseInt(Entrada.readLine());
System.out.printf("Cantidad:\n");
cantidad=Integer.parseInt(Entrada.readLine());
importe=precio*cantidad;
subtotal=importe;
iva=(int) (subtotal*.16);
System.out.println("╔════════════════════════════════════════════════════════╗");
System.out.println("║ Empresa: Eriksitho©
║");
System.out.println("║ Direccion:Calle San Antonio s/n Zumpango
║");
System.out.println("╠═════════════╦════════════════╦══════════╦════════════
System.out.println("║ Descripcion ║ Precio Unitario║ Cantidad ║ Impor
te ║");
System.out.println("╚═════════════╩════════════════╩══════════╩════════════
}
}

You might also like