##Part A Chapter 1 Example 1 pg no 19
#find the pressure difference
import math
rho=13550;##kg/m^3
g=9.78;##m/s^2
h=30*10**-2;##m
##Pressure Difference
P_diff=rho*g*h;##Pa
print"%s %.2f %s"%("Pressure difference = ",P_diff," pa");
##Part A Chapter 1 Example 2 pg no 19
##find effort required
rho=13550.;##kg/m^3
g=9.78;##m/s^2
h=76*10**-2;##m
d=30*10**-2;##m
##Effort required
Effort_req=rho*g*h*3.14*d**2./4.;##N
print"%s %.2f %s"%("Effort required = ",Effort_req," N");
##Part A Chapter 1 Example 3 pg no 20
##find the Pactual
Patm=101.;##kPa
rho=13550.;##kg/m^3
g=9.78;##m/s^2
h=30*10**-2;##m
##Gauge pressure
Pgauge=rho*g*h/1000.;##kPa
##Actual Pressure
Pactual=Pgauge+Patm;##kPa
print"%s %.2f %s"%("Actual pressure of air = ",Pactual," kPa");