// Sample Lab Test #2 #include "stdstuff.h" #include "Date.h" // This test involves writing an application program that uses the // Date class (Version 2 from Chapter 5). // Write your program in the space indicated below. // Run the sample executable provided if any of the instructions // here are unclear. // You may assume that all dates entered are reasonable, i.e. no // error checking of dates is required. // Note that program comments are required for full marks. // Your program is to read in pairs of dates until both dates entered are // the same, at which point your program should exit, printing out how many pairs of dates // were entered (before the two dates that were the same). // For each pair of (different) dates entered: // - print out the two dates // - print out the number of days between the two dates (always positive) // - print out whether the two dates are both in the same month (regardless of day and year) or not, // and if they are in the same month, print the month // - print out whether none, one or two of the dates are on the weekend (i.e. Saturday or Sunday) // Again, run the sample executable if any of the above is unclear. int main() { String2002 months[13] = {"unused", "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"}; // it is recommended, but not required, that you // use the above array of String2002 objects in // your solution // write your solution here pause(); return 0; }