Given an ofstream object named output, associate it with a file named yearsummary.txt by opening the file for writing.