solved the issue of summation of negative numbers. modified storevalue function, it now modifies the sign of a variable only when the input string is negative. modified
do_print, prints the negative sign, and print the zero as zero no matter what its sign is.