Answer:
Step-by-step explanation:
import java.util.Scanner;
public class Circumference {
public static void main(String[] args){
Scanner input = new Scanner(System.in);
System.out.print(“Enter the radius of the circle: ");
double userInput = input.nextDouble();
//create a new instance of the Circumference Class
Circumference c = new Circumference();
System.out.println(“A circle with a radius of “ + userInput + “ has a circumference of ” + c.getCircumference(userInput) + "and an area of " + c.getArea(userInput);
}
public double getCircumference(double radius){
return 2.0 * Math.PI * radius; //formula for calculating circumference
}
public double getArea(double radius){
return radius * radius * Math.PI; //formula for finding area
}
}
/* Formatting may be a lil weird in the main method(), if your getting errors just comment the print statement and re-type it yourself :)*/