answersLogoWhite

0

Write a program in java interface for calculating area?

Updated: 1/23/2020
User Avatar

Wiki User

14y ago

Best Answer

interface Shape {

public double getArea();

}

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Write a program in java interface for calculating area?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Write a c program to find Volume and surface area of cube?

Write a c program to compute the surface area and volume of a cube


Write a pascal program that compute an area of a triangle?

{A program to compute the area of a triangle} {by Ogboin W. Meshach} Var; b,h:real; BEGIN Writeln('Triangle'); Write('Base: '); Readln(base); Write('Height: '); Readln(height); area:=0.5*base*height; Writeln('Area: ', area :0:2); End.


Calculating Surface Area?

calculating surface area


How do you write a qbasic program to find area and circumerence of a circle?

Write a program that calculates the area of a triangle in QBASIC


Words to write a rule for calculating the area of a parallelogram?

base times height just like a rectangle easy right


Write a program in pascal that calculates the area of a circle?

{Area s the area of cube} {Length is the length of one side of the cube} program AreaofCube; var Area,Length:real; begin write('Enter the length of cube: '); readln(Length); Area:=6*(Length*Length); writeln('The area of cube is ', Area, ' cm^2.'); end.


Formula for calculating the area of sphere?

Formula for calculating the area of sphere is : 4 * pi * r * r


Write a program to calculate the area of a circle The equation to determine the area of a circle is area equals 3.1416radiusradius Assume that the circle has a radius of 4 inches?

Rewrite the above program so that the program accepts any value for the radius then recalculate the area of the circle.


Which programming language can be used for calculating area of a polygon?

Any of them. Calculating the area of a polygon is a relatively simple mathematical task.


Write a program to calculate the area of a cylinder using a function?

give an example of calculation of mathematics


What is the formula for calculating surface area of dished end?

area of dish end


What is a java code for calculating area of a circle?

area = radius * radius * Math.pi;