--> //initializations

--> D1=17.11 //KN/m^3 (bulk unit weight)
 D1  = 

   17.11


--> D2=19.33 //KN/m^3 (bulk unit weight)
 D2  = 

   19.33


--> h=5 //m (water table lowered)
 h  = 

   5.


--> h2=7 //m (height of water for sand in exp 10.1)
 h2  = 

   7.


--> T=10 //m (thickness)
 T  = 

   10.


--> g=9.81 
 g  = 

   9.81


--> r2=117.97 //KN/m^2 (effective stress)
 r2  = 

   117.97


--> //calculations

--> h1=h2-h //(height of sand layer)
 h1  = 

   2.


--> p=T-h1 // (remaning height)
 p  = 

   8.


--> r=(p*D1)+(h1*D2) //(total effective stress)
 r  = 

   175.54


--> u=h1*g //(pour water pressure at A)
 u  = 

   19.62


--> r1=r-u //(effective stress at A)
 r1  = 

   155.92


--> es=r1-r2 //(difference in effective stress)
 es  = 

   37.95


--> //results

--> printf('increase in effective stress=%f',es) //KN/m^2
increase in effective stress=37.950000
