Update calc.cpp

Modified Calculator