Concept explainers
Figure P2.13 shows a cylindrical tank with a conical base. If the liquid level is quite low in the conical part, the volume is simply the conical volume of liquid. If the liquid level is mid-range in the cylindrical part, the total volume of liquid includes the filled conical part and the partially filled cylindrical part. Write a well-structured function procedure to compute the tank's volume as a function of given values of R and d. Use decisional control structures (like If/Then, ElseIf, Else, End If). Design the function so that it returns the volume for all cases where the depth is less than 3R. Return an error message (“Overtop”) if you overtop the tank, that is,
R | 1 | 1 | 1 | 1 |
d | 0.5 | 1.2 | 3.0 | 3.1 |
FIGURE P2.13
Want to see the full answer?
Check out a sample textbook solutionChapter 2 Solutions
Numerical Methods For Engineers, 7 Ed
- Given the sets G and H, can you prove that (G-H) x (H-G) is a subset of (GxH)-(HxG)arrow_forwardIf m<RST=(12x-1) m<RSU(9x-15) and m<UST=53arrow_forwardI've already done 1. I was wondering if you could help me with 2 and 3 and explain a strategy I could use to solve problems like this myself?arrow_forward
- Algebra & Trigonometry with Analytic GeometryAlgebraISBN:9781133382119Author:SwokowskiPublisher:CengageHolt Mcdougal Larson Pre-algebra: Student Edition...AlgebraISBN:9780547587776Author:HOLT MCDOUGALPublisher:HOLT MCDOUGALAlgebra and Trigonometry (MindTap Course List)AlgebraISBN:9781305071742Author:James Stewart, Lothar Redlin, Saleem WatsonPublisher:Cengage Learning
- College Algebra (MindTap Course List)AlgebraISBN:9781305652231Author:R. David Gustafson, Jeff HughesPublisher:Cengage LearningGlencoe Algebra 1, Student Edition, 9780079039897...AlgebraISBN:9780079039897Author:CarterPublisher:McGraw Hill