Write an application that inputs from the user the radius of a circle as an integer and prints the circle's diameter, circumference and area using the floating-point value 3.14159 for pi. (Can also use the predefined constant Math.PI for pi). Use the following formulas (r is the radius): diameter = 2r circumference = 2*pi*r area = pi*r^2
Do not store the results of each calculation in a variable. Rather, specify each calculation as the value that will output in a System.out.printf statement. Not that the outputs produced are floating point numbers, and will need the output with %f in a system.out.printf statement. Display float numbers with 2 decimal points.
Use Patent Claims
Include Install Instructions
These details are provided for information only. No information here is legal advice and should not be used as such.