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

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 08:30
Based on your knowledge of a good network, describe what you think is a perfect network would be. what kind of information and resources could users share on this network. what would the network administrator do? what kind of communication would be used?
Answers: 1
question
Computers and Technology, 23.06.2019 11:00
How should you specify box sizes on a web page if you want the boxes to vary according to the font size of the text they contain? a. in pixels b. in inches c. as percentages d. in em units
Answers: 2
question
Computers and Technology, 23.06.2019 13:30
Select the correct answer from each drop-down menu. which types of computer networks are bigger as well as smaller than a man? a man is a network of computers that covers an area bigger than a , but smaller than a .
Answers: 1
question
Computers and Technology, 23.06.2019 14:30
Select the correct answer. peter has launched a website that features baby products. however, clients often find they are unable to access the website because the server is down. which feature of cybersecurity should peter focus on for his website? a. data authenticity b. data privacy c. data availability d. data integrity e. data encryption
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
question
Mathematics, 02.10.2020 16:01
question
Spanish, 02.10.2020 16:01
question
Mathematics, 02.10.2020 16:01
question
Mathematics, 02.10.2020 16:01
question
History, 02.10.2020 16:01