Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Java ( Q01 ) QUESTION 1 5 points Save Answer Write a Java program to implement Cylinder Calculator with the options: 1. Volume and 2.

Java ( Q01 )
image text in transcribed
QUESTION 1 5 points Save Answer Write a Java program to implement Cylinder Calculator with the options: 1. Volume and 2. Surface Area. It should input user choice and radius r and height h of a cylinder and then display the result as per user choice. Cylinder Calculator: 1. Volume 2. Surface Area Enter your choice: 1 Enter radius and height: 3.0 4.5 Volume=127.2348 Where, Volume = **p2m Surface Area = 2***rth + 2 ** 2 Note: You must use switch-case. 1. Write your corrected Java program (3 Marks ] 2. Run your program and input following values: [2 marks] Input = 1 as option and 5.5 as r and 10.5 as h, What is the output? Volume = ?. Input = 2 as option and 2.7 as r and 6.5 as h, What is the output Surface Area = ? TTT Arial 3 (12)

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_2

Step: 3

blur-text-image_3

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 101

Authors: Guy Kawasaki

1st Edition

0938151525, 978-0938151524

More Books

Students also viewed these Databases questions

Question

Provide examples of KPIs in Human Capital Management.

Answered: 1 week ago

Question

What are OLAP Cubes?

Answered: 1 week ago