A date consists of a month day and year frequently we


A date consists of a month, day, and year. Frequently, we represent each of these items as integers. For example, July 4, 1990, is a month 7, day 4, and year 1990.

a.Write specifications for a method that advances any given date by one day. Include a statement of purpose, pre- and post-conditions, and a description of the parameters.

b.Write a C++ implementation of this method. Design and specify any other methods that you need. Include comments that will be helpful to someone who will maintain your implementation in the future.

 

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: A date consists of a month day and year frequently we
Reference No:- TGS0567242

Expected delivery within 24 Hours