This preview shows pages 1–2. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: part, the volume is simply the conical volume of liquid. If the liquid level is midrange in the cylindrical part, the total volume of liquid includes the filled conical part and the partially filled cylindrical part. Develop a flowchart for a program to compute the tanks volume based on the liquid depth, d. Design the program 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 (d > 3R). Function Vol(R, d) pi = 3.141593 d < R d < 3 * R Vol = Overtop End Function Vol = pi * d 3 / 3 V1 = pi * R 3 / 3 V2 = pi * R 2 (d R) Vol = V1 + V2 T T F F...
View Full Document
- Fall '08