Question: rogram Template nter first integer: 10 Enter second integer: 20 Enter third integer: 30 For the numbers 10, 20 and 30 Largest is 30 Smallest
rogram Template nter first integer: 10 Enter second integer: 20 Enter third integer: 30 For the numbers 10, 20 and 30 Largest is 30 Smallest is 10 Sum is 60 Product is 6000 Average is 20 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 Tt. Use the techniques shown in Fig. 2.7. [Note: You may also use the predefined constant Math.PI for the value of Tt. This constant is more precise than the value 3.14159. Class Math is defined in package java.lang. Classes in that package are imported automatically, so you do not need to import class Math to use it.] Use the following formulas (r is the radius): 2. 2tr arear2 diameter 2r circumference Sample Output Enter radius: 3 Diameter is 6 Area is 28.274334 Circumference is 18.849556
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
