the civil engineering department has asked you to write a program to calculate the volume of...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
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 = лr²h 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 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 = лr²h 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
Expert Answer:
Answer rating: 100% (QA)
Answer Heres a Python program that calculates the volume of a water tower using functions for the sp... View the full answer
Related Book For
Posted Date:
Students also viewed these programming questions
-
How do you explain the current event you have chosen using Structural Functionalism, Conflict Theory and Symbolic Interactionism?
-
BACKGROUND You are an information analyst working for NEE. The company president has asked you to prepare a Quantitative analysis of financial, sales, and operations data to help determine which...
-
Contact local employers and ask for copies of their employee handbooks. If none are available, research parent companies of local employers online to see if their employee handbooks are available....
-
You have been engaged to review the financial statements of Longfellow Lumber. In the course of your examination, you conclude that the bookkeeper hired during the current year is not doing a good...
-
Ashton Fleming has asked you to document the cash receipts system at S&S. Ashtons narrative of the system follows: Customer payments include cash received at the time of purchase and payments...
-
Although everyone makes mistakes, describe how history repeats itself when there are patterns of progress and regression in the provision of patient care. In forming your answer, consider how...
-
You would like to estimate the weighted average cost of capital for a new airline business. Based on its industry asset beta, you have already estimated an unlevered cost of capital for the firm of...
-
Find the vertex, axis of symmetry, x and y-intercepts, and sketch the parabola. 5). 3x=y2 (Solve for x.) Opens left or right? axis of symmetry:. vertex: x-intercept: y-intercepts:
-
Which series has the highest beta. BraveNewCoin Liquid Index for Bitcoin 1D BNC Trading Brave Ne Yellow Green Blue Orange
-
On the basis of the following data, determine the value of the inventory at the lower of cost or market. Assemble the data in the form illustrated in Exhibit 9. Inventory. Cost per Market Value per...
-
Explain why a firm's cost of capital changes with changes in its capital structure.
-
State the primary purpose of the federal securities laws.
-
Interpret a cash budget's bottom line.
-
Identify the regulatory body that enforces the federal securities laws.
-
How can you use the information you have learned about leadership theories to develop your leadership skills?
-
9.7. Our cyclone separator is operating with Deut = 5 u. It is now necessary to increase the flow rate to the cyclone (and hence the inlet velocity) by 25 percent (i.e., the new velocity will be 1.25...
-
B.) What is the approximate concentration of free Zn 2+ ion at equilibrium when 1.0010 -2 mol zinc nitrate is added to 1.00 L of a solution that is 1.080 M in OH - . For [Zn(OH) 4 ] 2- , K f = 4.610...
-
The stress intensity factor K at a crack is given by K = C where is the far-field stress, a is the crack length, and C is a parameter that depends on the geometry of the specimen and crack. F or the...
-
The voltage difference V ab between points a and b in the Wheatstone bridge circuit is: Vab = V(RIR3 R2R4]/(RI + R2)(R3 + R4) Calculate the voltage difference when V = 14 volts, R1 = 120.6 ohms, R2 =...
-
Determine the solution of the equation 2 cosx - 0.5x = 1.
-
A converging lens creates a real, inverted image. For this to occur, the object must be A. Closer to the lens than the focal point. B. Farther from the lens than the focal point. C. At the focal...
-
Kara has a near-point distance of 40 cm. So that she can focus on a book 25 cm away, her corrective lenses should create A. A virtual image of the book 40 cm from her eye. B. A real image of the book...
-
The screen in a pinhole camera is moved farther away from the pinho le. The image on the screen will A. Become larger. B. Become smaller. C. Remain the same size.
Study smarter with the SolutionInn App