Computer Science, asked by rehan33, 1 year ago

create a Java program . declare three variables that holster real values and name them as area volume and tad . initialize variable tad with some value declare one constant 'PI' and give it a value of 3.14 calculate the surface area of the sphere area by applying the appropriate formula.

Answers

Answered by mrOogway
1
public class surfaceArea() {

public static void main(String[] args) {
double area, volume, tad;
tad = 4;
static final double PI = 3.14;

surfacearea = 4 * PI * tad * tad;
System.println(surfacearea);
}
}



So, this the reaquired java class according to your question. If it does n't work as I have not tested it out now, please inbox me, I shall resolve the issue!
Similar questions