// Example 1.2. Program to display "This Old Man" #include using namespace std; void chorus(); void firstVerse(); void secondVerse(); void thirdVerse(); int main() { firstVerse(); chorus(); secondVerse(); chorus(); thirdVerse(); chorus(); return 0; } // Function to print the chorus void chorus() { cout << " With a knick-knack-paddy-whack\n"; cout << " Give the dog a bone,\n"; cout << " This old man went rolling home.\n\n"; } // Function to print the first verse void firstVerse() { cout << "This old man, he played one,\n"; cout << "He played knick-knack on my thumb,\n"; } // Function to print the second verse void secondVerse() { cout << "This old man, he played two,\n"; cout << "He played knick-knack on my shoe,\n"; } // Function to print the third verse void thirdVerse() { cout << "This old man, he played three,\n"; cout << "He played knick-knack on my knee,\n"; }