calc.cpp letter functions