Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Systems Design Implementation And Management

Authors: Peter Rob, Carlos Coronel

3rd Edition

0760049041, 978-0760049044

More Books

Students also viewed these Databases questions