Answered step by step
Verified Expert Solution
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. 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...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started