Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

the civil engineering department has asked you to write a program to calculate the volume of a water tower. Water towers are a cylinder

The civil engineering department has asked you to write a program to calculate the volume of a water tower.

the civil engineering department has asked you to write a program to calculate the volume of a water tower. Water towers are a cylinder topped with a half sphere. Write two functions that will calculate the volume of a sphere and a cylinder respectively. Then, use these functions to write a program that will calculate the total volume of a water tower. .3 The formula for the volume of a Sphere is: V = The formula for the volume of a Cylinder is: V = rh Hint: Remember that the tower only consists of a half sphere. You do not need to round or truncate your output. Save your program as Exam2.py and upload your source file to the appropriate dropbox in GradeScope, NOT D2L! Sample Input Example: What is the radius for the sphere portion: 98 What is the radius for the cylinder portion: 98 What is the heigh for the cylinder portion: 102 Sample Output Example: Volume: 5048757.212068677

Step by Step Solution

There are 3 Steps involved in it

Step: 1

Answer Heres a Python program that calculates the volume of a water tower using functions for the sp... 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

Matlab An Introduction with Applications

Authors: Amos Gilat

5th edition

1118629868, 978-1118801802, 1118801806, 978-1118629864

More Books

Students also viewed these Programming questions

Question

=+ Merchandise inventory is to be valued at $63,870.

Answered: 1 week ago

Question

Determine the solution of the equation 2 cosx - 0.5x = 1.

Answered: 1 week ago

Question

2. Develop a preliminary question from a topic or issue.

Answered: 1 week ago