Create scalarresult.cpp

adding scalar result