Question: Write a program that prompts the user to enter values for the radius (float) and height (float) for the right cylinder. The program should

Write a program that prompts the user to enter values for the radius (float) and height (float) for the right When prompting the user you must always include text which lets the user know what information they should

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. 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 When prompting the user you must always include text which lets the user know what information they should enter. The surface area and volume of a right cylinder are calculated using the following formulas: Right cylinder Solve for surface acea A = 2rh+2r Radius h Height Right cylinder Solve for volume. V = rh 1 Radhus h Hight Enter value Enter value Enter valu Enter value i

Step by Step Solution

3.39 Rating (161 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Heres a Python program that calculates and displays the surface are... View full answer

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 Programming Questions!