Computers and Technology
Computers and Technology, 16.08.2021 20:50, jess7kids

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

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 11:00, Lacey9319
The editing of digital photos us about the same level of difficulty as editing an analog photo
Answers: 2
image
Computers and Technology, 22.06.2019 16:30, aryal191
Primary tech skills are skills that are necessary for success in online education
Answers: 3
image
Computers and Technology, 23.06.2019 06:30, darlene93
You are consulting for a beverage distributor who is interested in determining the benefits it could achieve from implementing new information systems. what will you advise as the first step?
Answers: 1
image
Computers and Technology, 23.06.2019 11:00, abdulbasharee99
In the context of the box model, what is the difference between a margin and a padding? a. a padding lies outside a box border, while a margin lies inside it. b. a padding lies inside a box border, while a margin lies outside it. c. a padding can be adjusted independently, while a margin depends on the size of its box. d. a padding depends on the size of its box, while a margin can be adjusted independently.
Answers: 3
Do you know the correct 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
Mathematics, 16.04.2020 23:22
Konu
Mathematics, 16.04.2020 23:22
Konu
SAT, 16.04.2020 23:22