i am working on a program called myBalls. so far, heres what i have
import java.util.Scanner;
public class Penis {
private int length;
public Penis() {}
public void setPenisLength(int l) {
length = l;
}
public int penisLength() {
return length;
}
}
public class myBalls extends Penis{
public static void main(String[] args) {
Scanner reader = new Scanner(System.in);
int numBalls = 2;
int ballDiameter = 0;
int ballCircumference = 0; //for now
System.out.print("What is the length of the penis? ");
setPenisLength(reader.nextInt());
if (penisLength > 10)
numBalls = 3;
else if (penisLength < 3)
numBalls = 1;
else if (penisLength <= 0) {
numBalls = 0;
System.out.pintln("You are a woman. Therefore, you have a vagina.");
}
Ball[] ball = new Ball[numBalls];
ballDiameter = (penisLength / 3);
}
}
So, i need help. how would i go about calculating the ball circumference. i think i would need pi or something, but how would i get the exact value of pi since it never ends, and what would i do with it?
any help would be greatly appreciated.