Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The surface area and volume of a right cylinder are calculated using the following formulas: Formula for the area of a right cylinder is A

The surface area and volume of a right cylinder are calculated using the following formulas:
Formula for the area of a right cylinder is A =2\pi rh +2\pi r^2
Form for the volume of a right cylinder is \pi r^2h
Write a program that prompts the user to enter values for the radius (float) and height (float) for the right cylinder. The program should calculate and display the surface area and volume of the right cylinder. Use the Python defined constant for pi. Here is link to the constant in the Python documentationLinks to an external site.. The surface area and volume should be formatted as fixed-point numbers with 4 decimal places using an f-string. Do not use the round function.
Here is a sample run of the program:
Enter the radius of the right cylinder: 7.83245
Enter the height of the right cylinder: 20.71546
The surface area of the right cylinder is 1404.9207
The volume of the right cylinder is 3992.4521

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

Oracle9i Database Administrator Implementation And Administration

Authors: Carol McCullough-Dieter

1st Edition

0619159006, 978-0619159009

More Books

Students also viewed these Databases questions

Question

Identify three types of physicians and their roles in health care.

Answered: 1 week ago

Question

Compare the types of managed care organizations (MCOs).

Answered: 1 week ago