(In order to do this project you must have first done either Project 6 or
Project 7.) Rewrite the program in Display 10.4, but use the class Month
that you defined in Project 6 or Project 7 as the type for the member variableto record the month. (You may define the class Month either as
described in Project 6 or as described in Project 7.) Redefine the member
function output so that it has one formal parameter of type ostream for
the output stream. Modify the program so that everything that is output
to the screen is also output to a file. This means that all output statements will occur twice: once with the argument cout and once with an outputstream argument. If you are in a class, obtain the file name from your instructor. The input will still come from the keyboard. Only the output will be sent to a file.
Sorry the answer is not available at the moment…
If you are able to find the answer, please make sure to post it here. So that your Juniors have smile on their lips and feel happy.
Spread the 'tradition of sharing'.