This material may consist of step-by-step explanations on how to solve a problem or examples of proper writing, including the use of citations, references, bibliographies, and formatting. This material is made available for the sole purpose of studying and learning - misuse is strictly forbidden.
using namespace std;
const int DaySize = 5;
const int CountSize = 7;
const int StepsSize = 11;
const int AverageSize = 13;
// All these constants are posted based on the values because of better printing
// It will be explained further in function PrintMonth
template < typename T > std::string to_string( const T& n )
std::ostringstream stm ;
stm << n ;
return stm.str() ;
void PrintMonth(int month, int dayMin, int dayMax, int min, int max, double totalSteps, double average)
// This is the name of the function that is printing one line
// This "switch" is there to print a name of the month at the beginning of the line according to the value of "month" variable and certain number empty places
// So, that the signs "|" would not be at the same level
// For example, if we print January that consists of 8 characters and 3 signs of spaces then sign "|"
// For example, if we print April that consists of 5 characters and 6 signs of spaces then sign "|"...
This is only a preview of the solution. Please use the purchase button to see the entire solution