Computer Science Project c++

vng225
SampleRunforProjectFive.pdf

Sample Run for Project Five Note: I mark the input as Bold and Italic ************************************* * Test Menu * * 1. isLeapYear * * 2. getCenturyValue * * 3. getYearValue * * 4. getMonthValue * * 5. dayOfWeek(month, day, year) * * 6. dayOfWeek(day) * * 7. Quit * ************************************* Please choose from menu: 1 Please enter a year: 1900 Year 1900 is NOT a leap year ************************************* * Test Menu * * 1. isLeapYear * * 2. getCenturyValue * * 3. getYearValue * * 4. getMonthValue * * 5. dayOfWeek(month, day, year) * * 6. dayOfWeek(day) * * 7. Quit * ************************************* Please choose from menu: 1 Please enter a year: 2000 Year 2000 is a leap year ************************************* * Test Menu * * 1. isLeapYear * * 2. getCenturyValue * * 3. getYearValue * * 4. getMonthValue * * 5. dayOfWeek(month, day, year) * * 6. dayOfWeek(day) * * 7. Quit * ************************************* Please choose from menu: 2 Please enter a year: 2008 The century value is: 6 ************************************* * Test Menu * * 1. isLeapYear * * 2. getCenturyValue * * 3. getYearValue * * 4. getMonthValue * * 5. dayOfWeek(month, day, year) *

* 6. dayOfWeek(day) * * 7. Quit * ************************************* Please choose from menu: 3 Please enter a year: 2008 The year value is: 10 ************************************* * Test Menu * * 1. isLeapYear * * 2. getCenturyValue * * 3. getYearValue * * 4. getMonthValue * * 5. dayOfWeek(month, day, year) * * 6. dayOfWeek(day) * * 7. Quit * ************************************* Please choose from menu: 4 Please enter a year and month: 2016 10 The month value is: 0 ************************************* * Test Menu * * 1. isLeapYear * * 2. getCenturyValue * * 3. getYearValue * * 4. getMonthValue * * 5. dayOfWeek(month, day, year) * * 6. dayOfWeek(day) * * 7. Quit * ************************************* Please choose from menu: 5 Please enter a year, a month, and a day: 2016 10 12 The day of the week is: 3 ************************************* * Test Menu * * 1. isLeapYear * * 2. getCenturyValue * * 3. getYearValue * * 4. getMonthValue * * 5. dayOfWeek(month, day, year) * * 6. dayOfWeek(day) * * 7. Quit * ************************************* Please choose from menu: 6 Please enter a day of week (0 for Sunday, 1 for Monday, etc): 3 The name of the day of the week is: WEDNESDAY ************************************* * Test Menu * * 1. isLeapYear * * 2. getCenturyValue * * 3. getYearValue *

* 4. getMonthValue * * 5. dayOfWeek(month, day, year) * * 6. dayOfWeek(day) * * 7. Quit * ************************************* Please choose from menu: 7 Did you tested all functions yet? if not, please rerun the program Program ended with exit code: 0