The print() function calculates the day of week for the date2016 object and output to the standard output the date in the form of ‘dayofweek, month day, 2016’. For example, when the object have d=1, m=1, the print should output “Tuesday, January 1, 2016”. For a date not in 2016 (m=-1 and d =-1), this routine should output “a date not in 2016”.