{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

CirculoAplicacion

CirculoAplicacion - System.out.println"El área del...

Info icon This preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
import java.io.*; i public class CirculoAplicacion { p //Declaro los objetos de tipo Circulo public static Circulo c1,c2; p public static void main(String args[]){ p //Crear los objetos de tipo Círculo c1 = new Circulo(); c2 = new Circulo(); c c1.setRadio(15); c1.setUnidadMedida("centímetros"); c2.setRadio(30); c2.setUnidadMedida("pulgadas"); System.out.println(); System.out.println("*************************************************************** **"); System.out.println("Mi segunda aplicación de Java."); System.out.println(); System.out.println("Obtener el área y el perímetro de 2 círculos."); System.out.println("Los datos ya están predefinidos."); System.out.println(); System.out.println("Radio del Círculo 1: 15 cm."); System.out.println("Radio del Círculo 1: 30 cm."); System.out.println(); double areac1 = c1.calculaArea();
Image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: System.out.println("El área del Círculo 1 es: " + areac1 + " centímetros."); double perimetroc1 = c1.calculaPerimetro(); System.out.println("El perímetro del Círculo 1 es: " + perimetroc1 + " centímetros."); double areac2 = c2.calculaArea(); System.out.println("El área del Círculo 2 es: " + areac2 + " pulgadas."); double perimetroc2 = c2.calculaPerimetro(); System.out.println("El perímetro del Circulo 2 es: " + perimetroc2 + " pulgadas."); p System.out.println(); System.out.println("Creado el 01/Febrero/2007. © Elías Hernández Ramírez."); System.out.println(); System.out.println(" Instituto Tecnológico y Estudios Superiores de Monterrey"); System.out.println(); System.out.println("*************************************************************** **"); * } }...
View Full Document

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern