Results of the test are favorable int cyclingmonth 1

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: t;< 1999 << ": DAY #" << calculateDayOfYear(1, 1, 1999) << " (Should be 1)" << endl; cout << 2 << '/' << 28 << '/' << 1999 << ": DAY #" << calculateDayOfYear(28, 2, 1999) << " (Should be 59)" << endl; cout << 2 << '/' << 28 << '/' << 1996 << ": DAY #" << calculateDayOfYear(28, 2, 1996) << " (Should be 59)" << endl; cout << 2 << '/' << 29 << '/' << 1996 << ": DAY #" << calculateDayOfYear(29, 2, 1996) << " (Should be 60)" << endl; cout << 7 << '/' << 4 << '/' << 1999 << ": DAY #" << calculateDayOfYear(4, 7, 1999) << " (Should be 185)" << endl; cout << 12 << '/' << 31 << '/' << 1999 << ": DAY #" << calculateDayOfYear(31, 12, 1999) << " (Should be 365)" << endl; cout << 12 << '/' << 31 << '/' << 1996 << ": DAY #" << calculateDayOfYear(31, 12...
View Full Document

This note was uploaded on 08/26/2009 for the course CS 140 taught by Professor Staff during the Fall '08 term at Southern Illinois University Edwardsville.

Ask a homework question - tutors are online