Find Us On: Facebook Twitter Rss Feed Blog
Need To Register? Sign Up Login

Java Program AREA PERIMETER VOLUME

jmarte821
jmarte821 


Write a Java application program that calculates the perimeter, area and volume of geometric figures. The permissible figures are shown below: INSTRUCTIONS ATTACHED Attachments Tags Clarifications

Answers

Payment advance

sudheer488
sudheer488 



Advance Pay Attachments
Screenshots
Purchase Answer

Perimter

haskellGeek
haskellGeek 



its all working Attachments
Circle.java (1 K) Download Preview
perimeter = 2 * Math.PI * radius; this.setPerimeter(perimeter); return this.getPerimeter();

Cone.java (1 K) Download Preview
height){ double s = Math.sqrt((radius*radius) + (height*height)); double area = Math.PI * radius*(radius + s); this.setArea(area);

Cuboid.java (1 K) Download Preview
double area(double length, double width, double height){ double area = 2 * (length * width + width *

Cylinder.java (1 K) Download Preview
public double area(double radius, double height){ double area = (2 * Math.PI * height) + (2 *

Driver.java (8 K) Download Preview
System.out.println(out + " side 1/radius " + radius + " side 2 " + "-" + " side 3 " + "-" + " height "+ height + " perimiter "+ "-" + " area " + Cyl.getArea() + " Volume " + Cyl.getVolume()); str =""; str1 = ""; str2

fractions.java (1 K) Download Preview
double one = 1.0; double two

Measurements.java (1 K) Download Preview
area; } public void setArea(double area) { this.area = area; } public double getPerimeter(){ return perimeter; } public void

Pyramid.java (1 K) Download Preview
area = sidea * (2 * s + sidea); this.setArea(area); return this.getArea(); } public double

Rectangle.java (1 K) Download Preview
this.setPerimeter(perimeter); return this.getPerimeter(); } public double area(double side_length, double side_width){

Triangle.java (1 K) Download Preview
+ sideb + sidec); double area = s * (s - sidea) * (s- sideb) * (s

Screenshots
Purchase Answer

Perimter

haskellGeek
haskellGeek 



its all working Attachments
Screenshots
Purchase Answer

Perimter

haskellGeek
haskellGeek 



its all working Attachments
Circle.java (1 K) Download Preview
public class Circle extends Measurements implements fractions{ double perimeter(double radius){

Screenshots
Purchase Answer

Complete program with output file attached

sudheer488
sudheer488 



Complete program with output file attached Attachments
Output.docx (2537 K) Download
program.rar (12 K) Download













Preview
public class Circle extends Measurements implements Constant{ int p; public Circle(int i, int j) { super(i, j); // TODO Auto-generated constructor stub } public Circle (int i){

Preview
// TODO Auto-generated constructor stub } public double area(){ double z=third; double s=Math.sqrt((p*p)+(q*q));

Preview
final double third=0.3; static final double

Preview
double cuarea=2*(l*w+w*h+h*l); return cuarea; } public double volume(){ double volume=l*w*h; return volume;

Preview
int j) { super(i, j); p=i; q=j; // TODO Auto-generated constructor stub } public

Preview
} else if(input.equalsIgnoreCase("cylinder")){ //System.out.println("in cylinder"); if(al.size()==3){ String s=al.get(1).toString(); String s1=al.get(2).toString(); int i=Integer.parseInt(s); int j=Integer.parseInt(s1); Cylinder c=new Cylinder(i,j); double area=c.area(); double perimeter=c.perimeter(); // System.out.println("area of cylinder"+area); //System.out.println("perimeter of cylinder"+perimeter); System.out.println("figure\t"+"radius\t"+"side\t"+"side\t"+"height

Preview
abstract double perimeter(); abstract double area(); abstract double volume(); public Measurements(int i,int j,int k)

Preview
} public double volume(){ double z=third; double volume=l*w*h; double pyvolume=z*volume; return pyvolume; } public

Preview
int p;int q; public Rectangle(int i, int j, int l) { super(i, j, l); // TODO Auto-generated constructor stub } public Rectangle(int

Preview
// TODO Auto-generated constructor stub } @Override double perimeter() { // TODO Auto-generated method stub double pe=s+p+k; return pe; } @Override double area() { //

Screenshots
Purchase Answer