Question: 1 . Write a program that computes the volume of a sphere with radius 1 0 . a . Define a constant float called PI
Write a program that computes the volume of a sphere with radius
a Define a constant float called PI with the value of
b Define a constant byte called FOUR with the value of
c Define a constant byte called THREE with the value of
d Define a byte variable called radius with the value of
e Define a double variable called volume and set it equal to FOURTHREE PI Math.powradius
f Print to the screen the volume of the sphere.
Note: You will need to use casting to make sure FOURTHREE does not evaluate to It should evaluate to
Compile and test your code in NetBeans. Submit your java file and a screenshot of passing all test cases through Blackboard.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
