Question: dont answer that first one, instead do this one please. i asked the user the height and the radius but i dont know what to
You have been provided some Java code in a class called LabQuestion5. Download this class from this week Module and import it to the project. One way to import it is by dragging the specific class file from the File Explorer to your source code folder from within Eclipse. The program gives a runtime error when int bis set to 0. Write an if statement so that the error is no longe received and the program can continue. Read the comments for hints. Cylinder Volume Calculator: Prompts the user to enter the radius and height, then calculates the cylinder's circle area using the formula nr '(3.14* radius?). Remember to multiply the circle area by the height in order to get the volume
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
