/* write an application that prompts the user for the radius of a circle and uses a method called circlearea to calculate the area of the circle */import java. util.*;class areacircle{double circlearea(double radius){ return(math. pi*radius*radius);}public static void main(string args[]){ areacircle ob=new areacircle(); scanner sc=new scanner(system. in); system. out. println("enter the radius of the circle: "); double r=sc. nextdouble(); double area=ob. circlearea(r); system. out. println("the area of the circle is: "+area);}}
Get the answer

Category: chemistry |
Author: Sagi Boris

## Related Questions

##### /** * ramanujan. java * * s. ramanujan was an indian mathematician wh

##### /*question: how many times are the statements first semester and sec

##### // * answer with details* // quadrilateral abcd is inscribed in a circ

## Category

## statistics

// answer pls // which of the following statements is true about minor central angles? a.) the measure of the central angle is less than 180°. b.) th

## mechanicalengineering

// marian basting takes in small sewing jobs. // she has two files sorted by date. // (the date is composed of two numbers -- month and year.) // one

## biomedicalengineering

// please answer // how are plants called epiphytes adapted to living in the understory of a rainforest? a.) they have waxy leaves. b.) they lose the