[solved]-Create Java Package Using Information Holds Following Classes 1 Class Cone Includes Consta Q39030289
Create a java package using the above information which holds the following classes: 1. class “cone” includes a constant for PI called “our pi constant”, and set and get methods for the height and radius of the cone. Also, calculate the cone’s area and volume. 2. In class “cone user” there should be stages/steps in which we print data about the cone. The print method prints a string consisting of the attribute of the cone that is to be printed along with the numerical value of the attribute in question. The print method does NOT belong to an object. Step 1: print the cone’s height. Step 2: print the cone’s radius at the base. Step 3: print the cone’s surface area. Step 4: print the cone’s volume. The print message should say the following: Cone {attribute) is {value}. (Newline x2) print(String attribute, Float value) All classes and methods should be accompanied by a JavaDoc comment. Show transcribed image text Create a java package using the above information which holds the following classes: 1. class “cone” includes a constant for PI called “our pi constant”, and set and get methods for the height and radius of the cone. Also, calculate the cone’s area and volume. 2. In class “cone user” there should be stages/steps in which we print data about the cone. The print method prints a string consisting of the attribute of the cone that is to be printed along with the numerical value of the attribute in question. The print method does NOT belong to an object. Step 1: print the cone’s height. Step 2: print the cone’s radius at the base. Step 3: print the cone’s surface area. Step 4: print the cone’s volume. The print message should say the following: Cone {attribute) is {value}. (Newline x2) print(String attribute, Float value) All classes and methods should be accompanied by a JavaDoc comment.
Expert Answer
Answer to Create a java package using the above information which holds the following classes: 1. class “cone” includes a constant… . . .
OR