calculate specific gravity & set acceptance criteria.
% this method is usefull for finding result of specific gravity
W0=input(' weight of empty bottle W0');
W1=input('weight of bottle + sample W1');
W2=input('weight of bottle + water W2');
x=(W1-W0)/(W2-W0);
if (x>1.496 && x<1.525)
disp('result is complies');
else (x<.496 && x>1.525);
disp('result is not complies');
end