Question: answer the question fully with details Write a program that will calculate volume and total surface area of a close cyllinder with height h and

 answer the question fully with details Write a program that will

calculate volume and total surface area of a close cyllinder with height

answer the question fully with details

Write a program that will calculate volume and total surface area of a close cyllinder with height h and radius r for the base. The formula for the volume and total surface area is given below. - Volume =r2h - Area =2rh+2r2 The radius and height should be of type double and will be prompted for and read from the keyboard. Then use these values to calculate the area and volume. Hint: Use Math.pow() and Math.PI in your calculations. If input radius is 5.2 and 8.1 is the height of the cylinder, then the output should be like this: Volume: 688.1 cubic inches Surface area: 434.5 square inches Display output to 1 decimal place. Display output to 1 decimal place. If variable yourValue is of type double and has a value of 8.124, you can use printf to printf() function output this value to 1 decimal as shown below: System. out.printf("\%. If ", yourValue); But before write the code, write down your algorithm. 2 SAN JOAQUIN DELTA COLLEGE Instructor: M Anthony T Ma'umalanga CSP26A - Java Programming HOW to SUBMIT WORK? Same Word file for Question 1. Move to a new page and put a label heading for Question 2 at top followed by: (4 points for (a), 13 points for (b) and 3 points for (c)) a. Your algorithm of what to do b. Your Java source code that will implement your algorithm in step (a) above. c. Screenshot of outputs and inputs

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!