Function 'similarValues()'
similarValues()should be a boolboolinstead of a doubledoubleand return truetrueor falsefalseYou could probably combine your other two functions into one that returns different things for larger the same or smaller instead of returning the larger type or again use a bool to determine whether a value is larger and return true
trueor falsefalse.Consider using switch statements instead of if statements for more readable code.
cout << "The smaller value is: " << valueSmaller(value01, value02) << " , the larger value is: " << valueLarger(value01, value02) << "\n";Instead of using << "\n"
<< "\n"consider using '<< endl;'<< endlOther than that your code is reasonably readable, try and keep your comments concise and to the point and make sure you only use doubles when you need to.
You are probably not overdoing functions although some of them could be combined as I have already said.
Consider using 'using std::cout;'
using std::coutinstead of 'using namespace std'using namespace stdor avoid it all together.