Question: Python -Please write comments to let me understand well - The foure below shows a tank made of - A conical par (rowesed conef wth

- The foure below shows a tank made of - A conical par (rowesed conef wth base radusar and herpti-R - Acyander wer hoolitus and base tajlasur Mingly equal to a - Wilie a program that promitis for and reads - me vakum of d (iquia kivel) and R (c)dincer radius) - It then compuies and deplays the volume of the liquad in the the - Forie thar me velue utd is between 0 and 3RR has to be positive. - ir dexoveds ar your program dsghors Tarik overfied messuge and stops. - Ild e-0 or R - 0 . c displars Wrong input message as shown bebw. and stops. - If e is between 0 and R. then the taled pat is a feversed cone wint bare cados =d. colume of cylinder =r3h anere hitiled height of cymander calwine of cone =71m2h Sample run 1 Enter radius of the cylinder. -4.5 Radius must be positive Sample run 2 Enter radius of the cylinder. 2.5 Enter liquid level : -6.5 Liquid level must be positive Sample run 3 Enter radius of the cylinder. 3.5 Enter liquid level : 16.5 Tank is overfilled Sample run 4 This for liquid level in cone only Enter radius of the cylinder. 12.5 Enter liquid level : 8.5 Total volume of liquid =643.11 Sample run 5 This for liquid level somewhere in cylinder Enter radius of the cylinder. 12.5 Enter liquid level : 28.6 Total volume of liquid =9948.38
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
