Question: Can someone answer for me Upload Choose a File D Question 2 Write a program called Question2 that does the following: . Output this String:
Upload Choose a File D Question 2 Write a program called Question2 that does the following: . Output this String:" Right Circular Cone" . Ask the user to enter the radius of a right circular cone . Ask the user to enter the height of a right circular cone Call the getConeVolume function, passing in the radius and height . Output the volume of the cone . Define the getConeVolume function: o Name: getConeVolume o public o static o Return value: double Parameters: double r and double h, for radius and height respectively o Calculate and return the volume using this formula: Pi (h/3.0) . Save your program as Question2.java and upload it as your answer Here is a sample run of the program: Right Circular Cone* Enter radius: 10.2 Enter height: 20.3 The volume is: 2211.6937944978285 Upload Choose a File
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
