SHARE
SPREAD
HELP

The Tradition of Sharing

Help your friends and juniors by posting answers to the questions that you know. Also post questions that are not available.


To start with, Sr2Jr’s first step is to reduce the expenses related to education. To achieve this goal Sr2Jr organized the textbook’s question and answers. Sr2Jr is community based and need your support to fill the question and answers. The question and answers posted will be available free of cost to all.

 

#
Authors:
Walter Savitch ,julia Lobur
Chapter:
Defining Classes
Exercise:
Programming Projects
Question:8 | ISBN:9780321531346 | Edition: 7

Question

(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.

TextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbook

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'.