subject

/* 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);}}

ansver
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 11:50, nicoleskertich
You have written, as part of a school assignment, a research paper on the solar system. you want to share this paper on your school website. on which type of server will you upload it?
Answers: 1
image
Computers and Technology, 22.06.2019 15:00, nika0001
When designing content as part of your content marketing strategy, what does the "think" stage represent in the "see, think, do, care" framework?
Answers: 3
image
Computers and Technology, 22.06.2019 17:30, kallee10
The forerunner to cell phones, pdas, and smartphones was
Answers: 1
image
Computers and Technology, 23.06.2019 00:20, kathlynskare06
Ihave been given the number of guns per 100, and the total firearm-related deaths per 100,000. i have to find the actual number of guns per country and actual number of gun-related deaths. if somebody could show me how to do 1 question, i can finish the rest, i am just confused. tia
Answers: 3
You know the right answer?
/* Write an application that prompts the user for the radius of a circle and uses a method called ci...

Questions in other subjects:

Konu
Chemistry, 26.01.2021 04:40
Konu
English, 26.01.2021 04:50
Konu
Mathematics, 26.01.2021 04:50
Konu
Mathematics, 26.01.2021 04:50